Dynadot โ€” .com Transfer

ActionScript 2.0 Question

SpaceshipSpaceship
Watch

Swefx

Established Member
Impact
2
Ok so I've got this code:

Code:
onClipEvent(enterFrame){
if(_root.lives < 1){
	gotoAndStop("startscreen");	
}
}

But it seems that the "gotoAndStop("startscreen");" command doesnt work within the "onClipEvent(enterFrame){" tag.

Does anyone know how to solve this problem?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
is the above code on a movieclip that is in its own timeline has a frame called startscreen? you could try this.gotoAndStop("startscreen");

are you getting any errors?

are you sure the code is being executed? try putting in a trace like:

trace("im working");

above the gotoAndStop to see if the _root is findin what you need.
without knowing how you have set up your movie and if you are loading other mvies into it its ahrd to tell what is going on.
 
0
•••
Yep it's on a movieclip with a frame called startscreen.

Thanx for your suggestion. Unfortunately it didnt work.
 
0
•••
did you do the trace to see if it was executing the code?

if you want post your fla here and ill have a look for you.
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back