Copy link to clipboard
Copied
Hi! I have been using flash cs5 for a few years now and I've never been great with coding since i usually just do swf animations. However I am in the process of writing a story/book and I wanted to make a little guide for all of the dragons species in the story.
Example: I had it so there is a title screen and a start button, you click the start button and you are taken to the next scene; which is a picture of a mist dragon I drew and then audio plays; describing mist dragons. in the corner there is a "next" button and when you click it, it takes you to the next species and the audio plays just like with the mist dragon.
my major problem is my code is muffed up( I know it is totally incomplete, but this code is what I am comfortable working with, anybody know whaat the full code is?). I typed in what I could remember from class... could anybody help me?
here is the code i remembered:
Stop();
btn1.addEventListener(MouseEvent.CLICK…
function btn1Listener(e:MouseEvent):void {
gotoAndStop(1, "mist dragon");
1 Correct answer
use:
Stop();
btn1.addEventListener(MouseEvent.CLICK,btn1Listener);
function btn1Listener(e:MouseEvent):void {
gotoAndStop(1, "mist dragon"); //<- you may want gotoAndPlay(1,"mist dragon")
}
Copy link to clipboard
Copied
use:
Stop();
btn1.addEventListener(MouseEvent.CLICK,btn1Listener);
function btn1Listener(e:MouseEvent):void {
gotoAndStop(1, "mist dragon"); //<- you may want gotoAndPlay(1,"mist dragon")
}

