Ok. then I won't go down that route. I'll go down the asset swf with
mxmlc route. I wrote this JSFL (http://codeendeavor.com/archives/47),
but there are cases when it doesn't work, like cross referencing
classes, etc..

thanks man.
-A


On Tue, Dec 23, 2008 at 10:17 AM, Alex Harui <[email protected]> wrote:
> I doubt they will be adding such a feature anytime soon.  You may be able to
> fake out CS4 by modifying the files you link against in a sub-swf to have
> "native" APIs.
>
>
>
> However, if I had that large a project in Flash, I would probably just use
> jsfl to export SWFs of assets and build the rest using ANT and mxmlc and
> then you can use the link options.  Modifying a SWF post-build is hard.
> There are plenty of offsets in the SWF that will need updating.
>
>
>
> From: [email protected] [mailto:[email protected]] On
> Behalf Of aaron smith
> Sent: Monday, December 22, 2008 11:08 PM
>
> To: [email protected]
> Subject: Re: [flexcoders] Re: SWF file format question - SymbolClass Tag
>
>
>
> Ok, that makes sense.
>
> Do you know by any chance if anything like this will be added to Flash
> CS4 anytime soon? This is precisely why I'm going down this road of
> modifying the actual SWF - because it's not flex compiled.
>
> Thanks.
>
> On Mon, Dec 22, 2008 at 10:26 AM, Alex Harui <[email protected]> wrote:
>> The most common way to do this is to generate a link-report from the shell
>> and use load-externs when building the sub-swf.
>>
>> Keep in mind that by doing so you commit the sub-swf to be linked with and
>> running the same version of Flex as the shell. The Marshal Plan in Flex
>> 3.2
>> is a way to build sub-swfs w/o requiring same versions.
>>
>> -----Original Message-----
>> From: [email protected] [mailto:[email protected]] On
>> Behalf Of aaron smith
>> Sent: Sunday, December 21, 2008 1:00 PM
>> To: [email protected]
>> Subject: Re: [flexcoders] Re: SWF file format question - SymbolClass Tag
>>
>> Hey Gordon,
>>
>> The reason I wanted to remove a class was because I have two swfs - a
>> shell, and some other swfs, and didn't want the same class compiled
>> into every swf - thereby wasting K. So i was looking for a way to
>> manual remove a class from sub-swfs.
>>
>> -A
>>
>> On Sun, Dec 21, 2008 at 12:55 PM, aaron smith
>> <[email protected]> wrote:
>>> Thanks, externs is pretty much what I was looking for.
>>>
>>> On Fri, Dec 19, 2008 at 9:02 PM, Alex Harui <[email protected]> wrote:
>>>> There are three mxmlc options:
>>>>
>>>>
>>>>
>>>> -load-externs (removes all files listed from some other -link-report
>>>>
>>>> -compiler.external-library-path (remove all files from a SWC)
>>>>
>>>> -externs (removes a class)
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> From: [email protected] [mailto:[email protected]] On
>>>> Behalf Of Gordon Smith
>>>> Sent: Friday, December 19, 2008 4:47 PM
>>>>
>>>> To: [email protected]
>>>> Subject: RE: [flexcoders] Re: SWF file format question - SymbolClass Tag
>>>>
>>>>
>>>>
>>>> Also, I'm pretty sure that there is some compiler option you can use to
>>>> prevent specific classes from getting linked in. That's a lot easier
>>>> than
>>>> trying to remove them after they've been linked in.
>>>>
>>>>
>>>>
>>>> Gordon Smith
>>>>
>>>> Adobe Flex SDK Team
>>>>
>>>>
>>>>
>>>> From: [email protected] [mailto:[email protected]] On
>>>> Behalf Of Gordon Smith
>>>> Sent: Friday, December 19, 2008 4:23 PM
>>>> To: [email protected]
>>>> Subject: RE: [flexcoders] Re: SWF file format question - SymbolClass Tag
>>>>
>>>>
>>>>
>>>> The AS3 classes are in the DoABC (or maybe a DoABC2?) tag.
>>>>
>>>>
>>>>
>>>> It seems unlikely that you could remove a class and still have the SWF
>>>> work.
>>>> If the class wasn't used by your application, the MXML compiler wouldn't
>>>> have linked it in.
>>>>
>>>>
>>>>
>>>> Gordon Smith
>>>>
>>>> Adobe Flex SDK Team
>>>>
>>>>
>>>>
>>>> From: [email protected] [mailto:[email protected]] On
>>>> Behalf Of aaron smith
>>>> Sent: Wednesday, December 17, 2008 3:24 PM
>>>> To: [email protected]
>>>> Subject: [flexcoders] Re: SWF file format question - SymbolClass Tag
>>>>
>>>>
>>>>
>>>> Actually, I could be wrong. would it make more sense if it was the
>>>> DoABC tag? There's a field on DoABC called ABCData - I would assume
>>>> that's the bytecode. hmm. i'll keep looking arund. if anyone has any
>>>> ideas hook me up.
>>>>
>>>> On Wed, Dec 17, 2008 at 1:44 PM, aaron smith
>>>> <[email protected]> wrote:
>>>>> Has anyone read through the SWF file format, and been able to decipher
>>>>> how exactly AS3 classes are compiled into the SWF? From reading
>>>>> through all of the control tags it seems it would be the SymbolClass
>>>>> tag. So, it would seem, I could rip out SymbolClass tags from the
>>>>> bytecode (for a specific class) - while keeping track of the new file
>>>>> length, then write the swf again and have a swf that doesn't include
>>>>> the definition for a particular class. Anyone else think that makes
>>>>> sense?
>>>>>
>>>>> Thanks
>>>>>
>>>>
>>>>
>>>
>>
>> ------------------------------------
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Alternative FAQ location:
>>
>> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>> Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>> Links
>>
>>
>
> 

Reply via email to