Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Guest
Feb 10, 2013 Feb 10, 2013

Hello

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

how can i do it?

thank you

TOPICS
ActionScript
629
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Feb 10, 2013 Feb 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();

}

Translate
LEGEND ,
Feb 10, 2013 Feb 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();

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 10, 2013 Feb 10, 2013

Thank you

i did it BUT its gives me an eror

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 10, 2013 Feb 10, 2013
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines