bengarney / pushbuttonengine

Automatically exported from code.google.com/p/pushbuttonengine
0 stars 0 forks source link

Cast problem in SpriteRenderer #152

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
PushButton Engine - r958 (ZaaBot build #215)

SpriteRendrer.imageLoadFailed(res:ImageResource) expects an ImageResource 
but with : 

ResourceManager.onlyLoadEmbeddedResources = true

It receives a Resource instead.

Stack :
Main Thread (Suspended: TypeError: Error #1034: Type Coercion failed: 
cannot convert com.pblabs.engine.resource::Resource@2962a61 to 
com.pblabs.engine.resource.ImageResource.)  
    Function/http://adobe.com/AS3/2006/builtin::apply [no source]   
    com.pblabs.engine.core::ProcessManager/processScheduledObjects  
    com.pblabs.engine.core::ProcessManager/advance  
    com.pblabs.engine.core::ProcessManager/onFrame

Original issue reported on code.google.com by grill...@gmail.com on 19 Mar 2010 at 3:30

GoogleCodeExporter commented 9 years ago
Attached simple case

Original comment by grill...@gmail.com on 19 Mar 2010 at 4:05

Attachments:

GoogleCodeExporter commented 9 years ago
The problem was not in SpriteRenderer but in ResourceManager.
I've attached a patch.

Original comment by florent....@gmail.com on 19 May 2010 at 2:05

Attachments: