Forum Topic: Addin gotoandplay btns on Scene 2

(101 views • 5 replies)

New Topic Post Reply

This topic is 1 page long.

<< < > >>
Resigned

rebornMCW

Reply to Post Reply & Quote

Posted at: 12/24/08 09:31 PM

rebornMCW FAB LEVEL 11

Sign-Up: 08/05/02

Posts: 137

import flash.events.MouseEvent;
play111.addEventListener(MouseEvent.CLIC K, clickFunction);
button.addEventListener(MouseEvent.CLICK , skipAhead);
function clickFunction(evt:MouseEvent):void {
gotoAndPlay(1,"Scene 1");
}
function skipAhead(evt:MouseEvent):void {
gotoAndPlay(700,"Scene 1");
}

thats the script I use but for some reason in other scene the button wont work. How can I fix this? Double jeopardy! When the flash loops to beginning, the buttons dont work anymore. Whats up with that!


None

rebornMCW

Reply to Post Reply & Quote

Posted at: 12/24/08 09:34 PM

rebornMCW FAB LEVEL 11

Sign-Up: 08/05/02

Posts: 137

Using AS3 also.


Resigned

ZiggyZack99

Reply to Post Reply & Quote

Posted at: 12/24/08 09:48 PM

ZiggyZack99 DARK LEVEL 15

Sign-Up: 04/15/07

Posts: 2,781

Flash forum, we don't deal with Actionscript.


None

Thomas

Reply to Post Reply & Quote

Posted at: 12/24/08 09:49 PM

Thomas LIGHT LEVEL 13

Sign-Up: 02/14/05

Posts: 2,834

I believe the Flash Forum is where you should be.


None

rebornMCW

Reply to Post Reply & Quote

Posted at: 12/24/08 09:52 PM

rebornMCW FAB LEVEL 11

Sign-Up: 08/05/02

Posts: 137

ah, thought programming forums meant actionscript too. mk


None

gumOnShoe

Reply to Post Reply & Quote

Posted at: 12/24/08 10:21 PM

gumOnShoe LIGHT LEVEL 15

Sign-Up: 05/29/04

Posts: 13,860

Nope, flash forum.

FORUM MODERATOR PM Forum Abuse to: Me :: AIM: gumOnShoeNG
Improve Your Responses >:(

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 12:37 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!