Crafty1980
11-24-2006, 08:22 PM
Hi there,
Can someone tell me how I can write script to be able to click and hold down on simple little graphics in my main fla background and move them around?
It's basically lods of different shapes that you need to put together to make a larger picture.
Has it got something to do with the code below??
onClipEvent(mouseDown)
{
if(this.hitTest(_root._xmouse, _root._ymouse, false)) //if this magnet is grabbed
_parent.startDrag() //start dragging the magnet
}
onClipEvent(mouseUp)
{
_parent.stopDrag() //stop dragging the magnet
}
I don't know how or where to use it though! :(
Can someone tell me how I can write script to be able to click and hold down on simple little graphics in my main fla background and move them around?
It's basically lods of different shapes that you need to put together to make a larger picture.
Has it got something to do with the code below??
onClipEvent(mouseDown)
{
if(this.hitTest(_root._xmouse, _root._ymouse, false)) //if this magnet is grabbed
_parent.startDrag() //start dragging the magnet
}
onClipEvent(mouseUp)
{
_parent.stopDrag() //stop dragging the magnet
}
I don't know how or where to use it though! :(