This is probably a really basic question, since I am newbie at AS3 but I need help.
I have thumbnails in a portfolio slideshow movie clip. Each client featured in the movie clip has three thumbnails that when clicked are to show the corresponding image by going to the labeled frame for that image.
I used the following code on the first client at frame 1:
//“ace_1” is the instance of the first thumbnail
ace_1.addEventListener(MouseEvent.CLICK, ace1);
function ace1 (event:MouseEvent):void {
gotoAndPlay(“ace”);
trace(“moved next”);
};
//“ace_2” is the instance of the second thumbnail
ace_2.addEventListener(MouseEvent.CLICK, ace2);
function ace2 (event:MouseEvent):void {
gotoAndPlay(“ace2”);
trace(“moved next”);
};
//“ace_3” is the instance of the third thumbnail
ace_3.addEventListener(MouseEvent.CLICK, ace3);
function ace3 (event:MouseEvent):void {
gotoAndPlay(“ace3”);
trace(“moved next”);
};
It worked just fine with no error and correct traces (I was so excited :beam:). So I wrote similar code for the next client modifying the instance names and function names and the labeled frames.
anc_1.addEventListener(MouseEvent.CLICK, anc1);
function anc1 (event:MouseEvent = null):void {
gotoAndPlay(“anchor”);
trace(“moved next”);
};
anc_2.addEventListener(MouseEvent.CLICK, anc2);
function anc2 (event:MouseEvent = null):void {
gotoAndPlay(“anc2”);
trace(“moved next”);
};
anc_3.addEventListener(MouseEvent.CLICK, anc3);
function anc3 (event:MouseEvent = null):void {
gotoAndPlay(“anc3”);
trace(“moved next”);
};
This gave me the “1023:Incompatible override” and “1021: Duplicate function definition” errors.
Being a newbie I don’t know what I need to change. I have 14 clients I have to get similar thumbnails working on.
Sure could use some help.
Thanks.
Adriana