Jump to content
Search Community

Liquid Area 1118 error

kiogo test
Moderator Tag

Recommended Posts

Hello,

 

I am having problems with liquid area when specifying a scale mode, I get the following error:

Scene 1, Layer 'actions', Frame 1, Line 4 1118: Implicit coercion of a value with static type Object to a possibly unrelated type String.

 

Where line 4 is:

area.attach(box_mc, {scaleMode:ScaleMode.PROPORTIONAL_OUTSIDE});

 

If I remove the scale mode, I don't get an error, this below works fine:

import com.greensock.layout.*;

var ls:LiquidStage = new LiquidStage(this.stage, 550, 400, 550, 400);

var area:LiquidArea = new LiquidArea(this, 0, 0, 550, 400);

area.attach(box_mc);

 

This is basically straight from the demo at http://www.greensock.com/as/LiquidStage/

 

What am I missing?

 

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.
×
×
  • Create New...