in order to do this, you would need to use distance formula. in case you don’t know what it is, here it is:

function dist(x, y, x1, y1) {

x2 = Math.abs(x-x1);

y2 = Math.abs(y-y1);

return Math.sqrt(x2*x2+y2*y2);

};

…in actionscript. this lil function returns the distance between one object (its x and y) and any point (x1, y1) or object. the next thing you would have to do is test the distance between the point you want it to snap, and the object itself:

if (dist(_x, _y, 275, 200) <= 50) {

_x = 275;

_Y = 200;

}

now what this little piece of code would do is snap to the center of the screen when it is 50 pixels away from the center (assuming the size of your movie is the default, 550x400). do you understand? if not, email me ([email protected]) and i’ll try and pull off a sample fla for ya.