1120: Access of undefined property error/ help!!!
I created flash file that allows the user to navigate a timeline. When the user hits one of the buttons, the timeline moves to frame 5 and stops, where it displays a MovieClip of information.
In the MovieClip a button resides on the top layer of the MovieClip that closes the panel. The MovieClip panel closes when the button (dishpanel_mc) is pressed and it takes the user back to frame 1.
I placed the ActionScript code on the Action layer in frame 5.
stop();
import flash.display.*;
import flash.events.*;
dishpanel_mc.addEventListener(MouseEvent.CLICK, dishpanelCLICK);
function dishpanelCLICK (event:MouseEvent): void {
gotoAndStop(1);
}
I get the error Location: Scene 1, Layer 'action', Frame 5, ...... Description: 1120: Access of undefined property dishpanel_mc, Source: dishpanel_mc_(MouseEvent.Click,dishpanelClick);
How do I get this function to work?