I'll look at this asap for 3ds
> Most models in .obj format seems to be parsed properly when using
> embedded model, but some models still throws error.
do you mean here some embedded obj are failing as well?
same error?
fabrice
On Mar 24, 2011, at 4:19 PM, MADCATX wrote:
> Hello, I'm trying to load embedded model files, but without success.
> Following code produces error:
>
> [Embed(source="model.3ds", mimeType="application/octet-stream")]
> private var modelObj:Class;
>
> public function LoadModel() :void
> {
> ResourceManager.instance.parseData(new modelObj(), "model", true,
> Max3DSParser);
> }
>
> Error Thrown:
>
> Error #1034: Type Coercion failed: cannot convert
> ResourceLoadSession@1f82c151 to away3d.loading.IResource.
> Fault, ResourceManager.as:179
>
> The following code works alright:
>
> public function LoadModel() :void
> {
> ResourceManager.instance.getResource("model.3ds", true);
> }
>
> Most models in .obj format seems to be parsed properly when using
> embedded model, but some models still throws error. 3ds files always
> throw error when are being parsed from embedded file.