Copy link to clipboard
Copied
hi
my text layout works great as SWF, however when i publish i dont see the scroll bar in the html page.
saying that i can use the mouse scroll to scroll the text.
my XML:
<?xml version="1.0" encoding="utf-8"?>
<flow:TextFlow paddingTop="5" paddingRight="5" paddingBottom="5" paddingLeft="5" whiteSpaceCollapse="preserve" xmlns:flow="http://ns.adobe.com/textLayout/2008" verticalScrollPolicy="on" horizontalScrollPolicy="auto" ><flow:p textAlignLast="right" textAlign="justify"><flow:span fontSize="13" color="0x666666" textDecoration="underline" fontLookup="embeddedCFF" fontFamily="FbTypograph Regular"....
just in case i added it in my AS3
import flashx.textLayout.elements.TextFlow;
import flashx.textLayout.container.*;
....
myTextLayout.verticalScrollPolicy = ScrollPolicy.ON;
any idea what went wrong?
thx,
Daniel
TLF has the policies that allow scrolling, but it deosn't actually have any scroll bar widgets. You would have to get those from Flex components and hook them up. The easiest way to do that is to use the new Gumbo components in Flex4 instead of just using TLF directly (see the RichEditableText class). Or, if you want an ActionScript only application (no Flex framework dependency), you could create your own scroll bars and scroll by setting the verticalScrollPosition and the horizontalScrollPosit
...Copy link to clipboard
Copied
TLF has the policies that allow scrolling, but it deosn't actually have any scroll bar widgets. You would have to get those from Flex components and hook them up. The easiest way to do that is to use the new Gumbo components in Flex4 instead of just using TLF directly (see the RichEditableText class). Or, if you want an ActionScript only application (no Flex framework dependency), you could create your own scroll bars and scroll by setting the verticalScrollPosition and the horizontalScrollPosition on the ContainerController.
Hope this helps,
- robin
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more