English
  • Flash AS3 Tutorial : Mouse Wheel Interactivity for Zooming Games CS5 CS4 CS3
    Envoyer cette vidéo à vos ami(e)s
    Obtenir le code d'intégration de la vidéo
    Envoyer cette vidéo par:


    Envoyée le lundi 19 juillet 2010 12:26:43
    par flashbuilding
    Vue 18966 fois
    5.0 / 5
    12345
    67 vote(s)

    Learn how to program the MOUSE_WHEEL event in Flash Actionscript 3.0 to add a whole new level of interactivity to your projects. We access the delta property to see if the user is scrolling up or down.



    facebook
  • Écrire votre commentaire ici...
  • israelRaizer

    thanks!!
    mardi 22 mai 2012 19:34:38
  • providence99ph

    thank you very much you just save my work.ahaha!!!
    mercredi 12 octobre 2011 21:05:31
  • potter503

    please dont talk like that (1:51 BLUE BAR! )
    vendredi 08 juillet 2011 20:28:03
  • potter503

    please dont talk like that (1:5`)
    vendredi 08 juillet 2011 20:27:25
  • Lebensbaustein

    Is there a way I can make the wheeled object be in front of the other ones? I have the problem that my object is behind the other ones around it when I wheel in on it and make it bigger... just asking... oO
    mercredi 22 juin 2011 13:30:50
  • sharksystem1

    this is what i need! thanks man! is there a way to make the zoom smoother?
    mardi 21 juin 2011 21:22:17
  • Danbo342

    Wow, I should have proof read /doh. I meant I have a button that I want people to be able to scroll (with the mouse wheel since it's a nob (potentiometer) and have it make my child movie clip play 1 frame per mouse wheel event. I'll check in the help section again but so far so, lost ;)
    jeudi 03 mars 2011 22:32:44
  • raichz

    Is there anywhere that "Facebook game style board" tutorial ? I Cant find it anywhere and it is exactly what I needed.
    mercredi 16 février 2011 16:03:12
  • Bracerjack

    But the addEventListener is added to the stage. a.k.a stage.addEventListener in this case. How is it that event.target is the circles ? I know it works...but why ?
    jeudi 21 octobre 2010 14:44:48
  • kikeub

    mouseListener = new Object(); mouseListener.onMouseWheel = function (delta) { if (delta > 0) {scale += steps; _root.YOUROBJECT._height += _root.YOUROBJECT._height * 0.2 ; _root.YOUROBJECT._width += _root.YOUROBJECT._width * 0.2;} else if (delta < 0) {ecale -= steps; _root.YOUROBJECT._height -= _root.YOUROBJECT._height * 0.2 ; _root.YOUROBJECT._width -= _root.YOUROBJECT._width * 0.2; }} Mouse.addListener(mouseListener);
    dimanche 10 octobre 2010 11:52:14
  • AwesomeGirl86

    @kikeub Can you please clarify just a little bit. Do I add it to the code or do I select the red ball and add the code in there? Just wondering.
    vendredi 08 octobre 2010 15:04:00
  • 5plan13

    NIce tutorial!!! also run in actionscript 2.0?
    mardi 07 septembre 2010 09:10:08
  • AwesomeGirl86

    I did like you said in the video but for some reason it's not working for me. I do have Flash CS3 & the ActionScript 3.0 but I don't know what went wrong. :( So, I don't know if I'm missing something or that I need to try something else. 
    mardi 31 août 2010 22:54:24
PUBLICITÉ
Suppléments
Réseaux sociaux
Nuage de tags