Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Slide Show

Status
Not open for further replies.

audiopro

Programmer
Apr 1, 2004
3,165
GB
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.
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top