I don't want scrollbars

Publishing Print2Flash Documents embedding them in Flex applications
Post Reply
Bruno
Posts:9
Joined:Fri Feb 22, 2008 11:02 am
I don't want scrollbars

Post by Bruno » Wed Feb 27, 2008 4:00 am

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

Bruno
Posts:9
Joined:Fri Feb 22, 2008 11:02 am

Re: I don't want scrollbars

Post by Bruno » Thu Feb 28, 2008 8:38 am

help? :)

staff
Posts:267
Joined:Sat Dec 15, 2007 4:48 pm

Re: I don't want scrollbars

Post by staff » Thu Feb 28, 2008 9:47 pm

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.

Bruno
Posts:9
Joined:Fri Feb 22, 2008 11:02 am

Re: I don't want scrollbars

Post by Bruno » Mon Mar 03, 2008 3:24 am

Ok thank you.

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

Post Reply