LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-14-2006, 04:01 PM
simong simong is offline
Registered User
 
Join Date: May 2006
Posts: 47
Rep Power: 0
simong is on a distinguished road
Question dynamic scrollBar control

Hi, I've made a textField with an attached scrollBar. Using my_textField.maxscroll I determine when the scrollbar is needed and when I want to hide it (._visible = false). Two events can trigger this:
  • when text is added/deleted so that it exceeds/fits inside the textField area
  • when the textField is resized
The above one is controlled with a textField.onChange event handler and works flawlessly, the second one, however, causes me some trouble.
Here's what I do:
Code:
textField_mc.my_textField._width = __width;
textField_mc.my_textField._height = __height;
...
textField_mc.my_scrollBar._visible = (textField_mc.my_textField.maxscroll != 1);
The problem seems to be that the .maxscroll value doesn't update directly when the size is changed. As soon as I click on the stage the value is updated, but then I've allready passed the test and the scrollBar remains visible/unvisible.
Is there a way to update or refresh the TextField after it is resized so that all parameters are set according to the new size? Or how else can I get around this problem?
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scrollbar control dynamic text number bearuh Flash MX 2004 11 01-12-2007 12:30 AM
Control _x and _Y with dynamic thumbnails storm80y Actionscript 2.0 0 03-10-2005 01:40 AM
Problems with dynamic text display... bearslife Flash MX 2004 0 01-19-2005 07:10 PM
Scrollbar With Dynamic Text figidigi Flash MX ActionScript 0 04-27-2004 01:47 PM
Scrollbar on multple dynamic textfields pixial Flash MX 2004 1 02-08-2004 07:34 PM




All times are GMT. The time now is 07:24 AM.