Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   ActionScript (http://www.flasher.ru/forum/forumdisplay.php?f=5)
-   -   Need Help! (http://www.flasher.ru/forum/showthread.php?t=42871)

Nosorozhka 12.02.2003 03:24

Need Help!
 
Здравствуйте! У меня такая проблема - я постваил scrollpane и все работает(тьфу тьфу), я поставил только вертикальный скролл, так вот мне надо сделать так, чтоб скролл работал не при нажатии мышки на стрелки а при наведении мыши на стрелки. Я понимаю что, тут наверно надо с action script'м поработать, но ЧТо и ГДЕ писать я не знаю. ПОДСКАЖИТЕ ПОЖАЛУЙСТА!!!!!!!!!!!!!!!!!

Спасибо заранее!!!

Искренне ваш:

Nosorozhka

trigger 13.02.2003 01:21

Кнопке нужно присвоить скрипт:

on (press, rollOver ) {
}
(внутри скобок вставь событие, совершающее скроллинг)

Скорее всего тебе надо только отредактировать "on (***)"



Nosorozhka 13.02.2003 02:39

Spasibo bolshoe rebjata!!!!Vi super!Vse poluchilos. Teper est eshe odin vopros, on ne takoi srochnii, prosto esli znaete, i vam ne trudno to napishite plz!Vot znachit: a kak sdelat tak shtob pri navedenii na strelku tam pojavljalsja simvol ruki?To est kak pomenjat kursor myshi na simvol ruki pri navedenii na strelku, budu pitatsja sam, no esli vy ranshe menja dogodaetes - budu priznatelen!Eshe raz OGROMNOE SPASIBO!Vy dazhe ne predstovljate kak pomogli!SPASIBO!

Vrefr 13.02.2003 02:58

у тебя в хелпе к Флешке написано:
To create a custom cursor:

1
Create a movie clip to use as a custom cursor.

2
Select the movie clip instance on the Stage.

3
Choose Window > Actions to open the Actions panel if it is not already visible.

4
To hide the standard cursor, in the Actions toolbox, click the Objects category, click the Movie category, click Mouse, click Methods, and double-click hide.

The code should look like this:

onClipEvent(load){
Mouse.hide();
}

5
To apply the new cursor, in the Actions toolbox, click the Actions category, then click Movie Clip Control and double-click startDrag.

6
To limit the mouse movement, select the Expression box and type this for the target. Then select Lock Mouse to Center and Constrain to Rectangle, and enter values. For example, you might enter the following:

L: 0

T: 46

R: 400

B: 280

Your code should look like this:

onClipEvent (load) {
Mouse.hide();
startDrag(this, true, 0, 46, 400, 280);
}

7
Choose Control > Test Movie to test your custom cursor.



Buttons still function when you use a custom cursor. It's a good idea to put the custom cursor on the top layer of the Timeline so that it moves in front of buttons and other objects as you move the mouse in the movie.

For more information about the methods of the Mouse (object), see Mouse (object) in the ActionScript Dictionary.

C:\Program Files\Macromedia\Flash MX\Help\Flash\ContextHelp_tut3.htm
усе поянтно?? :)) Или перевсти :)?


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

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