Glue
02-23-2006, 12:35 AM
First off, i have a few questions.
What is the difference between graphics and movies?
Can only movie clips be put in code in actionscript?
Can all of your actionscript coding be done on the frame 1 of each scene?
And my main question is how to make a button play a video clip.
so far i think ive done it right up to this point, I made a button called Btn
and then in Action i select Scene 1 and Layer 1, frame 1
then i put this in
stop();
Btn.onRelease = function()
{
gotoAndPlay("Scene 2",1);
}
i think what this should do is it stops the first clip (which it does)
and it should on release of the button, go to scene 2, and play starting at
frame 1, the small movie clip. (I created a movie clip symbol, and moved it onto scene one, when creating the movie clip, i used several frames, is this right?)
So anyways, when i do click the button, all that happens is it gets clicked, no clip plays.
Also, after the clip plays, how would i tell it to return to the button?
Thank you for your time and im using flash mx professional 2004.
What is the difference between graphics and movies?
Can only movie clips be put in code in actionscript?
Can all of your actionscript coding be done on the frame 1 of each scene?
And my main question is how to make a button play a video clip.
so far i think ive done it right up to this point, I made a button called Btn
and then in Action i select Scene 1 and Layer 1, frame 1
then i put this in
stop();
Btn.onRelease = function()
{
gotoAndPlay("Scene 2",1);
}
i think what this should do is it stops the first clip (which it does)
and it should on release of the button, go to scene 2, and play starting at
frame 1, the small movie clip. (I created a movie clip symbol, and moved it onto scene one, when creating the movie clip, i used several frames, is this right?)
So anyways, when i do click the button, all that happens is it gets clicked, no clip plays.
Also, after the clip plays, how would i tell it to return to the button?
Thank you for your time and im using flash mx professional 2004.