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

advance to next frame 2

Status
Not open for further replies.

kushpa

Programmer
Feb 4, 2005
5
US
okay, i'm feeling very foolish here . . . i used to use flash pretty regularly, but haven't in almost 2 years. i'm now working on a project and trying to do the simplest of techniques -- a simple "back and forward one frame" action.

here's my script:

on (release) {
prevFrame();
}

but when i preview, nothing. is there some drastic change that's taken place between flash4 and 2004mx?

even this isn't working:

on (release) {
gotoAndPlay(10);
}

these are actionscripts applied to movieclips. can anyone tell me what i'm doing wrong?
 
actually it should be this:

on (release) {
_parent.gotoAndStop(2);
}

this tells the parent of the movie clip to move.

 
AHAH! Yes of course, he's right, it depends on what your trying to move. Another option is you could use the first code if you changed the instance type. When you click on the movie clip itself when your editing it, above the instance name you can change the way an object acs. if it was a button, then you could have used the first code.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top