function compareX():Void
{
if (MC_Drag._x == mc2._x)
{
endDrag();
}
}
function beginDrag():Void
{
MC_Drag.startDrag(false, t, l, b, r);
clearInterval(compareInterval);
compareInterval = setInterval(this, "compareX", 10);
}
function endDrag():Void
{
clearInterval(compareInterval):
stopDrag();
}
MC_Drag.onPress = Delegate.create(this, beginDrag);
MC_Drag.onRelease = Delegate.create(this, endDrag);
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com