Jump to content
Search Community

LiquidStage and LoaderMax Fullscreen Browser Issue

klocascio test
Moderator Tag

Recommended Posts

I am trying to use liquidStage and Loader max to load a fullscreen video as a background, proportionally outside.

 

When I load this into a browser, it doesnt resize to the browser until I resize the browser manually. Am I missing something that should initialize it to load fullscreen at first?

 

This is my initial code:

import com.greensock.loading.*;
import com.greensock.loading.display.*;
import com.greensock.*;
import com.greensock.events.LoaderEvent;
import com.greensock.layout.*;

stage.align = StageAlign.TOP_LEFT;

var video:VideoLoader = new VideoLoader("assets/video.mp4", {name:"myVideo", container:container, width:800, height:450, hAlign:'left', vAlign:'top', centerRegistration:false, scaleMode:"proportionalOutside", autoPlay:true, volume:1, requireWithRoot:this.root});

video.load();

var ls:LiquidStage = new LiquidStage(this.stage, 800, 450, 800, 450);
var area:LiquidArea = new LiquidArea(this, 0,0,800,450);

area.attach(container, ScaleMode.PROPORTIONAL_OUTSIDE);

 

Thanks.

Link to comment
Share on other sites

I can't seem to replicate the problem - I just tried your code myself and it worked perfectly.

 

Are you using the latest version of LiquidStage and LoaderMax?

 

Can you post an example set of files (as simple and streamlined as possible) that demonstrates the issue so that I can publish and see for myself? I wonder if the problem is in your HTML/Javascript embed code or something else unrelated to GreenSock code.

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...