did you try updateComplete event?
 
It should work,
-sam

 
On 10/18/06, Brian <[EMAIL PROTECTED]> wrote:

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





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to