Jump to content
Search Community

browser resolution issue

SyntaxMind test
Moderator Tag

Recommended Posts

Ok last issue I am having in my testing phase of my portfolio. I am using liquidstage on a number of different swf that are working fine except for the intro page swf which, if browser is higher than 1024x768 the mc is centered fine, but when close to or below 1024x768, it doesn't line up center and the top of the mc seems to be bleeding above the browser window. If you have a small resolution screen, you can see what I am looking at - http://ahardenjr.com/. I tried lowering the new LiquidStage(this.stage,1024,768,1024,768) to new LiquidStage(this.stage,1024,768, 800, 600), but I still get the problem. Not sure if it is a liquidstage issue or a swfobject issue because the main swf lines up fine. Here is my liquidstage code if anyone has any solutions:

 

import com.greensock.*;

import com.greensock.layout.*;

 

if (this.stage == null)

 

{

 

this.addEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);

 

}

 

else

 

{

 

addedToStageHandler(null);

 

}

 

 

 

var ls:LiquidStage;//declaring it outside the function so it's available wherever you want - just make sure you don't run code that relies on it until it is properly defined in the addedToStageHandler().

 

 

 

function addedToStageHandler(event:Event=null):void

 

{

 

this.removeEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);

 

 

 

var ls:LiquidStage = new LiquidStage(this.stage,1024,768,1500,800);

 

ls.attach(intro, ls.CENTER);

ls.attach(skip_mc, ls.CENTER);

 

}

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