check if 'jpeg is loaded'
check if 'jpeg is loaded'
- Started
- Last post
- 4 Responses
- mennik
How do I check if a dynamic jpeg has completely loaded before I execute the code.
In flash MX that is.
Thank you.
- rabattski&rabattski0
you can check that by using getBytesLoaded() / getBytesTotal(). e.g. if that jpg would be loaded in an instance called image. you can query it by image.getBytesLoaded() etc.
- mennik0
That works...
but only for the first image.
Whenever the second image gets loaded in the code executes immediatly.
- rabattski&rabattski0
do you have an whole range of images loaded at the same time? and if so, you only want the as to be executed when they all are loaded?
- pixelbreaker0
make sure you unload the old movie first...
move.unloadMovie();
and also, before you use the
movie.getBytesLoaded()/movie.get...
make sure that movie.getBytesTotal()>4;