CLICK in main timeline >> goes to where click is designated in loaded swf?
Seems doable, but having trouble grasping the concept...
I have a loaded swf slide show, within that slideshow, I have assigned "next" and "prev" buttons to advance and back up my slide shows via frame labels ("oneIn") for instance... here is an example:
btn_next.addEventListener (MouseEvent.CLICK, nextClick);
function nextClick (e:MouseEvent):void{
this.gotoAndPlay ("twoIn");
}
I would like this function to run when I click a hit state on the main timeline above it. So, how would I trigger the above function from a click on the hit state on the main timeline?
To help, here is my code for the mouse over function using the hit state that refers to the external buttons:
pNextH.addEventListener (MouseEvent.MOUSE_OVER, nextOver);
function nextOver (e:MouseEvent):void{
var mc:MovieClip = MovieClip(imageLoader.content);
mc.btn_next.gotoAndPlay ("nextOver");
}