Flash CS3 + CS4 Website Tutorial – Add Button Event Listeners in a Loop Actionscript 3.0

December 14th, 2009 | by admin |

Source file – http://www.developphp.com

In this Flash ActionScript 3.0 CS3 + CS4 tutorial we show how to add your event listeners for button instances in for each loop.

Duration : 0:27:15


[youtube AhsSQGcm46E]

  1. 25 Responses to “Flash CS3 + CS4 Website Tutorial – Add Button Event Listeners in a Loop Actionscript 3.0”

  2. By dearATLCountMeIn on Dec 14, 2009 | Reply

    Just want to say …
    Just want to say Thank you to Adam for the tutorials on all things AS3. Free education is a great gift. Please don’t stop doing these wonderful teaching vids. I have learned so much it’s hard to wrap my head around the many ways of using these skillsets in Flash. Thanks again!

  3. By Dea1hdealerNL on Dec 14, 2009 | Reply

    thx for the …
    thx for the tutorial ^^

  4. By IGRAFFIQUE on Dec 14, 2009 | Reply

    hey there, could …
    hey there, could you make a tut for inserting a contact form in the contact page of this site in cs4, i tried to do it with another 1 of your form tuts but failed. please man.

  5. By IGRAFFIQUE on Dec 14, 2009 | Reply

    mate, this was dope …
    mate, this was dope, you are THEE, man….. where do i go from here and how can i put this into dreamweaver to finish off styling these pages? or is that it? cheers…

  6. By sweatyeti on Dec 14, 2009 | Reply

    Thanks for this …
    Thanks for this great-looking and simple technique. It looks wonderful and the coding is so tidy.

    I’d like to point out something that I ran into, though.

    If you’re NOT beginning this method on Frame 1, it seems like you have to place the buttons at least one frame before the coding takes place, and refer all “gotoAndStop()” or “Play()” commands to that frame. It’s almost as if the code needs the buttons to exist first, before the script can function properly.

  7. By livetoday7 on Dec 14, 2009 | Reply

    Hi. Great video :)
    Hi. Great video :) I have a question. You mention about animating the content in another tutorial. I want to make a website like this. But want the content come from below and Stop. when the user clicks another button, I want the content slide down and the clicked button’s content slide up and stop. Do you have tutorial like this? You will save my life if you have :) ) Thanks again for this great video :) )

  8. By oostyoo2003 on Dec 14, 2009 | Reply

    honestly been …
    honestly been searching everywhere for this.. where have you been… great job

  9. By markbriones3 on Dec 14, 2009 | Reply

    how can you make …
    how can you make button on down state if you clicked on it? then goes back to default when you clicked another button.

  10. By TJCVideoProductions on Dec 14, 2009 | Reply

    I figured it out …
    I figured it out when you right click select classic tween!!!

  11. By TJCVideoProductions on Dec 14, 2009 | Reply

    Fuck…I give up …
    Fuck…I give up with trying to make this work on CS4…I wish I still had my god cs3 2 hours wasted trying to figure out the buttons and shit

  12. By eztyke on Dec 14, 2009 | Reply

    Nice vid, but pls …
    Nice vid, but pls help someone. Why doesn’t work in any other browsers than Internet Explorer after when it published to the net??

  13. By flashbuilding on Dec 14, 2009 | Reply

    Good luck buddy!
    Good luck buddy!

  14. By ROMiO0C4 on Dec 14, 2009 | Reply

    i work on Cs4 and …
    i work on Cs4 and it worked just fine,
    the only difference was the color tween part,
    i had to add another layer to type the action.
    but nothing else was different ….
    now i’ll take it to my project and i hope it works with all the animation in it … :)
    wish me luck…..

  15. By Chevinster on Dec 14, 2009 | Reply

    WoW Great
    This’s …

    WoW Great
    This’s very clear , Thanks

  16. By BraveSirRobin86 on Dec 14, 2009 | Reply

    Just did this with …
    Just did this with CS4.
    Only difference I had to make was when tweening the colour change for the buttons. Had to convert to frame by frame animation so I could add the stop action to the last frame.
    Brilliant tutorial. Thanks a million.

  17. By guitarplyr2007 on Dec 14, 2009 | Reply

    could you post a …
    could you post a link. you have so many tutorials it is hard to wade through them all.

    thnx

  18. By guitarplyr2007 on Dec 14, 2009 | Reply

    Can you please …
    Can you please explain how to do this in CS4. And if you cant do this in CS4 please tell us.

    thank you

  19. By Rein199 on Dec 14, 2009 | Reply

    Thank you, really …
    Thank you, really helpful…

  20. By mattrib on Dec 14, 2009 | Reply

    Thanks for the …
    Thanks for the explanation. It worked really good for me and I had never used flash before!
    I do have a question, though. Can I use the same type of buttons inside the content pages?
    Because I was able to do it in one, removing “pages” from void; but I can not do it in 2 different pages. It doens’t seem to work. Any hints? thanks again!

  21. By numbard on Dec 14, 2009 | Reply

    An easy solution is …
    An easy solution is to have the “up” state of that button on that frame to be identical to the down state. that way it will look as if it stays down.

  22. By flashbuilding on Dec 14, 2009 | Reply

    I just made a new …
    I just made a new tutorial a few days ago covering that…

    Hope it helps.

  23. By wmygenius on Dec 14, 2009 | Reply

    Thank you~
    Thank you~

  24. By DigitalAssassin on Dec 14, 2009 | Reply

    In CS4, the motion …
    In CS4, the motion tween doesn’t seem to work and I can’t add the stop action.

    Can you give us a short paragraph telling us how to fix these two problems?

    Thanks =)

  25. By dAlen7 on Dec 14, 2009 | Reply

    Problem Im running …
    Problem Im running into is the buttons.
    I made the buttons in flash as ‘buttons’ [up, over, down, hit] states.

    So the button is white, rolls over red, clicks and is blue…but does not stay that way. [I want it to stay blue once Im on that 'page', as it were.]

    What I have is an art gallery, where Im pulling in xml scrolling thumbnails and larger picture image…and when I click on button I need it to stay blue, any ideas? Thanks :)

  26. By 3Residence3 on Dec 14, 2009 | Reply

    Thank you so much!! …
    Thank you so much!! I was looking for this for so long, I really thought it was hard but you made it very clear to me, now I can get a good grade. I’ll be sure to thank you and check out other tutorials you made.

Post a Comment