Skip to main content
Daniel 0_o
Known Participant
October 24, 2009
Answered

browser not showing scrollbar in text layout component

  • October 24, 2009
  • 1 reply
  • 576 views

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 has been closed for replies.
Correct answer robin_briggs

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
October 26, 2009

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