Return to Snippet

Revision: 33268
at September 14, 2011 00:24 by heathbo


Updated Code
//mytext_scroll is the name of the scrollbar I'm using

mytext_scroll.update();
//---------------------------------------------------------
//---------------------------------------------------------

mytext_scroll.update();              //You must update first

if (mytext_scroll.enabled == false)  //Then check to see if needed
{
  mytext_scroll.visible = false; 
}else{
  mytext_scroll.visible = true; 
};

Revision: 33267
at September 14, 2011 00:23 by heathbo


Updated Code
//mytext_scroll is the name of the scrollbar I'm using

mytext_scroll.update();
//---------------------------------------------------------
//---------------------------------------------------------

mytext_scroll.update(); //You must update first

if (mytext_scroll.enabled == false)  //Then check to see if needed
{
  mytext_scroll.visible = false; 
}else{
  mytext_scroll.visible = true; 
};

Revision: 33266
at September 14, 2011 00:20 by heathbo


Updated Code
mytext_scroll is the name of the scroll bar I'm using.
///////////////////////////////////////////////////////////

mytext_scroll.update();
///////////////////////////////////////////////////////////


mytext_scroll.update(); //You must update first

if (mytext_scroll.enabled == false)  //Then check to see if needed
{
  mytext_scroll.visible = false; 
}else{
  mytext_scroll.visible = true; 
};

Revision: 33265
at October 7, 2010 11:39 by heathbo


Initial Code
mytext_scroll.update();

Initial URL


Initial Description
If your using dynamic text and  AS3's built in scroll bar.  Sometimes it won't activate, ie. no scrollbar.  You must update the scrollbar after the text has been loaded.  Sometimes you only want the scrollbar to show up when needed and hide when not.

Initial Title
Dynamic text And Scrollbar

Initial Tags


Initial Language
ActionScript 3