Page 1 of 1

I don't want scrollbars

Posted: Wed Feb 27, 2008 4:00 am
by Bruno
Hello, again me :)

I apply scale transformations on my generated print2flash document and horizontal and vertical scrollbars are shown when the content does'nt fit with the container object.

Is there a way to have no scrollbar at all, even when the content is too zoomed?

THanks

Re: I don't want scrollbars

Posted: Thu Feb 28, 2008 8:38 am
by Bruno
help? :)

Re: I don't want scrollbars

Posted: Thu Feb 28, 2008 9:47 pm
by staff
Currently there is no function in Document API to turn off toolbars. However, if you used Print2Flash documents from ActionScript 2, this can be done with the code like this:

Code: Select all

p2fdoc.DocArea.vScrollPolicy="off"
p2fdoc.DocArea.hScrollPolicy="off"
but as you are loading documents from Flex, this would not work as cross-scripting between AS2 and AS3 movies is not allowed. A possible solution is to embed a Print2Flash document into a "wrapper" AS2 movie (created with Macromedia Flash Professional or Adobe CS3 with AS2 support) which would load your document and turn off toolbars using the code above. Then you could load that wrapper movie instead of the document itself into Print2FlashDoc Flex component.

Re: I don't want scrollbars

Posted: Mon Mar 03, 2008 3:24 am
by Bruno
Ok thank you.

As a temporary issue, I've put a mask on the scrollbars :)