a day late for my final, and after watching several other tutorials, yours is the only one I really understood. I FINALLY UNDERSTAND THIS. THANK YOU!!!
Sorry but I'm still having no luck :(. I have done all that you said. When I tested the movie at 3:48 I had the same problem where the letters flicked through. The buttons seem to have no affect on the letters when I test the movie.
I have just tried this and when I tested the movie it flicked through the letters instead of linking the letters to the buttons. I've checked the actions script and can't see any mistakes, any suggestions?
you need a stop() action on frame 1 to keep the timeline from running like a movie. You want it to stop on frame1 until the button tells it gotoAndStop("another_frame");
This is great thankyou so much
Swiltching 11 months ago
Shadowfox84, glad this was helpful. Also see youtube.com/watch?v=gR9b4xcyPE8 for more on event listeners and buttons
inntoon 1 year ago
a day late for my final, and after watching several other tutorials, yours is the only one I really understood. I FINALLY UNDERSTAND THIS. THANK YOU!!!
Shadowfox84 1 year ago
get syntax error on function goStart(evt:Event):void {
can´t find the error?
bard77 1 year ago
Can't help you without seeing the code. Are you missing a bracket? If you use only the one line above, you'll get an error. If you use,
function goStart(evt:Event):void {
}
you won't have a function that does anything, but you won't get an error.
Otherwise, try posting a whole block of code. Also, specifics about the error message would be helpful.
inntoon 1 year ago
@inntoon
found the problem, simple but so annoying...
first function spelled funtion in my code and then failed to name my buttons.. thought I did, but nope.. :-) thanx. It works fine! Great tut.
bard77 1 year ago
when I test with only the "home" and "bounce" code, it works great. When I add in the final script for the "fly" button, it loops.
riottgirl 1 year ago
you're probably using a gotoAndPlay('fly"); instead of a gotoAndStop("fly") - a common mistake
inntoon 1 year ago
@inntoon : nope. I'm using a gotoAndStop
function goflyer(e:Event):void {
gotoAndStop("flyer")
}
btn.Flyer.addEventListener(MouseEvent.CLICK,goflyer);
riottgirl 1 year ago
@riottgirl
i had the same problem
turned out that in the end i typed AddEventListener instead of addEventListener
20 minutes wasted on one capital letter lol duh
CarnahanRaul 1 year ago
Best flash tutorial so far for me ! pLease keep it coming !!!
and thank you !!
iryna 1 year ago
Sorry but I'm still having no luck :(. I have done all that you said. When I tested the movie at 3:48 I had the same problem where the letters flicked through. The buttons seem to have no affect on the letters when I test the movie.
pinguwaddles1990 2 years ago
I have just tried this and when I tested the movie it flicked through the letters instead of linking the letters to the buttons. I've checked the actions script and can't see any mistakes, any suggestions?
pinguwaddles1990 2 years ago
you need a stop() action on frame 1 to keep the timeline from running like a movie. You want it to stop on frame1 until the button tells it gotoAndStop("another_frame");
inntoon 2 years ago