Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.18 / 5.00 3,534 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.80 / 5.00 4,200 ViewsI want to export MovieClip to .swf. Here's what I have to far.
var ref:FileReference = new FileReference();
var buff:ByteArray = new ByteArray();
buff.writeObject(leClip);//MovieClip's name
ref.save(buff);
stop();
right now, the exported swf is not working. Anyone knows what should I do?
Object in bytearray form does not equal to an swf file. Giving the saved file the extension ".swf" does not actually make it a legit swf file, as you may have noticed. There is nothing you can do about that.
You can solve pretty much any problem you may have with AS3 by consulting the AS3 Language reference.
At 10/16/12 04:16 AM, ProfessorFlash wrote: Object in bytearray form does not equal to an swf file. Giving the saved file the extension ".swf" does not actually make it a legit swf file, as you may have noticed. There is nothing you can do about that.
So... I can't?
As3 cannot serialize DisaplyObjects.