Jun. 02, 2009panel
Is there any way to listen for stage events like MOUSE_LEAVE, MOUSE_MOVE, ect?
I have tried
public function initializePlugin(view:AbstractView):void
{
stage.addEventListener(Event.MOUSE_LEAVE, onMouseLeave_stage);
//or
view.skin.stage.addEventListener(Event.MOUSE_LEAVE, onMouseLeave_stage);
}
but events seems not to fire (stage is not null) ;/
Any ideas?
Aug. 04, 2009Zachary Ozer
@panel:
Your plugin will be placed on top of everything else, so you should be able to simply add a transparent sprite / movieclip and listen for events there.
Aug. 17, 2009Mr Smith
I am having a similar problem.
I cannot track mouse up events when the cursor is outside the stage.
Anyone have any ideas?????
Aug. 19, 2009Zachary Ozer
@Mr Smith:
Flash can't track mouse events once you've left the stage.
Oct. 29, 2009Pascal
hello
with mootools
window.addEvent('domready', function(){
$('player2').addEvent('click', function(){
alert('clicked!');
});
$('player2').addEvent('mouseover', function(){
alert('clicked!');
});
$('player2').addEvent('mouseleave', function(){
alert('clicked!');
});
});
Here are some helpful links to learn more about the JW Player™:
Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!
If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.