Skip to main content
Inspiring
September 17, 2009
Answered

Question about Fluid Layouts

  • September 17, 2009
  • 1 reply
  • 701 views

Hello there. I want to make a fluid layout for the website I'm working on right now. I know the basic concepts of how to center an object and keep it there, or how to stick a shape to the top or bottom... etc. But if there's a movieclip that I would like it to conserve its position proportionally as the visitor resizes the stage, how can I do that?

This topic has been closed for replies.
Correct answer AttaBoy2

540/800 is .675 do make it

y = stage.stageHeight * .675;

1 reply

Inspiring
September 17, 2009

here's an example of what I mean... let's say the stage's height is 800 pixel, the movie clip's "y" property is at 540... so the mc's y relative to the stage's height is 540/800... I'd like to conserve this proportion when the stage is resized... this way the mc should stay at its proper position when the stage is resized, right?

September 18, 2009

Hi,

Try this way..

If u using a movieclip then the x and y must be depend up on the stage

for ex:

mc.x = Stage.stageWidth - 30;

mc.y = Stage.stageHeight - 30;

Saransoft