davido
04-07-2003, 04:31 AM
I'm a 'newbie'. Thanks for this fantastic site, all of you.
I'm trying to do a simple drag, and I've set up my code as Jesse has suggested in her tutorial (at least it seems to look the same), but something is still amiss. I found the same question in these forums by using the search, but the advice seems to be the same.... ?
I set this actionscript for an invisible button that I placed in a movie file. Now I can drag the movie file, but I can drag it all over the screen - not constrained to the coordinates (30, 65, 670, 255). I know it must be a simple problem. Thanks for your help.
-davido
on (press) {
startDrag (this, true, 30, 65, 670, 255);
}
on (release) {
stopDrag ();
}
I'm trying to do a simple drag, and I've set up my code as Jesse has suggested in her tutorial (at least it seems to look the same), but something is still amiss. I found the same question in these forums by using the search, but the advice seems to be the same.... ?
I set this actionscript for an invisible button that I placed in a movie file. Now I can drag the movie file, but I can drag it all over the screen - not constrained to the coordinates (30, 65, 670, 255). I know it must be a simple problem. Thanks for your help.
-davido
on (press) {
startDrag (this, true, 30, 65, 670, 255);
}
on (release) {
stopDrag ();
}