Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

browser not showing scrollbar in text layout component

New Here ,
Oct 24, 2009 Oct 24, 2009

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

TOPICS
Text layout framework
572
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Oct 26, 2009 Oct 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 horizontalScrollPosit

...
Translate
Adobe Employee ,
Oct 26, 2009 Oct 26, 2009
LATEST

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines