Bbt Lists escreveu:
Gustavo Teider - Adobe Flash Developer wrote:


use setScrollTarget

scrollbar.setScrollTarget(your_textfield);

is this ?

But how do you tell if the data is actually done loading? I mean for example, i have a field that loads a jpg in, and since the jpg takes a little longer, the scroll bars account for the text, but not hte image. And if I call redraw right after I call the data to be loaded, it seems to still be too soon.



if you are using loadMovie to load images, forget ....
Use MovieClipLoader Class, and set scroll target after load image,
the class allow that you do this

ex:

var obj:Object = new Object();
obj.onLoadInit = function() {
   scroll.setScrollTarget(your_textfield);
}
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.addListener(obj);
mcl.loadClip("image.jpg", yourMovieClipTarget);

[]´s


--
Gustavo Teider ( gugateider )
www.gugateider.com
Curitiba - PR

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to