swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] AS3


From: Jason
Subject: Re: [Swftools-common] AS3
Date: Tue, 04 Jan 2011 23:01:18 +0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7

PS the final .sc file is this...

.flash filename=as3-allclips.swf background=white bbox=728x90 version=9 fps=12
            .box bgClip2 365 90 fill=#b8c4cf  color=#b8c4cf
            .put bgClip2 0 0
            .box bgClip3 364 90 fill=#b8c4cf  color=#b8c4cf
            .put bgClip3 364 0
.swf contentClip4 "/home/xxxxx/public_html/xxxxx/clients/audience/audience-1-0.swf" as3name=audience_fla.textClip_1
            .put contentClip4 scalex=44% scaley=44% x=298 y=-10  rotate=0
.swf contentClip5 "/home/xxxxx/public_html/xxxxx/clients/audience/audience-1-1.swf" as3name=audience_fla.Symbol2_3 .put contentClip5 scalex=43.9987182617% scaley=43.9987182617% x=431 y=24 rotate=0 .swf contentClip6 "/home/xxxxx/public_html/xxxxx/clients/audience/audience-1-2.swf" as3name=audience_fla.animationClip_5 .put contentClip6 scalex=43.9987182617% scaley=43.9987182617% x=184 y=3 rotate=0 .swf contentClip7 "/home/xxxxx/public_html/xxxxx/clients/audience/audience-1-3.swf" as3name=audience_fla.Symbol4copy_7
            .put contentClip7 scalex=44% scaley=44% x=298 y=-10  rotate=0
.swf contentClip8 "/home/xxxxx/public_html/xxxxx/clients/audience/audience-1-4.swf" as3name=audience_fla.Symbol4_9
            .put contentClip8 scalex=44% scaley=44% x=298 y=-10  rotate=0
        .swf button "invisibleButton.swf"
        .put button x=0 y=0 scalex=242.666666667% scaley=36%
        .end

The movies above have all retained their AS3 code, and are respecting it... although I get some debug errors concerning the clips within the clips : TypeError: Error #1009: Cannot access a property or method of a null object reference.

I even tried importing the relevant class and declaring the object :
import flash.display.*
var mc;
But the errors still appear.

it compiles correctly without the as3name on each line

.flash filename=as3-allclips.swf background=white bbox=728x90 version=9 fps=12
            .box bgClip2 365 90 fill=#b8c4cf  color=#b8c4cf
            .put bgClip2 0 0
            .box bgClip3 364 90 fill=#b8c4cf  color=#b8c4cf
            .put bgClip3 364 0
.swf contentClip4 "/home/xxxxx/public_html/xxxxx/clients/xxxxx/audience/audience-1-0.swf"
            .put contentClip4 scalex=44% scaley=44% x=298 y=-10  rotate=0
.swf contentClip5 "/home/xxxxx/public_html/xxxxx/clients/audience/audience-1-1.swf" .put contentClip5 scalex=43.9987182617% scaley=43.9987182617% x=431 y=24 rotate=0 .swf contentClip6 "/home/xxxxx/public_html/xxxxx/clients/audience/audience-1-2.swf" .put contentClip6 scalex=43.9987182617% scaley=43.9987182617% x=184 y=3 rotate=0 .swf contentClip7 "/home/xxxxx/public_html/xxxxx/clients/audience/audience-1-3.swf"
            .put contentClip7 scalex=44% scaley=44% x=298 y=-10  rotate=0
.swf contentClip8 "/home/xxxxx/public_html/xxxxx/clients/audience/audience-1-4.swf"
            .put contentClip8 scalex=44% scaley=44% x=298 y=-10  rotate=0
        .swf button "invisibleButton.swf"
        .put button x=0 y=0 scalex=242.666666667% scaley=36%
        .end




On 04/01/2011 22:27, Jason wrote:
Hi Ricardo

I think I will keep this patched system seperate from the PEAR install.
That way I won't mess up the app if I ever update the PEAR one.

My app is working in severalstages :
1) extract eveything in PHP
2) import all swf into Flash
3) adapt the positioning of swf elements
4) send new coordinates back to PHP
5) rebuild the combined swf from the original extracted swf and the repositioning data sent by Flash

The recompiling (stage 5) is not working ... is this because I need to extract and recompile within the same PHP script execution for the AS3 code to be picked up correctly when recompiled ?

Your explanation was very good.
I am the fool for installing two copies of swftools on the same server, and then being surprised when I got confused !!!!

Thanks

Jason


On 04/01/2011 21:41, Ricardo Pedroso wrote:
On Tue, Jan 4, 2011 at 1:58 PM, Jason<address@hidden>  wrote:
Hi Ricardo

I have got that working.
Thanks a BILLION !!!!

Great.

Is that because you patched swfc and swfextract... and the -3 is only needed
in the first two ?
The -3 is for swfextract only and be aware that it could never be in the
official distribution.


I will clarify what that patch does.

The files patched are swfc.c and swfextract.c
swfc.c:
    the changes are a backport of what is already in the repository,
    is the inclusion of as3name in .swf command. So you will
    have that feature in future releases.

swfextract:
    the change is adding a switch (-3) to be able to extract the
actionscript 3 code.
In other word is to swfextract not ignore SYMBOLCLASS and DOABC tags.


I mademy own 'bad' by having two installs... and patching only one.
Yep, I could be more clear, but sometimes I have some difficults to explain
for 2 reasons:
1. Its very clear to me ;)
2. English is not my mother language.


But I have no idea where PEAR installs swftools.
you can see where is installed with:
$ which swfc
$ which swfextract
....

or using "type" instead of "which"
$ type swfc
....


Ricardo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]