Skip to main content
Daniel 0_o
Known Participant
Oct 23, 2009 3:09 AM UTC
Question

how do i enable the scrollbar for dynamic text with TL component?

I'm using flash text layout component and loading the content from XML.

how do i enable the scrollbar?

with static text scrollbar shows automatically.

thx,

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Daniel 0_o
Known Participant
Oct 23, 2009 12:09 PM UTC

as always all i need is a good night sleep....zzzzzzzzzzzzz

anyway that what did the trick for me:

import flashx.textLayout.container.*;

myTextLayout.verticalScrollPolicy = ScrollPolicy.AUTO;

there is another option to add it in the XML file:

verticalScrollPolicy="auto" horizontalScrollPolicy="auto"

Translate
Daniel 0_o
Known Participant
Oct 23, 2009 3:10 AM UTC

and yes i saw this article:

http://corlan.org/2009/02/12/how-to-add-a-scrollbar-to-text-layout-framework/

however I do not use Flex.

thx

Translate