Skip to content
This repository
Browse code

Fix for latest VimeoPlayer updates.

commit 04462f2d1544717c18e3550e9893b6f5c67058a0 1 parent de7e282
Ryan Hefner ryanhefner authored
BIN  actionscript/deploy/flash_api_example.swf
Binary file not shown
BIN  actionscript/flash/flash_api_example.fla
Binary file not shown
23 actionscript/src/com/vimeo/api/VimeoPlayer.as
@@ -191,7 +191,7 @@ package com.vimeo.api
191 191 moogaloop.disableMouseMove();
192 192 if (stage)
193 193 {
194   - stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
  194 + stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove, false, 0, true);
195 195 }
196 196
197 197 dispatchEvent(new Event(Event.COMPLETE));
@@ -203,15 +203,18 @@ package com.vimeo.api
203 203 */
204 204 private function mouseMove(e:MouseEvent) : void
205 205 {
206   - var pos : Point = this.parent.localToGlobal(new Point(this.x, this.y));
207   - if (e.stageX >= pos.x && e.stageX <= pos.x + this.player_width &&
208   - e.stageY >= pos.y && e.stageY <= pos.y + this.player_height)
  206 + if (moogaloop && moogaloop.player_loaded)
209 207 {
210   - moogaloop.mouseMove(e);
211   - }
212   - else
213   - {
214   - moogaloop.mouseOut();
  208 + var pos : Point = this.parent.localToGlobal(new Point(this.x, this.y));
  209 + if (e.stageX >= pos.x && e.stageX <= pos.x + this.player_width &&
  210 + e.stageY >= pos.y && e.stageY <= pos.y + this.player_height)
  211 + {
  212 + moogaloop.mouseMove(e);
  213 + }
  214 + else
  215 + {
  216 + moogaloop.mouseOut();
  217 + }
215 218 }
216 219 }
217 220
@@ -285,7 +288,7 @@ package com.vimeo.api
285 288 private function removedFromStageHandler(event:Event) : void
286 289 {
287 290 stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
288   - this.removeEventListener(Event.REMOVED_FROM_STAGE, removedFromStageHandler, false, 0, true);
  291 + this.removeEventListener(Event.REMOVED_FROM_STAGE, removedFromStageHandler);
289 292 }
290 293
291 294 /**

1 comment on commit 04462f2

Phonegap developer ahmedabad(bhumika)

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.
Something went wrong with that request. Please try again.