Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically loaded text 1

Status
Not open for further replies.

Niv3k

Programmer
Jul 11, 2001
350
US
I am loading plain text into a textbox using loadVariables.
I am also watching when that text gets loaded by using the undocumented changed event handler.

However, the changed event seems to always fire whether it is dynamic or input JUST BEFORE the text gets loaded. I don't get it. I want to use the event to know what the maxscroll property is for a scrollbar I am using.

IE - Changed event fires .maxscroll = 1, text populates box, .maxscroll = 35

Any ideas?

Kevin
 
Hi Kevin

I've tried using that gizmo before and more often than not it dumped me out of the program, don't know why, I guess that is a possible reason for it being undocumented.

I no longer try and use it, instead I just use the
Code:
onClipEvent (data)
command, which for me performs the same task without the hsasle.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
I get the same results as with the changed event (although it IS easier), and my current work around is another movie clip that just has code running on a timer (i.e. on the 3rd frame, or .25 seconds on a 12 fps movie) to check the maxscroll property. Is there a better way to do that?

Kevin
 
I use the same method your using (ie: basic timer) if I'm having problems with maxscroll. It's a real pain, but maybe something they'll clean for Flash 6.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top