Yahoo Answers is shutting down on 4 May 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Help With Action Script 3.0 (ONLY ANSWER IF YOU KNOW FLASH WELL)?

ok i have 2 buttons:

button1

button2

now in the actionscript i typed:

stop();

button1.addEventListener(MouseEvent.CLICK, mouseDownHandler);

function mouseDownHandler(event:MouseEvent):void {

gotoAndStop(4);

}

button2.addEventListener(MouseEvent.CLICK, mouseDownHandler);

function mouseDownHandler2(event:MouseEvent):void {

gotoAndStop(2);

}

PROBLEM: button1 goes to frame 4. however so does button2. and vice-versa if i switch order of buttons. i need help from someone who knows flash.

additional info:

using Flash CS5.5

project is using AIR 2.6 for iOS

btw in the code it should be CLICK not CL.. yahoo answers is processing it wrong...

1 Answer

Relevance
  • 1 decade ago
    Favourite answer

    in button2.addEvenListener() you set mouseDownHandler as the event listener, I believe you meant mouseDownHandler2

Still have questions? Get answers by asking now.