
May 6th, 2003, 10:04 AM
|
|
Member
|
|
Join Date: Mar 2001
Location: Missouri
Posts: 31
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
trouble with startDrag() and dragging multiple MCs
Hello,
I understand that only one MC may be dragged at any time. What I have are two different MCs on the Main Stage, each of which have in them a MC to be draggable while the mouse is in that MC's area. I don't need them to both be draggable at the same time (which is impossible); but what I DO want is to be able to have the clips automatically switch back and forth.
I was thinking of a rollOver event on the MC with an IF condition to check if it's dragger is being dragged or not. I don't know how confusing I am making this sound, so I will try to illustrate below:
"navMC" has within it a MC called "myDragScale" which should be dragged (attached to mouse) while mouse is over the navMC.
"sampleMC" has within it a MC called "dragger" which should be dragged (attached to mouse) while mouse is over the sampleMC.
Is there a way to have a conditional statement in the navMC to say "if the mouse is over me, and myDragScale isn't currently being dragged, make it drag"?
I know how to initially set a MC to drag: startDrag("myDragScale", true); but I don't know how to go about "wording" the conditional statement.
Any ideas?
MTIA
|