Closed JanneSt closed 10 years ago
I think the call to loadImage is correct. (maybe some browsers = old IE don't like commas before closeing brackets)
"uncaught exception: adding to a container an element with parent." seems to indicate that you are trying to add an Actor as child of an ActorContainer without a call to removeChild() in last Actor parent.
Hey there,
I'm just getting in touch with CAAT and am pretty amazed by it. It might be a stupid question, but I'm just stuck on it for a couple of hours:
Is it possible to use the imagePreloader to load more than one picture? It works fine with:
new CAAT.Module.Preloader.ImagePreloader().loadImages( [{ id:'logo', url:'resources/b.png', },],
but as soon as I try to add more like this: new CAAT.Module.Preloader.ImagePreloader().loadImages( [{ id:'logo', url:'resources/b.png', }, { id:'logo2', url:'resources/a.png', },],
I get an error:"uncaught exception: adding to a container an element with parent."
Thanks in advance. Any help appriciated
Jan