
06.11.2004, 15:57
|
|
Регистрация: Nov 2004
Сообщений: 4
|
вот исходник:
onClipEvent (load) {
speed = 5;
movie_width = 300;
movie_height = 300;
}
onClipEvent (enterFrame) {
target_width = /:width;
target_height = /:height;
target_x = (movie_width-target_width)/2;
target_y = (movie_height-target_height)/2;
distance_width = target_width-_root.rw._width;
distance_height = target_height-_root.rw._height;
distance_x = target_x-_root.rw._x;
distance_y = target_y-_root.rw_y;
_root.rw._width += distance_width/speed;
_root.rw._height += distance_height/speed;
_root.rw._x += distance_x/speed;
_root.rw._y += distance_y/speed;
}
|