yowl
09-07-2002, 12:05 AM
I am trying to show a series of images with a delay between images.
I tried inserting different several bits of code (from the Actionscript.org library) with various timer strategies.
I get no syntax error, but when I run it, either with test movie, or publishing it and viewing it in the browser, it stands still for a while, then shows the last image.
I have Flash MX bible, but don't know what question to ask...what to look up.
//////////////////////////////////////////////////////// the code;
imgs =["image1.jpg", "image2.jpg", "image3.jpg", "image4.jpg", "image5.jpg"]
_root.holder.onEnterFrame = function() {
for(i=0; i<imgs.length; i++){
holder.loadMovie("c:/rwtemp/"+imgs[i]);
now = getTimer();
start = getTimer();
while (start+1000>now) {
now = getTimer();
} // end While loop
} // end FOR loop
} // end function
/////////////////////////////////////////
Any hints would be greatly appreciated.
I have one layer with the script in frame one, and one layer with the movieclip "holder in frame one. The clip does display at the end, but as I said, only the last image, after a long delay with no activity.
I tried inserting different several bits of code (from the Actionscript.org library) with various timer strategies.
I get no syntax error, but when I run it, either with test movie, or publishing it and viewing it in the browser, it stands still for a while, then shows the last image.
I have Flash MX bible, but don't know what question to ask...what to look up.
//////////////////////////////////////////////////////// the code;
imgs =["image1.jpg", "image2.jpg", "image3.jpg", "image4.jpg", "image5.jpg"]
_root.holder.onEnterFrame = function() {
for(i=0; i<imgs.length; i++){
holder.loadMovie("c:/rwtemp/"+imgs[i]);
now = getTimer();
start = getTimer();
while (start+1000>now) {
now = getTimer();
} // end While loop
} // end FOR loop
} // end function
/////////////////////////////////////////
Any hints would be greatly appreciated.
I have one layer with the script in frame one, and one layer with the movieclip "holder in frame one. The clip does display at the end, but as I said, only the last image, after a long delay with no activity.