| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Mar 2005
Posts: 3
|
I am working on a project which will (hopefully) let the user move different movie clips around by dragging the mouse over them. Kinda like wiping a brush over a water color painting.
So the clip is picked up by the mouse on a hitTest, and then a physics equation takes over when the hitTest=false letting the clip drift inthe direction it was being dragged. Note: the movie clips are NOT identical. I intend on having many movie clips. I have just discovered that the AS dictionary says the .startDrag can only effect 1 movie clip at a time. Can I fool flash? Is there any hope? If not, what are some other possible ways I could get the clips to behave like I want them to, other than .startDrag Thanks in advance for your time and effort, wj sims |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Feb 2004
Location: Honolulu
Posts: 186
|
I don't quite understand your project but can you have the movie clip follow the mouse with a onEnterFrame function?
|
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Mar 2005
Posts: 3
|
No, the motion of the mouse needs to motivate the movement of the movieclip.
a drag effect is what I am looking for. A mousefollow is the reverse of that. Basically: I am asking if there is a way into getting multiple movie clips effected by multiple startDrag functions at the same time . |
|
|
|
|
|
#5 |
|
Registered User
Join Date: Mar 2005
Posts: 3
|
Exactly what I was looking for.
I had a script in mind and it seemed to be a lot simpler than that, but I am a novice at all of this. I just plugged it in: it works very well. I'm going to spend the next hour figuring out what you(?) did. Many thanks! |
|
|
|
|
|
#6 |
|
1st party software!
Join Date: Nov 2003
Location: South Africa
Posts: 906
|
Senocular, you are a god amongst men my friend!
great prototype... Thanks.
__________________
- Morg - - - - - - -> Magazine style textformatting with pullquotes [Me & pixelwit] -> Drawing a dashed line with actionscript [Various] -> Track Mouse Position Outside of Flash Control [Arodicus] |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|