Open GoogleCodeExporter opened 8 years ago
Original comment by martin.h...@gmail.com
on 30 Sep 2011 at 10:52
Hi there,
thank you for your comments! I've changed the mistakes in the documentation
pages and fixed the null pointer error in the defineArguments method.
One thing that isn't clear to me though is your last issue. Where exactly do
you use defineConstructor()? It is perfectly logical that the resulting SWF
will throw a verify error if you don't add a method body to the constructor as
well. Simply calling defineConstructor() will not be enough.
What is your use case exactly?
thanks for your efforts!
cheers,
Roland
Original comment by ihatelivelyids
on 30 Sep 2011 at 2:26
Hi Roland,
You are absolutely right I completely overlooked the fact that I need to put
something in the constructor and I have realised that I did not read the
information about a generic constructor being created by default. Sorry about
that.
BTW: Part of what I'm doing involves saving classes to a swf file at run time
without user interaction.
I wondered if it would be worth adding to the "Exporting Generated Classes"
section with some information about saving without a dialog
e.g.
var swf:File = new File( someDirectory.nativePath + File.separator +
filename.swf );
var stream:FileStream = new FileStream();
stream.open( swf, FileMode.WRITE );
... make runtime class code ...
var generatedSwfByteArray:ByteArray = abcBuilder.buildAndExport();
stream.writeBytes( generatedSwfByteArray );
stream.close();
Best regards
Tom
Original comment by tom.co...@gmail.com
on 30 Sep 2011 at 3:18
Original issue reported on code.google.com by
tom.co...@gmail.com
on 30 Sep 2011 at 10:11