jerry
March 22, 2003, 1:07pm
1
Hey there!
I’m having a dragable MC inside my main movie, like this:
on(press){
startdrag(this);
}
on(release){
stopdrag();
}
But I want to set a limit for the drag, let’s say my main movie is 300X300 pixels, and I want my MC to be dragable only inside the 300X300 pixels, how do you do this?
system
March 22, 2003, 1:58pm
2
[AS]startDrag(target, lock, left, top, right, bottom)[/AS]
left, top, right and bottom are numbers…
hope to help
system
March 22, 2003, 2:09pm
3
Still don’t quite get it, could you give a tiny example!? :esmirk:
system
March 22, 2003, 2:10pm
4
look it up in flash help, it will explain it a little more
system
March 22, 2003, 2:22pm
5
[AS]startDrag(this,true,0,0,100,100)[/AS]
code above will drag mc within 100x100 square wtih registration point locked to mouse
system
March 22, 2003, 7:23pm
6
That’s it! THX dude! :pope: