bp74 / StageXL_Samples

Sample applications showing features of the StageXL library.
BSD 2-Clause "Simplified" License
65 stars 29 forks source link

The null object does not have a method 'getTextureAtlas' #7

Closed chandra-sheker-k closed 10 years ago

chandra-sheker-k commented 10 years ago

Hi ,

Using flash pro i exported dart lib file. In this file i had included the images(In side the movieclip). When i trying to get those images from dart code, am getting this exception "The null object does not have a method 'getTextureAtlas'" i copied the images folder(_atlas_0.json and _atlas_0.png) to dart web folder. Is there any configuration required for this, and am getting lot of warnings on imported dart files.

Thanks in advance Chandu

bp74 commented 10 years ago

Hi Chandu,

It's a little bit difficult to tell what this problem is. But the error message suggests that the ResourceManager is not initialized yet (it is null). The ResourceManager from the library which is generated by the Toolkit for Dart has to initialize the ResourceManager and also adds the resources (images, sounds, ...) to it.

Hope this helps a little bit, Bernhard