As of now i will use it in local site actually i'm new on flash just for learning purposes only.
Another Question Please!
How can i call MC on a button how can i load it in my main movie?
Ex:
I have a button then when i hit the button my target MC will execute on the main movie.
You first have to create the movie clip and the button.
Make sure your mc has a blank keyframe at the beginning of it. Add a stop(); action to this first keyframe.
From the library, drag your button and mc on stage, and for clarity, each on it's own renamed layer.
Your mc will appear as an empty small circle. Select it and in the Instance panel, name it.
That done, right-click your button and hit actions. In the left part of the Object Actions box that will popup, double-click on the on action. Uncheck release, and check press. Next double-click the tellTarget action and type in the name you gave to your movie clip instance's name. Finally double-click the play() action... You should end up with something like this:
on (press) {
tellTarget ("yourmcintance'sname" {
play ();
}
}
Close this Object Actions box, and test your movie. When you press the button, the movie clip should play!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.