Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > Simple Stuff (Newbies)

Reply
 
Thread Tools Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
Old 03-30-2005, 08:24 PM   #1
CrabRangoon
Registered User
 
Join Date: Mar 2005
Posts: 3
Default Fooling .startDrag's 1 movie clip limit--at wit's end.

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
CrabRangoon is offline   Reply With Quote
Old 03-30-2005, 09:01 PM   #2
nthpixel
Registered User
 
Join Date: Feb 2004
Location: Honolulu
Posts: 186
Default

I don't quite understand your project but can you have the movie clip follow the mouse with a onEnterFrame function?
nthpixel is offline   Reply With Quote
Old 03-30-2005, 09:04 PM   #3
CrabRangoon
Registered User
 
Join Date: Mar 2005
Posts: 3
Default

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 .
CrabRangoon is offline   Reply With Quote
Old 03-30-2005, 09:06 PM   #4
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,784
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

see:
http://proto.layer51.com/d.aspx?f=845
__________________
(6)
senocular is offline   Reply With Quote
Old 03-30-2005, 09:42 PM   #5
CrabRangoon
Registered User
 
Join Date: Mar 2005
Posts: 3
Default

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!
CrabRangoon is offline   Reply With Quote
Old 07-26-2005, 09:59 AM   #6
Morg
1st party software!
 
Morg's Avatar
 
Join Date: Nov 2003
Location: South Africa
Posts: 906
Default Senocular - demi-god

Senocular, you are a god amongst men my friend! great prototype... Thanks.
Morg is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:37 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.
You Rated this Thread: