Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-19-2004, 03:51 PM   #1
Christine
lost in bytes
 
Christine's Avatar
 
Join Date: Aug 2003
Location: Crapifornia
Posts: 101
Send a message via AIM to Christine
Default two draggable objects at the same time?

I tried to see if you could have a custom mouse pointer using

onClipEvent (load) {
startDrag (this,true);
Mouse.hide();
}

and then also have a simple draggable movie clip on the same movie.

on (press) {
startDrag (this, true);
}
on (release) {
stopDrag ();
}

It didn't work; the moment the MC was dragged, the custom pointer stopped being dragged. How can I modify the code to make it work? Using MX.
Christine is offline   Reply With Quote
Old 04-19-2004, 04:23 PM   #2
myopic_society
Registered User
 
Join Date: Mar 2004
Location: Boulder, CO
Posts: 29
Send a message via ICQ to myopic_society Send a message via AIM to myopic_society Send a message via MSN to myopic_society
Default

don't use a drag event for the custom mouse

instead use

PHP Code:
mouse_mc.onEnterFrame = function(){
   
this._x _xmouse//(might need to change targeting, _root._xmouse)
   
this._y _ymouse

myopic_society is offline   Reply With Quote
Old 04-19-2004, 08:33 PM   #3
Christine
lost in bytes
 
Christine's Avatar
 
Join Date: Aug 2003
Location: Crapifornia
Posts: 101
Send a message via AIM to Christine
Default

I will do this tonight; if I have problems I will come back crying....

Thanks for the code!
Christine is offline   Reply With Quote
Old 04-19-2004, 08:47 PM   #4
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,875
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

you can also try this
http://proto.layer51.com/d.aspx?f=845

Paste that code in the first frame of your movie to define the new actions and use beginDrag and endDrag instead of startDrag and stopDrag and you'll be able to drag two objects at once (read the rest of that page for more info as well)
__________________
(6)
senocular 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 06:21 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.