Groups | Blog | Home
all groups > flash actionscript > november 2006 >

flash actionscript : Buttons and movie clips


toiluj23
11/13/2006 9:03:42 PM
Hi,
i think you need to make a gotoAndStop("reject");
this will allow you to go to that frame and Stop there. Also i recomend
you, to put a stop(); in each of those frames.
Then the code that loads that MCs.

i hope you can solve it!

Bye.

Julio.


webmstir ha escrito:

[quoted text, click to view]
webmstir
11/13/2006 10:22:39 PM
I'm sorry if this question has already been answered. I searched the archives
and couldn't find what I was looking for. Basically what I want to do is use a
button to play a movie when pressed. The problem is I can't figure out how to
do it.

1. I've created 3 buttoms and three movie clips.
2. I created a layer for the background which has text on it that says "press
to view".
3. I created another layer for the buttons and one layer for the button text
4. I created an actions layer and put a stop action in frame 1
5. I added another layer for the movie clips on frame 2 (mailflow_mc), frame 3
(reject_mc), frame 4 (fullrate_mc) and labeled each frame accordingly.
6. Add action script for each button:

on (press) {
gotoAndPlay("reject");
}

When I play the movie the animations will not load and they flash fast. Any
suggestions?

Thanks,
Mimi

kglad
11/14/2006 12:00:00 AM
if you have a frame labelled reject you can use:



on (press) {
_root.gotoAndStop("reject"); // or if you didn't label frame 3 "reject", use _root.gotoAndStop(3);
AddThis Social Bookmark Button