Question:

Having trouble with flash animations?

by  |  earlier

0 LIKES UnLike

hey guys, so im having trouble with this one thing in flash.

--

1: How would I make it so once the movieclip is unloaded, a new one pops up.

2: How would I make it so once I click on the moveclip it plays another clip, like lets say I click on a baloon and it pops.

3: How do I make it so once the baloon is unloaded I get points?

----

Thanks

 Tags:

   Report

1 ANSWERS


  1. I only know AS3, so I can't help you if you're using AS or AS2.

    1. just attach the "remove" event listener to the movieclip. So if the movieclip was named balloon_mc you'd type

    balloon_mc.addEventListener(Event.REMO... someFunc);

    Then in the someFunc event handler you could write the code to add a new instance of balloon to the stage.

    2. You'd have to go into the balloon timeline and animate it exploding.

    then attatch a mouse event handler to the balloon.

    balloon_mc.addEventListener(MouseEvent... someFunc);

    then in the someFunc event handler you could write the code to play the animation ex: balloon.gotoAndPlay(1);

    3. write a function that adds your score then displays it to the screen via dynamic text.

    ex:

    var myScore:int;

    myScore += score;

    message_txt.text = myScore;

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.