I want to be able to detect which way the scroll wheel is scrolling, not just if it is scrolling. Is there anyway I can do this? Thanks![]()
I want to be able to detect which way the scroll wheel is scrolling, not just if it is scrolling. Is there anyway I can do this? Thanks![]()
Are you using AS2 or AS3?
Edit: Nevermind...lol. Blizzard, you're too good man.
"delta" will be a number, usually 3 or -3 positive is for up movement, negative is for down scrolling.Code://import the class import flash.events.MouseEvent; //this is the listener definition addEventListener(MouseEvent.MOUSE_WHEEL,handleMous eWheel); //and the handler public function handleMouseWheel(event:MouseEvent){ trace(event.delta); }![]()
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
hosdank (09-06-2008)
Thanks so much![]()
![]()
![]()
A small note: If you're coding from within the IDE, you don't need to import the MouseEvent class explicitly. The required classes will be imported automatically when you compile the SWF.
This is only true if you're coding from within the Flash IDE, however.
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
Bookmarks