Jump to content
GreenSock

edfirefly

Changing MinHeight, MaxHeight of AutoFitArea class

Moderator Tag

Recommended Posts

First off, thanks for the AutoFitArea class, it's been great for scaling images full screen for my projects. I was wondering once you assign a DisplayObject to an AutoFitArea, is there a way to change the minHeight, maxHeight parameters? So after attaching the DO, can you change the minHeight parameters?

 

area.attach(img_mc, ScaleMode.PROPORTIONAL_INSIDE, AlignMode.CENTER, AlignMode.CENTER, 410, 410, 400, 534);

( I want to change the minHeight parameter...)

 

Any help would be be appreciated. Thank you,

 

Eddie

Link to comment
Share on other sites

Sure, just release() the object and attach() it again with whatever settings you want. In fact, you don't even have to release() it first because AutoFitArea will automatically do that for you :)

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