Просмотр полной версии : onMouseWheel
Вот, например:
var mouseListener = new Object();
mouseListener.onMouseWheel = function() {
trace("wheeling");
};
Mouse.addListener(mouseListener);
Но функция вызывается только после наатия клавиши мыши. Если же сначала начать крутить колеском, то вызова функции не происходит. Почему?
Потому что флеш не является объектом фокуса. А при клике фокус переходит на флеш.
var mouseListener = new Object();
trace("Hey you there, whatcha' луking at?! хarry уp and activate the фreakинг movie!");
mouseListener.onMouseWheel = function() {
trace("weee-heeeee-he-he, we is wheeeeelling! Oh my gosh, it's soooo wheeeelly o_O");
};
Mouse.addListener(mouseListener);
var mouseListener = new Object();
trace("Hey you there, whatcha' луking at?! хarry уp and activate the фreakинг movie!");
mouseListener.onMouseWheel = function() {
trace("weee-heeeee-he-he, we is wheeeeelling! Oh my gosh, it's soooo wheeeelly o_O");
};
Mouse.addListener(mouseListener);
Самоё рациональное решение данной проблемы )))
Работает на vBulletin ® версия 3.7.3. Copyright ©2000-2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Copyright © 1999-2008 Flasher.ru. All rights reserved.