to avoid importing loads of images flash file , putting them on timeline, should simulate movie clip using image-sequence, is, sequentially loading series of still images, to& then, "activate" - or view sequence upon mouse-click, .
i figure involves loop , array, can't figure out code.
plz help.
thanks.
to sequentially load need use functional loop (and array , counter variable). basics of outlined below, not in actual coding syntax, descriptive...
var array:array = new array(your array of images); (if these numerically named, may not need array, count value know when stop)
var count:int = 0;
function loadcurrenti mage(){
loader.load(array[count])
loader.contentloaderinfo.addeventlistener(complete,loadcomplete)
}
function loadcomplete(evt...){
// first process loaded image, then...
count++;
if(count < array.length){
loadcurrent(); // load next image
} else {
// sequencial loading complete, carry on next activity
}
}
More discussions in ActionScript 3
adobe
Comments
Post a Comment