Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   Общие вопросы (http://www.flasher.ru/forum/forumdisplay.php?f=10)
-   -   Drag (http://www.flasher.ru/forum/showthread.php?t=24525)

corsair_net 14.12.2001 17:05

Drag
 
У меня тут проблемка.... С оеонным Интерфейсом.... Пермещать окошки я умею ( тоесть Drag ставить) но мне необходимо чтобы они перемещались в определенной облости мувика и не могли за неё выйти.... Помогите скриптом как сделать, а точнее задать диапазон допустимого перемещения?

Egoritch 14.12.2001 17:23

RTFM!
 
корсар, ты бы открыл хелп:
Цитата:

MovieClip.startDrag

Syntax

anyMovieClip.startDrag([lock, left, right, top, bottom]);
Arguments

lock A Boolean value specifying whether the draggable movie clip is locked to the center of the mouse position (true), or locked to the point where the user first clicked on the movie clip (false). This argument is optional.

left, top, right, bottom Values relative to the coordinates of the movie clip's parent that specify a constraint rectangle for the movie clip. These arguments are optional.

Копирайты за макромедией

и от себя:

on (press){
this.startDrag(0,0,200,200);
}
квадрат драга - 0,0,200,200

corsair_net 14.12.2001 18:18

пасибки
 
Спасибо.... Я перосто до этого пробовал, но там что то глючило....


Часовой пояс GMT +4, время: 23:20.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.