Skip to main content
Participant
June 15, 2023
Question

Help with actionscript3 in animate

  • June 15, 2023
  • 2 replies
  • 134 views

Hello i am trying to use actionscript 3 to make pretty much a small interactive menu . in the below code i am trying to make it do that when mouse down go from this movie clip to frame 3 and stop but also i want it to go to a different movie clip and stop it at frame 1. I am new to actionscript. both of these are inside of a 3rd movie clip

 

 

stop();
this.addEventListener(MouseEvent.MOUSE_DOWN, move);
 
 
 
 
 
function move(event:MouseEvent): void {
gotoAndStop(3);
MovieClip(root).Menugoside_mc.findus_mc.gotoAndStop(1);
 
}

this is the code i am working with but it doesnt make the findus movie clip go to frame 1 

    This topic has been closed for replies.

    2 replies

    kglad
    Community Expert
    Community Expert
    June 15, 2023

    does MovieClip(root).Menugoside_mc.findus_mc exist when mousedown?  ie, do you see an error when you mousedown?

    JoãoCésar17023019
    Community Expert
    Community Expert
    June 15, 2023

    Hi.

     

    Does the main timeline go to frame 3 when you click? if so, is there a Menugoside_mc instance in frame 3?

     

    Please let us know.

     

    Regards,

    JC