Jump to content


Photo

Play and Rewind Movie Clip on Button Press


  • Please log in to reply
2 replies to this topic

#1 codeoverride

codeoverride

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 02 October 2009 - 02:10 PM

I made a vertical list of thumbnails and converted them into a movie clip. There is a total of 20 thumbnails. I masked the movie clips so that it only shows 5 thumbnails at a time. I created keyframes at every point in the clip that 5 thumbnails are shown so that I can pause it.

I was trying to use this code to scroll down from the first set of 5 to the second:

on (release) {
design_thumbnails.gotoAndPlay (20)
}

When I click the button nothing happens

I'd also like to know how to rewind the movie so that when I press the up arrow it goes up to the previous set of 5.

Here's what it looks like:

Attached Files


Edited by codeoverride, 02 October 2009 - 02:11 PM.


#2 codeoverride

codeoverride

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 02 October 2009 - 03:33 PM

I got it working.. I guess I forgot to put an instance name for the movie clip. BUT now it won't stop on frame 20. It just keeps playing... ;)

Edited by codeoverride, 02 October 2009 - 03:33 PM.


#3 codeoverride

codeoverride

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 03 October 2009 - 04:39 AM

This code worked but once it reaches the end of the movie clip and I press the down button again, it loops back to the beginning.

on (release) {
design_thumbnails.play();
}

How can I keep it from looping back once it reaches the end?

How can I code the other button to play backward?

Thanks.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users