Jump to content
Search Community

Exposing width and height on Video Loader?

Nickbee test
Moderator Tag

Recommended Posts

I’m working on an externally configurable video player and based on LoaderMax’s VideoLoader.

 

I’m currently working on the full screen feature of my player and noticed I can not set the width and height of an existing VideoLoader. I can scale a sprite that the video loader is sitting in but that does not take advantage of all the scaleMode options of VideoLoader.

 

Is there another way to accomplish this?

Here’s what I’d like to do:

 

		private function onChangeToFullScreen():void
	{
//_videoPlayer is a VideoLoader
		_videoPlayer.width = stage.stageWidth;
		_videoPlayer.height = stage.stageHeight;
	}

 

THANKS!!!!!

Link to comment
Share on other sites

  • 2 years later...

this doesn't work for me; i get errors thrown saying that fitHeight and fitWidth aren't properities of a ContentDisplay object.

 

any help would be appreciated.

 

exact errors thrown:

 

ReferenceError: Error #1056: Cannot create property fitWidth on com.greensock.loading.display.ContentDisplay.

 

ReferenceError: Error #1056: Cannot create property fitHeight on com.greensock.loading.display.ContentDisplay.
 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...