MC limit

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? :smirk:

[AS]startDrag(target, lock, left, top, right, bottom)[/AS]
left, top, right and bottom are numbers…
hope to help

Still don’t quite get it, could you give a tiny example!? :esmirk:

look it up in flash help, it will explain it a little more

[AS]startDrag(this,true,0,0,100,100)[/AS]
code above will drag mc within 100x100 square wtih registration point locked to mouse

That’s it! THX dude! :pope: