Pavel Severýn
Pavel Severýn

Reputation: 255

the same ratio width/height of application

How can I make an application with the same ratio width/height? I have an application with width = 800 height = 600. Its width = 1.33*height and when I change the width to 1024 I want the height to change to 768 automatically.

Upvotes: 0

Views: 170

Answers (1)

brubs
brubs

Reputation: 1357

Do you mean your swf change it´s size? you would need swffit to do it.

if you want to change your content on your movie, you have to calculate the ratio, more or less like this:

ratio = width/height; newHeight = newWidth/ratio; and vice-versa for the width…

Upvotes: 1

Related Questions