Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   ActionScript (http://www.flasher.ru/forum/forumdisplay.php?f=5)
-   -   А можно ли пользоваться скроллом? (http://www.flasher.ru/forum/showthread.php?t=53639)

Raven B. 13.01.2004 17:31

А можно ли пользоваться скроллом?
 
Мастера, а возможно ли использовать скролл мыши в мувиках?
Если да то буду очень благада за любой пример.

TTS 13.01.2004 17:49

благада надо быть поиску. Потому что он - РУЛИТ. Однозначно.

Jlekc 13.01.2004 18:05

зади на flashcoders-wiki там поищи ASNative. Найдеш ответы не тока на этот вопрос.

WD` 13.01.2004 21:42

Mouse.onMouseWheel
Availability
Flash Player 7 (Windows only).

Usage
someListener.onMouseWheel = function ( [ delta , scrollTarget ]) {
// your statements here
}

Parameters
delta An optional number indicating how many lines should be scrolled for each notch the user rolls the mouse wheel. A positive delta value indicates an upward scroll; a negative value indicates a downward scroll. Typical values are from 1 to 3, whereas faster scrolling may produce larger values.

If you don't want to specify a value for delta but want to specify a value for scrollTarget, pass null for delta.

scrollTarget The topmost movie clip instance under the mouse when the mouse wheel was scrolled.

Returns
Nothing.

Description
Listener; notified when the user rolls the mouse wheel. To use the onMouseWheel listener, you must create a listener object. You can then define a function for onMouseWheel and use addListener() to register the listener with the Mouse object.

Note: Mouse wheel event listeners are available only on Windows versions of Flash Player.

Example
The following example shows how to create a listener object that responds to mouse wheel events. In this example, the x coordinate of a movie clip object named clip_mc (not shown) is changed each time the user rolls the mouse wheel.

mouseListener = new Object();
mouseListener.onMouseWheel = function(delta) {
clip_mc._x += delta;
}
Mouse.addListener(mouseListener);

Jlekc 14.01.2004 11:36

to WD'
Цитата:

Mouse.onMouseWheel
Availability
Flash Player 7 (Windows only)....
в разделе AS1 хелпак из AS2, и что работает ? :)

WD` 14.01.2004 14:07

2 Jlekc:
а ты попробуй..

Jlekc 14.01.2004 19:32

а ты скомпилитуй под 5-ой

WD` 14.01.2004 19:37

Jlekc:
а, может, под 3?

Jlekc 14.01.2004 19:59

ага, ты сразу зацинил :D


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

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