Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: mouse movement
From: Tim Allan
Date: Mon, 20 Sep 1999 01:59:46 +0100

Lisa,

Yes, it can in flash 4. But is based around the actionscript that you write
to detect the mouse movement.

The approach I would do is something like this:
you have a looping movieclip over a number of frames
At the start you get the x coordinate for the mouse position and place that
value into a variable.
At the end you get the next cocrdiante for the mouse position and place that
into a variable.
Compare the values of the two variables: depending on if the value is
negative or positive, the mouse will have to have been moved left or right.

Use an If..then statement to determine the action
eg if variable is greater then 0 ( x>0), go to frame myFrame

eg. Start of the loop:mouse is at positon 10 on the x axis,
End of the loop:mouse is at position 20 on the x axis
Result is positive, mouse must have moved to the right.

If the result is zero, then the mouse has not moved at all

Hope that Helps


tim


-----Original Message-----
From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of Lisa
Broussard
Sent: Saturday, September 18, 1999 7:37 AM
To: flasheratchinwag [dot] com
Subject: FLASH: mouse movement


does anyone know if/how FLASH can detect the movement of the mouse and move
to a new frame based on if the mouse was moved toward the left or right?

i'm trying somethign here.

lisa


LisaBroussard
DigitalCharacter Interactive
lisaatdigitalcharacter [dot] com
615.279.0045



------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratchinwag [dot] com. Problems to: helpatchinwag [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratchinwag [dot] com


------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratchinwag [dot] com. Problems to: helpatchinwag [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratchinwag [dot] com


Replies
  RE: FLASH: mouse movement, Lisa Broussard

Replies
  FLASH: mouse movement, Lisa Broussard

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]