Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
kiogo

Liquid Area 1118 error

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 post
Share on other sites

It sounds like you must be using a very old version of LiquidStage/LiquidArea. Please update and that should resolve the error (you're using the old long-form syntax which has been condensed into an object literal for the various optional parameters). Log into your GreenSock account at https://www.greensock.com/account/

Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×