Jump to content
Search Community

LiquidStage - Stack overflow

almogdesign test
Moderator Tag

Recommended Posts

Hi I'm getting a Stack overflow with LiquidStage it happens when I try to resize the browser

Here is the error does anyone have any ideas what might be causing this?

 

Error: Error #1023: Stack overflow occurred.

at flash.display::DisplayObject/globalToLocal()

at com.greensock.layout::LiquidStage/updateItems()

at com.greensock.layout::LiquidStage/update()

at com.greensock.layout::LiquidStage/set retroMode()

at com.greensock.layout::LiquidStage/attach()

at Main/onLiquidStageUpdate()

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at com.greensock.layout::LiquidStage/update()

at com.greensock.layout::LiquidStage/set retroMode()

Link to comment
Share on other sites

Almog and I connected off-thread and worked this out. The problem had to do with the fact that he was attaching the same objects over and over again every time the stage resized which wasn't necessary (LiquidStage handles all that automatically). In fact, it caused an endless loop because when an object first gets attached, LiquidStage must run an update cycle which temporarily resizes the stage (when reconcile is true), causing the resize handler to get called, which was attaching things again, etc.

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