Skip to main content
Daniel 0_o
Known Participant
Oct 24, 2009 5:01 PM UTC
Answered

browser not showing scrollbar in text layout component

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

This topic is closed to new replies. Start a new post to keep the conversation going.
robin_briggsCorrect answer
Adobe Employee
Oct 26, 2009 8:44 PM UTC

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

1 reply

robin_briggsCorrect answer
Adobe Employee
Oct 26, 2009 8:44 PM UTC

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

Translate