Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

how do I check image has loaded or preload images

$
0
0

I have a series of pictures that will be show in a random order. I have a single 'image' on stage and I dynamically change the image by changing the src of the image:

 

sym.getComposition().getStage().getSymbol("card").$("cardImage").attr( "src", "images/"+cardArray[cardCount]);

 

However there is sometimes a delay in the new graphic showing, so the old image stays around for a while.

 

How can I check that an image has loaded, or how can I preload all the images so they will display instantly when required?


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>