Signature.swf error

Software: Away3D 4.x

Avatar
ganesh, Member
Posted: 13 June 2013 03:41 AM   Total Posts: 54

While I was learning “basic_fire” form away3d 4.1 beta example file I got error in signature.swf


If I use this code it shows error

TypeError: Error #1034: Type Coercion failed: cannot convert signature_swf$361aa7af841fbf260b0f7fde2347277b1663735784@2410101 to flash.display.Sprite.

[Embed(source="../embeds/signature.swf"mimeType="application/octet-stream")private var SignatureSwf:Class;


Signature = new SignatureSwf();
SignatureBitmap = new Bitmap(new BitmapData(Signature.widthSignature.heighttrue0));
stage.quality StageQuality.HIGH;
SignatureBitmap.bitmapData.draw(Signature);
stage.quality StageQuality.LOW;
addChild(SignatureBitmap);
   
addChild(new AwayStats(view)); 

mimeType=“application/octet-stream” is automatically generated by flashdevelop

but If I change embedding code it works fine

[Embed(source="../embeds/signature.swf"symbol="Signature")]
private var SignatureSwf:Class; 

This technique was used in gold version

Can someone tell me what may be the cause

 

   

Avatar
ganesh, Member
Posted: 22 June 2013 01:28 PM   Total Posts: 54   [ # 1 ]

I have got my answers, always use

[Embed(source=”../embeds/signature.swf”, symbol=“Signature”)]


Signature is the class name of signature.swf

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X