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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

generate path to frame dynamically 1

Status
Not open for further replies.

firegambler

Technical User
Sep 25, 2002
455
AT
hi folks,

i am trying to load a movie into level 10 of another one (which works just fine). the container clip contains a movieclip that works as a timer so that the movie in level 10 should jump to another frame every 5 seconds.
these frames have names such as bewegung1, bewegung2, ...

i tried to make the timer-script generate the path to the frame dynamically as follows:
Code:
onClipEvent (load) {
	timer = getTimer()+5000;
	bewegungsnummer = 1;
	logomove = "bewegung"+bewegungsnummer;
	}
onClipEvent (enterFrame) {
	verweildauer = getTimer();
	if (verweildauer>timer) {
		_level10.logo.gotoAndStop(logomove);
		timer += 5000;
		bewegungsnummer += 1;
	}
}
i am just not able to make flash accept the path to the frame.
please, what am i doing wrong?

you can get the fla's on
regards

Firegambler
 
You're not reseting 'logomove' in the enterFrame script.

Try this:

if (verweildauer>timer) {
_level10.logo.gotoAndStop(logomove);
timer += 5000;
bewegungsnummer += 1;
logomove = "bewegung"+bewegungsnummer;

}
 
That's it! Thanks a lot, here's a star! regards

Firegambler
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top