Jump to content
Search Community

LiquidStage Problems

gjacob test
Moderator Tag

Recommended Posts

Hello,

 

All im trying to do is pin an object to the bottom left of the stage. This works fine when I view the swf in the flash player or when i compile with the Flash IDE and view it in a browser window. But when I comile it with the Flex SDK and view it in a browser window it no longer works. The stage.stageWidth and height trace out properly though.

 

Has anyone else had this problem?

 

 

Thanks

 

 

Greg

 

Heres the code:

 

____

 

import flash.display.MovieClip;

import com.greensock.layout.LiquidStage;

 

var controls:MovieClip = new Controls();

addChild(controls);

 

controls.x = 10;

controls.y = stage.stageHeight - controls.height - 10;

 

var ls:LiquidStage = new LiquidStage(this.stage, 550, 400, 550, 400);

ls.attach(controls, ls.BOTTOM_LEFT);

 

____

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