Copy link to clipboard
Copied
Hello
i want to playa movie clip when i click ona nother movie clip
how can i do it?
thank you
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();
}
Copy link to clipboard
Copied
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();
}
Copy link to clipboard
Copied
Thank you
i did it BUT its gives me an eror
Copy link to clipboard
Copied
I cannot see your screen to see what the error is.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now