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.width, Signature.height, true, 0));
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