Jump to content

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

Liquid Area 1118 error

Recommended Posts



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);



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


What am I missing?



Link to comment
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 comment
Share on other sites

Sorry, that was the problem. 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.