You could also implementing the scrollbar via code: *//Create the scrollBar instance *var scrollBar:UIScrollBar = new UIScrollBar();*//assign the target of the scrollBar to your textfield* //theOutput is the TF instance name scrollBar.scrollTarget = theOutput; *//make the height the same as the textfield* scrollBar.height = theOutput.height; *//Move the scrollbar to the righthand side *scrollBar.move(theOutput.x + theOutput.width, theOutput.y); *//add it to the stage* addChild(scrollBar); *//check if it is required if so show it,put this function right after updating your textfield contents with added text *function updateScrollBar():void{ scrollBar.update(); if (scrollBar.enabled == false) { scrollBar.alpha = 0; } else { scrollBar.alpha = 100; } }
Nathan Mynarcik nat...@mynarcik.com www.mynarcik.com <http://www.mynarcik.com/feed/rss.xml> <http://www.twitter.com/NMynarcik> <http://www.facebook.com/pages/Nathan-Mynarcik-Interactive-Web-Developer/265263144230> <http://www.linkedin.com/in/nathanmynarcik> On Wed, Nov 10, 2010 at 10:42 AM, Nathan Mynarcik <nat...@mynarcik.com>wrote: > Have you checked the component inspector and see if it is being linked to > your dynamic TF? > > Nathan Mynarcik > nat...@mynarcik.com > www.mynarcik.com > > <http://www.mynarcik.com/feed/rss.xml> <http://www.twitter.com/NMynarcik> > > <http://www.facebook.com/pages/Nathan-Mynarcik-Interactive-Web-Developer/265263144230> > <http://www.linkedin.com/in/nathanmynarcik> > > > > > On Wed, Nov 10, 2010 at 10:19 AM, Lehr, Theodore < > ted_l...@federal.dell.com> wrote: > >> It is not the visibility of the scrollbar I am trying to fool with - it is >> having the scrollbar be functional and actually scroll - hoe that makes >> sense... the visibility I have working - it shows up when it should - it >> just does not scroll or even have the little scroll thing you would drag to >> make it scroll or the arrows... it does if I hardcose in text.... >> >> ________________________________________ >> From: flashcoders-boun...@chattyfig.figleaf.com [ >> flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik [ >> nat...@mynarcik.com] >> Sent: Wednesday, November 10, 2010 10:09 AM >> To: Flash Coders List >> Subject: Re: [Flashcoders] Scrollbar Component >> >> Do an if statement checking to see if the textfields height is greater >> than >> the scrollbars height. If false, scrollbar.visible = false. >> >> Is that what you want to do? >> On Nov 10, 2010 8:51 AM, "Lehr, Theodore" <ted_l...@federal.dell.com> >> wrote: >> > The scrollbar component seems like it should be failry easy to work with >> - >> drag it over the dynamic text field and bam - if that textfield has too >> much >> text then it will scroll... I have it working that way in another movie >> that >> way (I think)... >> > >> > If I hard code text i the textfield - it works... but I am loading text >> via xml - and the scrollbar shows up - but is not active to scroll.... any >> thoughts? >> > >> > _______________________________________________ >> > Flashcoders mailing list >> > Flashcoders@chattyfig.figleaf.com >> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> _______________________________________________ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> _______________________________________________ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders