Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
brantseibert

LiquidStage + LiquidArea ?

Recommended Posts

Hi Jack,

 

The generic question I have is how to position objects consistently (relative to each other) on the stage when one object fills the stage and the other object is tiny?

 

The specific question is: I have a background map of the world and will be locating points on the map with dots. How do I make the map and points center on the same location so that, on resize, the points stay at the same location on the map?

 

var ls:LiquidStage = new LiquidStage(this.stage, 1000, 580, 1000, 580);

ls.update();

ls.attach(point1, ls.CENTER);

var la1:LiquidArea = new LiquidArea(this, 0, 0, 1000, 580);

la1.attach(map1, ScaleMode.PROPORTIONAL_INSIDE);

 

The problem I have with this code is that the point does not stay at the same location on the map when the browser window is resized (or when the browser window simply has different dimensions than the original).

 

Thank you.

Link to comment
Share on other sites

Answering my own question ...

 

One obvious solution which I will try is to place the points (dots on a map) as MCs within the map MC. I do not want those points to scale with the map MC, but may have to live with that.

 

If you see a better solution, please let me know.

 

Thanks.

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