I think it should just be -externs=AlertPuller.  What does
AlertPuller.as look like?  What does the link-report reference that you
want to get rid of look like?
 
Is there any reason you have to also define that class in the childSWF?

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of pet.theory
Sent: Monday, April 16, 2007 8:59 PM
To: [email protected]
Subject: [flexcoders] Re: -extern compiler option for AS3 project



Thanks Alex,

Tried these, none worked (the class that embeds the pic is AlertPuller);

-externs
/Users/Matt/Documents/Workspace/Pet/classes/control/AlertPuller.as
-externs /Users/Matt/Documents/Workspace/Pet/classes/control/AlertPuller
-externs=/Users/Matt/Documents/Workspace/Pet/classes/control/AlertPuller
.as
-externs=/Users/Matt/Documents/Workspace/Pet/classes/control/AlertPuller

And by none worked I mean that the flabbly 8k that is embedded in
AlertPuller keeps showing up in childSWF, compiler diet or no.

That makes sense to me, since AlertPuller is compiled into parentSWF
already, and -load-externs does not knock out the 8k in the first place.


Are you sure that this is possible? That we can use an exclude option
for images embedded in classes? Perhaps I need to directly embed the
image in parentSWF, then use...

-externs parentSWFApp?

But I think I'm missing something here.

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Are you sure that it isn't that the grandChildSWF didn't see classes
in
> childSWF? Setting a custom loaderContext might help. You might be
> having applicationDomain issues.
> 
> -externs only works on classes, not on files like sharedImage.jpg.
> Unless you embed sharedImage.jpg in childSWF it shouldn't be in there.
> -extern PictureInThisClass should work.
> 
> ________________________________
> 
> From: [email protected] <mailto:flexcoders%40yahoogroups.com>
[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of pet.theory
> Sent: Monday, April 16, 2007 3:26 PM
> To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] -extern compiler option for AS3 project
> 
> 
> 
> Hi,
> 
> I'm exploring the compiler options for an AS3 project in which
> parentSWF loads childSWF.
> 
> for compiling childSWF:
> 
> -load-externs=parentSWFClasses.xml (the link report) applied to
> childSWF works great (with this exception: a grandchildSWF loaded into
> childSWF does not seem to inherit the classes that childSWF inherits
> from parentSWF).
> 
> -externs=sharedImage.jpg does not work AT ALL. Here I need to exclude
> a picture embedded in parentSWF from compiling into childSWF, and
> bulking it up.
> 
> The picture needs to be embedded in parentSWF, so loading/caching it
> is not an optimal solution here.
> 
> One thing: I actually have the picture embedded in a class
> (PictureInThisClass.as) that both parentSWF and childSWF use.
> 
> Am I using the right command and the right syntax to exclude an
> embedded picture from being compiled?
> 
> I'm a lowly actionscripter, and not a flexcoder yet, so if I'm
> off-topic tell me so.
> 
> Thanks
>



 

Reply via email to