kiogo Posted January 26, 2012 Share Posted January 26, 2012 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 More sharing options...
GreenSock Posted January 26, 2012 Share Posted January 26, 2012 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 More sharing options...
kiogo Posted January 31, 2012 Author Share Posted January 31, 2012 Sorry, that was the problem. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now