Hi I’ve been working on this flash project for a few weeks now and I keep running in to the same issue. Each time I try to fix it, and then when I go to test it I keep getting either duplicate function or access of undefined property. What I’m making is a cube the is made up of 25 buttons when you click on one of the buttons you should be taken to a larger version of the button that has information on it how ever like I said when its tested it doesn’t work. What I’ve tried so far is changing the functions, changing the name of the functions. Here is the action script I have been using.
From the main menu or " Home"
stop();
/* Click to Go to Frame and Stop
Clicking on the specified symbol instance moves the playhead to the specified frame in the timeline and stops the movie.
Can be used on the main timeline or on movie clip timelines.
Instructions:
- Replace the number 5 in the code below with the frame number you would like the playhead to move to when the symbol instance is clicked.
*/
L5-C1.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L5-C1”) });
L5-C2.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L5-C2”) });
L5-C3.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L5-C3”) });
L5-C4.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L5-C4”) });
L5-C5.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L5-C5”) });
L4-C1.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L4-C1”) });
L4-C2.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L4-C2”) });
L4-C3.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L4-C3”) });
L4-C4.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L4-C4”) });
L4-C5.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L4-C5”) });
L3-C1.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L3-C1”) });
L3-C2.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L3-C2”) });
L3-C3.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L3-C3”) });
L3-C4.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L3-C4”) });
L3-C5.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L3-C5”) });
L2-C1.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L2-C1”) });
L2-C2.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L2-C2”) });
L2-C3.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L2-C3”) });
L2-C4.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L2-C4”) });
L2-C5.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L2-C5”) });
L1-C1.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L1-C1”) });
L1-C2.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L1-C2”) });
L1-C3.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L1-C3”) });
L1-C4.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L1-C4”) });
L1-C5.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“L1-C5”) });
Each of the buttons has similar code but the name of the home is different as well as the frame location.
home1.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“home1”) });
home2.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“home2”) });
home3.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void { gotoAndStop(“home3”) });
ect… You see the problem so I don’t think I need to past all 25 functions in any way any help you guys can give me would be great because I’m just stuck.