|
-
Senior Member
[RESOLVED] flash cs3 timeline control code help
would be appreciative if some one can help me with this please
i'm trying to use 7 buttons to go to 7 different frames I tried all
sorts of combinations
if I use only one button and code this it work great
stop();
btn1.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
gotoAndStop("62");
}
But if I use this I get scipt errors
stop();
btn1.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
gotoAndStop("62");
}
btn2.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
gotoAndStop("63");
}
btn3.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
gotoAndStop("64");
}
btn4.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
gotoAndStop("65");
}
btn5.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
gotoAndStop("66");
}
btn6.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
gotoAndStop("67");
}
btn7.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
gotoAndStop("68");
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|