Add an xml exclude file for each swf you want classes excluded from.
The xml file should be named [yourswfname]_exclude.xml
e.g. 

You have an fla named nx_core.fla

It imports a class com.nx.sdk.core.SomeClass but you will load it from
another swf that exports it.

You create an xml file called nx_core_exclude.xml and place it in
the same dir as the fla.

You place the following inside the xml file:

<excludeAssets>
        <asset name="com.nx.sdk.core.SomeClass"></asset>
        <asset name="com.nx.sdk.core.SomeOtherClass"></asset>
</excludeAssets>

Compile and check out the swf with ASV and you will see
that the classes were not included. Now load you swf after
the swf that contains the classes and everything works just dandy.

regards
~neo

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lori Hutchek
Sent: 29 June 2006 05:23 PM
To: [email protected]
Subject: [Flashcoders] Preventing Compilation of components and source code

Hey All,

 

I'm trying to build an application with distributed swf's, which contain
components and have linkages to external source code files. One thing I've
come across is that some of the same code references and components are
being used across my files (ie. I'm using a radio button in 4 different
places). I'd like to prevent the code from compiling over and over again
into each of these files and make one file that contains all of the code for
the application. Does anyone know any tutorials or references I can read up
on how to do this? And can u tell me if what I'm suggesting is just crazy
and impossible?

 

Thanks,

Lori -

 

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to