last and greatest: conditional statements for click referring to loaded swf
Hey forum,
I am so close to being done with this site update it is exciting! I will be sure to throw it up here for you to see, since without this forum I would have been hurting!
The last big hurdle I have, is the following, and I hope someone can just throw me a bit of guidance on this.
I am looking for a way to write a function, that on click of my "next" button in the main timeline, will refer to my loaded swf MovieClip(imageLoader.content) telling it to go to the next frame label, so really a compound if/then situation – just referring to the loaded file throws me.
So, my next button is "pNext," and what I am looking for is something along the lines of:
if (loaded movie) is on frames 12-144, then go here (on click),
if (loaded movie) is on frames 144-155, then go here (on click)
etc. and so forth.
Thanks so much! Below is my code that works on one next click, so you can see the instances etc.
b
pNext.addEventListener (MouseEvent.CLICK, nextClick);
function nextClick (e:MouseEvent):void{
MovieClip(imageLoader.content).gotoAndPlay ("aboutS1");
}