Permalink
Browse files

Fix for latest VimeoPlayer updates.

  • Loading branch information...
ryanhefner committed Dec 9, 2011
1 parent de7e282 commit 04462f2d1544717c18e3550e9893b6f5c67058a0
Binary file not shown.
Binary file not shown.
@@ -191,7 +191,7 @@ package com.vimeo.api
moogaloop.disableMouseMove();
if (stage)
{
- stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
+ stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove, false, 0, true);
}
dispatchEvent(new Event(Event.COMPLETE));
@@ -203,15 +203,18 @@ package com.vimeo.api
*/
private function mouseMove(e:MouseEvent) : void
{
- var pos : Point = this.parent.localToGlobal(new Point(this.x, this.y));
- if (e.stageX >= pos.x && e.stageX <= pos.x + this.player_width &&
- e.stageY >= pos.y && e.stageY <= pos.y + this.player_height)
+ if (moogaloop && moogaloop.player_loaded)
{
- moogaloop.mouseMove(e);
- }
- else
- {
- moogaloop.mouseOut();
+ var pos : Point = this.parent.localToGlobal(new Point(this.x, this.y));
+ if (e.stageX >= pos.x && e.stageX <= pos.x + this.player_width &&
+ e.stageY >= pos.y && e.stageY <= pos.y + this.player_height)
+ {
+ moogaloop.mouseMove(e);
+ }
+ else
+ {
+ moogaloop.mouseOut();
+ }
}
}
@@ -285,7 +288,7 @@ package com.vimeo.api
private function removedFromStageHandler(event:Event) : void
{
stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
- this.removeEventListener(Event.REMOVED_FROM_STAGE, removedFromStageHandler, false, 0, true);
+ this.removeEventListener(Event.REMOVED_FROM_STAGE, removedFromStageHandler);
}
/**

1 comment on commit 04462f2

@bhumika

This comment has been minimized.

Show comment Hide comment
@bhumika

bhumika Feb 16, 2013

Hello

I have no idea how to integrate VimeoPlayer.as and ExampleProject.as file with the index.html page.
Please help me.

Hello

I have no idea how to integrate VimeoPlayer.as and ExampleProject.as file with the index.html page.
Please help me.

Please sign in to comment.