dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: How to play a movie on button release?

  1. #1
    flash addict
    Join Date
    Jun 2003
    Posts
    136

    How to play a movie on button release?

    Hello,

    I have built a flash file with a number of buttons in it and I want to be able to press one of these buttons, and on the release, play a movie. eventually the other buttons will be doing the same thing(just playing different movies)

    to see an example of what I am talking about, you can check out www.puccaclub.com/eng
    ...and go to the amusement section where the flash movies are.

    I bet this is real simple to do and I've guessed some script but I keep getting errors.

    Thanks very much in advance. Anyone who could help will be much appreciated.
    ~"Flash is soooooooooooo flashy!"

  2. #2
    Well, make a MovieClip with all the movies in it. Make the first frame empty. then label it "stopped", and put the stop(); action on it. Then on the next frame start the first movie. Name that next frame "one". Then on the last frame of the movie, put these actions on it.

    Code:
    gotoAndStop("stopped");
    After that last frame, place the next movie, naming the first frame of that movie "two". and make the last frame of that movie the same as noted above.

    Do this for as many movies as you need.

    Then. Name the MovieClip "movies".

    Now on the buttons. put this action to each corrosponding button.

    Code:
    on(release) {
         movies.gotoAndPlay("one");
    }
    and so on. That should work fine.

    ~Bill
    So many Ideas

    So little Time

  3. #3
    Member
    Join Date
    Nov 2005
    Posts
    86
    Why dont you do a search on the forums? Look here's one of hundreds of posts!

    http://flashkit.com/board/showthread...loading+movies

    And heres all the search results: http://flashkit.com/board/search.php?searchid=308678

    Have fun.
    TurquoiseGala.org
    x-Sellus Shopping
    NYOC.net

  4. #4
    flash addict
    Join Date
    Jun 2003
    Posts
    136
    Wow, thanks a bunch killerbigmac! i didn't try your method yet but it makes a lot of sense to me just reading through. saves me a lot of hassle! thanks again~~
    ~"Flash is soooooooooooo flashy!"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center