Jump to content
GreenSock

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

AutoFitArea scaleMode?

Recommended Posts

Hello,

 

I have loader which content I attach to AutoFitArea and everything works fine when I`m loading *regularly created swf or plain jpg files.

* swf with no extra object that go beyond original size of that swf.

 

However, there is one BIG problem if there is such a case, if my swf has certain object that is placed somewhere outside its stage.

 

Looks like AutoFitArea takes size of an object itself and then manipulate with it`s sizes to make it "Autofit".

 

However, in this case, i guess, I need to provide exact size so that AutoFitArea can calculate better of how to fit that swf.

Is there something like that, so that I can work around this problem?

 

I guess that is customBoundsTarget ? If it is, then how to use it?

Link to comment
Share on other sites

I have tried to use:

 

customBoundsTarget:_image.ad.frame_mc

along with

scaleMode:ScaleMode.STRETCH

 

but looks like strech is not working when I use customBoundsTarget.

Link to comment
Share on other sites

Sure, STRETCH should work fine with customBoundsTarget - could you post a sample FLA that demonstrates it NOT working? No need to post your production files - just a super simple FLA that I can publish on my end would be great. The simpler the better.

Link to comment
Share on other sites

It is working,

Sorry, it was problem inside other logic used for the rest of the project.

 

Thanks anyway! :)

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