Flash AS3 Tutorial : Mouse Wheel Interactivity for Zooming Games CS5 CS4 CS3
Envoyer cette vidéo par:
Envoyée le lundi 19 juillet 2010 12:26:43 par flashbuilding
Vue 18966 fois
5.0 / 5
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.
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
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 ;)
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 ?
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.