Quantcast
Channel: Adobe Community : All Content - Adobe Animate CC - General
Viewing all articles
Browse latest Browse all 13519

Error 1009 - Can't figure out what's wrong

$
0
0

My code:

 

import flash.events.MouseEvent;

 

stop();

 

function goSearch(evt:Event):void {

    gotoAndStop("Search");

}

btn_Begin.addEventListener(MouseEvent.CLICK,goSearch);

 

function goBasement(evt:Event):void {

    gotoAndStop("Basement");

}

btn_NoKey.addEventListener(MouseEvent.CLICK,goBasement);

 

 

According to Flash, the error is in the last line of my code. I've tried everything I can think of and I absolutely can't figure out why it won't work. I can get the first button ("btn_Begin") to work, but not ("btn_NoKey").

 

Thanks, in advance!


Viewing all articles
Browse latest Browse all 13519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>