Skip to main content
February 10, 2013
Answered

How do I play a movie clip inside another movie clip?

  • February 10, 2013
  • 1 reply
  • 657 views

Hello

i want to playa movie clip when i click ona nother movie clip

how can i do it?

thank you

This topic has been closed for replies.
Correct answer Ned Murphy

The following is using generic instance names based on your description, so you will have to change the names to agree with your design.

anotherMovieclip.addEventListener(MouseEvent.CLICK, play_aMovieclip);

function play_aMovieclip(evt:MouseEvent):void {

     aMovieclip.play();

}

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
February 10, 2013

The following is using generic instance names based on your description, so you will have to change the names to agree with your design.

anotherMovieclip.addEventListener(MouseEvent.CLICK, play_aMovieclip);

function play_aMovieclip(evt:MouseEvent):void {

     aMovieclip.play();

}

February 10, 2013

Thank you

i did it BUT its gives me an eror

Ned Murphy
Legend
February 10, 2013

I cannot see your screen to see what the error is.