I am attempting to learn a bit of Actionscript and I have written this basic picture viewer.
Is this a good method or is there a better way.
I am using Actionscript2.
Keith
Is this a good method or is there a better way.
I am using Actionscript2.
Code:
function showpic() {
i++;
var url:String = i+".jpg";
var movieClip:MovieClip = createEmptyMovieClip("movieClip", 0);
var movieClipLoader:MovieClipLoader = new MovieClipLoader();
movieClipLoader.addListener(listenerObj);
movieClipLoader.loadClip(url, movieClip);
if (i>2) {
i=0;
}
}
i=0;
var myInterval = setInterval(showpic, 2000);
Keith