1675 posts Envato Elite Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Europe
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
+1 more
Tean says

Does anybody know a way to make flash player fullscreen if vimeo player is opened?

Maybe I am missing something…

For some reason, if vimeo is opened you cant make flash player go fullscreen, its blocked somehow from the vimeo application.

And if your application is already in fullscreen, and you open vimeo player and exit fullscreen while vimeo is opened, it throws this error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at com.vimeo.loopy.controllers::ContextMenuController/playerFullscreenHandler()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at com.vimeo.loopy::Loopy/fullScreenHandler()

which is coming from their application, and I am not sure if this error is visible to all or just with debug player…

I have seen this error before, someone was mentioning it on vimeo forums long time ago, and it still hasnt been fixed.

And this is not the only bug vimeo ocasionally likes to throw…

Now, all this size issue may not sound like a big deal to someone who just wants to put vimeo player in his application as is and leave it that way, but I have coded my videos to have 3 different aspect ratios available (original, fit inside, fit outside) in normal and fullscreen mode.

And now I come to vimeo and I cant do anything..

And not only that, but I have to add a bunch of uselless code surrounding vimeo to throw everything away when its vimeo turn to play…

I wouldnt bother with vimeo in the first place but it appears many customers want vimeo these days.

Actually it does want to go to fullscreen if its published for flash player 9, and I wouldnt have a problem with that, but I run into an issue with my application in which when I switch to fullscreen, I reparent video player to stage, to place it above my application and to recalculate all the math and make video fullscreen, but for some reason when vimeo gets reparented, it freaks out, resets itself to beginning of the video, start buffering again, and shows that vimeo preloader (3 spinning leaves) which doesnt go away.

And there is no any kind of added / removed code in vimeo wrapper class which could reset the player, so this obviously comes from vimeo internally.

Now, this reparenting has been fixed and works fine if vimeo is published for flash player 10, and thats why I have moved to version 10, but in version 10 it doesnt want to go fullscreen.

8119 posts Community Moderator
  • Attended a Community Meetup
  • Community Moderator
  • Has been a member for 6-7 years
  • United Kingdom
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
  • Contributed a Blog Post
  • Beta Tester
  • Bought between 50 and 99 items
+4 more
MSFX Volunteer moderator says

working with other peoples compiled swfs with no source is such fun :D

have you tried asking their support to see if they’re putting limitations on it? They could be listening for the fullscreen event and then doing whatever they want to prevent you scaling their swf or whatever it is your trying to do… if thats the case though you wont get much joy :(

I like Vimeo, not worked with the player much though…

3058 posts
  • Community Superstar
  • Has been a member for 6-7 years
  • Won a Competition
  • Sold between 50 000 and 100 000 dollars
  • Bought between 10 and 49 items
  • Referred between 50 and 99 users
  • Exclusive Author
+1 more
wickedpixel says
Vimeo page about Moogaloop:
Flash Embedding

You can embed Moogaloop into other Flash applications, but currently there are a few limitations/obstacles:

       1. You have to use AS3
       2. You can only embed one Vimeo player at a time
       3. Fullscreen is disabled
       4. You have to register your application and pass the Consumer Key when loading the player

3249 posts Nice Guy
  • Forum Superstar
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 6-7 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Won a Competition
  • Bought between 100 and 499 items
  • Exclusive Author
+6 more
RubenBristian says

You can’t make the vimeo api player fuillscreen, but you can resize the player to fit the screen..

1675 posts Envato Elite Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Europe
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
+1 more
Tean says

I know fullscreen is disabled and vimeo api call to change fullscreen doesent work.

I was talking simply about changing flash displayState to fullscreen.

As far as I see it, if vimeo internally detects change of displayState to fullscreen, it just throws displayState back to normal and thats why you cant enter fullscreen while vimeo player is opened.

However it appears I have found a solution.

I have added this inside my application:

stage.addEventListener(FullScreenEvent.FULL_SCREEN, handleFullScreen);
function handleFullScreen(e:FullScreenEvent):void{

            e.stopPropagation();
            e.stopImmediatePropagation();
            e.preventDefault();

        }

to prevent further bubling down the line and it appears its working. :P

8119 posts Community Moderator
  • Attended a Community Meetup
  • Community Moderator
  • Has been a member for 6-7 years
  • United Kingdom
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
  • Contributed a Blog Post
  • Beta Tester
  • Bought between 50 and 99 items
+4 more
MSFX Volunteer moderator says

ooo, nice workround! :)

1573 posts Building the Web.
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Exclusive Author
  • Author had a File in an Envato Bundle
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Has been a member for 4-5 years
+2 more
ZoomIt says

Sorry to invade your thread, Tean. And also congrats on the silver paw, wow, well deserved.

Just started playing with moogaloop API and it seems very buggy. I am getting this error when I apply the destroy function inside the moogaloop swf.


TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at com.vimeo.loopy.events::KeyboardEventManager/disable()
    at com.vimeo.loopy::Loopy/removedFromStageHandler()
    at flash.display::DisplayObjectContainer/removeChild()
    at zoom::VideoPlayer/completeDestroy()
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at caurina.transitions::Tweener$/updateTweenByIndex()
    at caurina.transitions::Tweener$/updateTweens()
    at caurina.transitions::Tweener$/onEnterFrame()

The error appears when the handleDestroy function triggers ( on REMOVED _FROM_STAGE ) , more specifically on moogaloop.destroy()
public function handleDestroy(e:Event=null):void {
            stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
            moogaloop.destroy();
        }
3249 posts Nice Guy
  • Forum Superstar
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 6-7 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Won a Competition
  • Bought between 100 and 499 items
  • Exclusive Author
+6 more
RubenBristian says

I know fullscreen is disabled and vimeo api call to change fullscreen doesent work.

I was talking simply about changing flash displayState to fullscreen.

As far as I see it, if vimeo internally detects change of displayState to fullscreen, it just throws displayState back to normal and thats why you cant enter fullscreen while vimeo player is opened.

However it appears I have found a solution.

I have added this inside my application:

stage.addEventListener(FullScreenEvent.FULL_SCREEN, handleFullScreen);
function handleFullScreen(e:FullScreenEvent):void{

            e.stopPropagation();
            e.stopImmediatePropagation();
            e.preventDefault();

        }
to prevent further bubling down the line and it appears its working. :P
Something is wrong in your particular case then, because i have vimeo videos in my last template and fullscreen works with no issues. And i didn’t made anything special..
1675 posts Envato Elite Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Europe
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
+1 more
Tean says


I know fullscreen is disabled and vimeo api call to change fullscreen doesent work.

I was talking simply about changing flash displayState to fullscreen.

As far as I see it, if vimeo internally detects change of displayState to fullscreen, it just throws displayState back to normal and thats why you cant enter fullscreen while vimeo player is opened.

However it appears I have found a solution.

I have added this inside my application:

stage.addEventListener(FullScreenEvent.FULL_SCREEN, handleFullScreen);
function handleFullScreen(e:FullScreenEvent):void{

            e.stopPropagation();
            e.stopImmediatePropagation();
            e.preventDefault();

        }
to prevent further bubling down the line and it appears its working. :P
Something is wrong in your particular case then, because i have vimeo videos in my last template and fullscreen works with no issues. And i didn’t made anything special..

http://s3.envato.com/files/1336939/index.html#/media/vimeo

Then click fullscreen button in the top left.

It doesnt wont to go to fullscreen for me when vimeo is opened.

1675 posts Envato Elite Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Europe
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
+1 more
Tean says

Sorry to invade your thread, Tean. And also congrats on the silver paw, wow, well deserved.

Just started playing with moogaloop API and it seems very buggy. I am getting this error when I apply the destroy function inside the moogaloop swf.


TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at com.vimeo.loopy.events::KeyboardEventManager/disable()
    at com.vimeo.loopy::Loopy/removedFromStageHandler()
    at flash.display::DisplayObjectContainer/removeChild()
    at zoom::VideoPlayer/completeDestroy()
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at caurina.transitions::Tweener$/updateTweenByIndex()
    at caurina.transitions::Tweener$/updateTweens()
    at caurina.transitions::Tweener$/onEnterFrame()

The error appears when the handleDestroy function triggers ( on REMOVED _FROM_STAGE ) , more specifically on moogaloop.destroy()
public function handleDestroy(e:Event=null):void {
            stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
            moogaloop.destroy();
        }

Where did you got moogaloop.destroy(); ?

I am using this:
if(player){
  if(player.hasOwnProperty("api_unload"))  player.api_unload();
  player = null;
}
by
by
by
by
by
by