actionscript
Moderators: HeRetiK, The inner Core
-
- latency
- Posts: 2
- Joined: Sat Apr 16, 2005 2:08 am
actionscript
How could I make it so that when the mouse arrow goes over an object it drags with it? I don't want to have to press on it to drag.
- Schnabel von Rom
- divine
- Posts: 2422
- Joined: Mon Aug 02, 2004 8:25 pm
- Location: Teh town
on(press) <== event handler
{ <== start actions
code
code
code
code
startDrag("") <== startDrag() is a method, the () are used for parameters like in this case the instance name of a movieclip. the "" indicate an empty string. Which means for the startDrag() method that it refers to the clip it currently is in.
} <== end of action block
{ <== start actions
code
code
code
code
startDrag("") <== startDrag() is a method, the () are used for parameters like in this case the instance name of a movieclip. the "" indicate an empty string. Which means for the startDrag() method that it refers to the clip it currently is in.
} <== end of action block
- Schnabel von Rom
- divine
- Posts: 2422
- Joined: Mon Aug 02, 2004 8:25 pm
- Location: Teh town
Who is online
Users browsing this forum: No registered users and 1 guest