Skip navigation
Currently Being Moderated

MX2004 button problem

Jun 21, 2007 6:11 PM

We have a movie (slide show) of a series of photos blending from one to
another. I use the following Action Script for a pause button:

on (release) {

//Stop video Behavior
stop();
;

}

This works fine, but the problem is getting the show going again from
the point where it stopped. I used the following behavior on a forward
button:
on (release) {

//Movieclip GotoAndPlay Behavior
this.gotoAndPlay("_currentframe+1");
//End Behavior

}

Doesn't work

Nor does this:
nextFrame();

Can anyone show me the error of my ways? We also want a Back button that
I imagine would work in a similar way as the Forward button....only
backwards :)

I have the buttons in a layer named buttons.

Thanks.

Fred
 
Replies
  • Currently Being Moderated
    Jun 22, 2007 8:25 AM   in reply to Newsgroup_User
    The scope is wrong in the play code. The keyword "this" is referring to the button, not the main timeline. try using "_root" instead. You could also just try using "play();" the same way you used "stop();"

    Good luck!

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 22, 2007 8:29 AM   in reply to Newsgroup_User
    this question was answered in the Actionscript forum.. please don't cross post!
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)