Hello, I’m in need of some help. If anyone is kind enough to pity me and give me a bit of a hand getting started with my as3 project, thankyou!
I have an as3 project. With three buttons on the main timeline. I have a movieclip on the main timeline that I want to control with the buttons. I need the buttons to do two things at once. I’ll outline 1 button, and I should be able to figure the rest out.
I need button A to move the playhead to to some other content on the main timeline.
I’ve used this code and it works:
import flash.display.MovieClip;
import flash.events.MouseEvent;
function menuChoice1(event:MouseEvent):void {
this.gotoAndStop(“about penbird”);
}
NesttButton1.addEventListener(MouseEvent.CLICK,
menuChoice1);
I need the same button to simultaneously control a movie that’s inside a movie on the main timeline (it’s an animation of the eyes of a character on the main timeline).
I’m using this code which doesn’t work for reasons that are probably very obvious to you, but I’m real new to this:
function menuChoice3(event:MouseEvent):void {
eyes1.gotoAndStop(“b”);
}
NestButton1.addEventListener(MouseEvent.ROLL_OVER,
menuChoice3);
“eyes1” is the eye movie, and “b” is the frame label with the gfx I need.
This is the error message I receive:
1180: Call to a possibly undefined method eyes1.
Thanks for reading! Any help would be a real lifesaver…
Jim