kbriggs
02-26-2008, 01:46 PM
OL 4.0.8
Are there any known issues with LzView.setAlign()? I've got a game application running in a window component. I noticed that the longer the game runs, the longer it takes for that window to close. I tracked it down to one line of code in the game loop:
this.TName[i].setAlign("center");
TName is an array(10) of LzText whose parents are LzView's with a 90x35 pixel PNG resource. Anyway, if I comment out that line or change the value to "left", the window will close immediately no matter how long the game runs. With it in, it takes several seconds and up to getting a warning from the flash player about a slow running script, depending on how long I let it run, where that line would have been called hundreds of times.
I tried creating a small app to demonstrate the problem but no luck so far duplicating the slow closing window.
Are there any known issues with LzView.setAlign()? I've got a game application running in a window component. I noticed that the longer the game runs, the longer it takes for that window to close. I tracked it down to one line of code in the game loop:
this.TName[i].setAlign("center");
TName is an array(10) of LzText whose parents are LzView's with a 90x35 pixel PNG resource. Anyway, if I comment out that line or change the value to "left", the window will close immediately no matter how long the game runs. With it in, it takes several seconds and up to getting a warning from the flash player about a slow running script, depending on how long I let it run, where that line would have been called hundreds of times.
I tried creating a small app to demonstrate the problem but no luck so far duplicating the slow closing window.