MK> If a TextField in AS2 contains images, how does one detect that the images
MK> have finished loading? Or that the internal content height has changed?
An image in a textfield is actually a movie clip. Displaying an image
in a textfield is same as loading an image into a movie clip with
loadMovie(). If you set the id attribute in the img tag, you can
access the image (container movie clip) by referring to this id as a
property of the textfield and do whatever you want with it (e.g.
monitor download progress with getBytesLoaded() and getBytesTotal()).
myTextField.htmlText = "<img src='image.jpg' id='image1' />";
function onEnterFrame() {
trace(myTextField.image1.getBytesLoaded() + " / " +
myTextField.image1.getBytesTotal());
}
Attila
_______________________________________________
[EMAIL PROTECTED]
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