Scrollrect, drawing api, textfield bug

Posted on Wednesday, July 14th, 2010 at 5:17 pm by Hans Wichman

So I’ve been developing these actionscript 2 panorama’s, but had not tested them in player 8. *wrong*.
Apparently some version of the player 8 crash as soon as debug information is printed.

Some further research indicated that it is caused by a bug, through a combination of a dynamically created textfield on top of a clip with a scrollrect set, on which I draw using the drawing API.

The solution is in the CubeView class, instead of setting the scrollrect on the _canvas, set it on the _canvas._parent. I’m not going to update all downloads, but now you know how to fix it :) .

Leave a Reply