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!

Rewinding a movie on a higher level 1

Status
Not open for further replies.

Kirderf

Technical User
Oct 4, 2000
183
0
0
US
I am trying to create a rewind button that will work on a movie I include in level2.
The button script is the following:

on(release){
_level2.gotoAndPlay(_currentframe - 10);
}
It doesn't work for me.

Stop and play work fine:

on(release){
_level2.stop();
}
Is there an easier solution here?
Thanks

I'd gladly pay you on Thursday
for a hamburger today!
 
Just to clearify
the only code I am using is:


on(release){
_level2.gotoAndPlay(_currentframe - 10);
}

Any ideas why this won't work?

I'd gladly pay you on Thursday
for a hamburger today!
 
try this:

on (release) {
_level2.gotoAndPlay((_level2._currentframe-10));
}

Seems to work for me,
Adam
 
Ha! yes is does. Perfectly I might add.
Thanks Adam!

I'd gladly pay you on Thursday
for a hamburger today!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top