Ricardo,

Many thanks for your work.

Unfortunately I have no compile environment and so will not be testing this at 
present, but I look forward to using this feature in the nex release.

Again, many thanks,

Richard.




________________________________
From: Ricardo Pedroso <[email protected]>
To: swftools-common <[email protected]>
Sent: Sunday, 25 October, 2009 15:37:22
Subject: Re: [Swftools-common] Really basic AS3 question

On Wed, Oct 21, 2009 at 7:08 PM, Matthias Kramm <[email protected]> wrote:
> On Wed, Oct 21, 2009 at 03:56:31PM +0000, Richard Humphreys 
> <[email protected]> wrote:
>> I still cannot work out an answer to my original problem: How to add a
>> swfc sprite to the stage with script. Thanks to the help that I have
>> been given so far, that attached program now compiles without error.
>> However it does not work, there are no sprites being added by the
>> actionscript.
>
> For this, ActionScript has to know that your "logo" object corresponds
> to your "spr" class. That's something not supported by swfc yet.
>
> One of the next swfc versions will contain support.
> In to your example, the syntax will then be:
>
>  .sprite logo as3name=spr
>    ...
>  .end
>


I've made some changes to swfc to support export objects (sprites and
buttons) to as3.
Patch against git and samples attached

I had chengedthe syntax of commads:
.flash - added a maincalss=
      If you do not include this mainclass parameter your mainclass
should be the first public class.
.button added a as3name=
.sprite added a as3name=

It would be nice if someone can test and give some feedback.
This way we can "give some pressure" for matthias to include this
feature in swftools. ;)

Ricardo



      

Reply via email to