Be a Supporter!

quick question

  • 262 Views
  • 6 Replies
New Topic Respond to this Topic
Yambanshee
Yambanshee
  • Member since: Oct. 5, 2008
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
quick question 2009-02-18 22:35:13 Reply

can someone give me a piece of code for a variable change apon the scroll wheel is scrolled up, and another when scrolled down


AS2||AS3||Motox
Thanks to hdxmike for the sig :]

BBS Signature
Redshift
Redshift
  • Member since: Feb. 12, 2005
  • Offline.
Forum Stats
Member
Level 15
Programmer
Response to quick question 2009-02-18 22:50:42 Reply

AS2 or AS3?


#include <stdio.h>
char*p="#include <stdio.h>%cchar*p=%c%s%c;%cmain() {printf(p,10,34,p,34,10);}";
main() {printf(p,10,34,p,34,10);}

BBS Signature
Yambanshee
Yambanshee
  • Member since: Oct. 5, 2008
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to quick question 2009-02-18 22:51:34 Reply

2. keep 4gting to mention


AS2||AS3||Motox
Thanks to hdxmike for the sig :]

BBS Signature
littleMonsterGames
littleMonsterGames
  • Member since: Dec. 24, 2008
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to quick question 2009-02-18 22:52:56 Reply

for AS2, refer to this:
http://livedocs.adobe.com/flash/8/main/w whelp/wwhimpl/common/html/wwhelp.htm?con text=LiveDocs_Parts&file=00002433.html


BBS Signature
Yambanshee
Yambanshee
  • Member since: Oct. 5, 2008
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to quick question 2009-02-19 05:40:53 Reply

I'm having problems with it. Heres my script:
onMouseWheel = function () {
trace("MouseWheelTrig");
};


AS2||AS3||Motox
Thanks to hdxmike for the sig :]

BBS Signature
Denvish
Denvish
  • Member since: Apr. 25, 2003
  • Offline.
Forum Stats
Member
Level 46
Blank Slate
Response to quick question 2009-02-19 06:05:16 Reply

You need to set up a listener

var mouseListener:Object = new Object();
mouseListener.onMouseWheel = function(delta) {
trace("MouseWheelTrig");
}
Mouse.addListener(mouseListener);


- - Flash - Music - Images - -

BBS Signature
Yambanshee
Yambanshee
  • Member since: Oct. 5, 2008
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to quick question 2009-02-19 06:14:25 Reply

ahh... thanx :P


AS2||AS3||Motox
Thanks to hdxmike for the sig :]

BBS Signature