[Flashcoders] AS2 TextField with html content question

2007-04-12 Thread Max Kaufmann

If a TextField in AS2 contains images, how does one detect that the images
have finished loading?  Or that the internal content height has changed?
 
Max Kaufmann l Technical Artist
-
 
 
2105 Sarah St  |  Pittsburgh, PA 15203 
O (412) 567-4606 W www.silvertreemedia.com
C (440) 915-8277 E [EMAIL PROTECTED]


___
[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


Re: [Flashcoders] AS2 TextField with html content question

2007-04-12 Thread Jiri Heitlager | dadata.org
I think you have to use a placeholder. So in you html code that is 
rendered in the input field set the width  and height:


img align='left' src='pics' width='100' height='100'/

To detect if images are loaded I think you will have to make something 
like a proxy class that handles the loading of the images (offscreen for 
instance)


Jiri

Max Kaufmann wrote:

If a TextField in AS2 contains images, how does one detect that the images
have finished loading?  Or that the internal content height has changed?
 
Max Kaufmann l Technical Artist

-
 
 
2105 Sarah St  |  Pittsburgh, PA 15203 
O (412) 567-4606 W www.silvertreemedia.com

C (440) 915-8277 E [EMAIL PROTECTED]


___
[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


___
[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


Re: [Flashcoders] AS2 TextField with html content question

2007-04-12 Thread R�kos Attila

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