-
I've been having a rough time getting an object on my stage to drag. I'm not sure the proper way to do this, can anyone enlighten me?
-
make sure the object is a movie clip then right click on it down to actions and enter this sript:
onClipEvent (mouseDown) {
startDrag ("", true);
}
onClipEvent (mouseUp) {
stopDrag ();
}
Hope that helps
-
Senior Member
You might need to make sure the mouse was pressed over the movie clip in the mouseDown event
onClipEvent(mouseDown) {
if (this.hitTest(_root._xmouse,_root._ymouse,true)) {
startDrag("",true);
}
}
BTW toony, the little red ninja stuff is looking good
I haven't forgotten spacecadets though, i've been working on it today I just changed my server to apache
-
Originally posted by catbert303
BTW toony, the little red ninja stuff is looking good
I haven't forgotten spacecadets though, i've been working on it today I just changed my server to apache
Me either the note on my notice board reads 'MUST GET ON AND DO CHARACTERS FOR CATBERT (well your real name is used)'
So thanks for another reminder..lol
Take care
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|