Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (15)

Sign In or Sign Up now to post a comment!
  • This is great thankyou so much

  • Shadowfox84, glad this was helpful. Also see youtube.com/watch?v=gR9b4xcyPE­8 for more on event listeners and buttons

  • 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!!!

  • get syntax error on function goStart(evt:Event):void {

    can´t find the error?

  • 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

    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.

  • 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.

  • you're probably using a gotoAndPlay('fly"); instead of a gotoAndStop("fly") - a common mistake

  • @inntoon : nope. I'm using a gotoAndStop

    function goflyer(e:Event):void {

    gotoAndStop("flyer")

    }

    btn.Flyer.addEventListener(Mou­seEvent.CLICK,goflyer);

  • @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

  • Best flash tutorial so far for me ! pLease keep it coming !!!

    and 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");

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more