I'm loading images using the Image class, and I'm trying to analyze
their height and width after they load for sizing purposes.  Problem
is, sometimes (not always but sometimes) someImage.width and
someImage.height are still 0 when the "complete" event gets handled. 
Same problem with the "init" event, even though according to the docs,
it's not supposed to be fired until the properties of the loaded
object are available. 

Am I missing something?  Anyone having similar issues and/or
solutions?  I supposed I can set up a Timer to poll the width and fire
a proper event when the widt is > 0 - but I assumed the native events
were consistent and reliable.

Also, I seem to recall Flash having similar problems with inconsistent
event firings when it comes to swf / image loading...

--Brian




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to