Heh, who'd've known? My little Flash game, Hexcelle, hit 100,000 plays today on Kongregate. I just might have to follow it up with a sequel...
29 October 2009
28 October 2009
Loaders
I wanted to make a note to myself for the next time I pull my hair out for too long hunting down this ... bug?
In short, after a Loader object has completed loading, references to its DisplayObject content as well as its LoaderInfo content are not reliable. I found that occasionally simply using the Loader class as the DisplayObject to add to the display list was inconsistent, too.
For now, I'm finding that saving references to the Complete Event's currentTarget.content is the most reliable choice for accessing the loaded content.
In short, after a Loader object has completed loading, references to its DisplayObject content as well as its LoaderInfo content are not reliable. I found that occasionally simply using the Loader class as the DisplayObject to add to the display list was inconsistent, too.
For now, I'm finding that saving references to the Complete Event's currentTarget.content is the most reliable choice for accessing the loaded content.
Subscribe to:
Posts (Atom)