[Flashcoders] Preventing Compilation of components and source code

2006-06-29 Thread Lori Hutchek
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 -

 

___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Preventing Compilation of components and source code

2006-06-29 Thread Jim Cheng

Lori Hutchek wrote:



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?


You might want to look into compiled clips and SWCs (to avoid redundant 
compilations of a component during development), and shared libraries 
(to share components at run-time between multiple SWFs and reduce total 
bandwidth usage).


Unfortunately, these techniques are relatively advanced topics and have 
historically been somewhat of a black art.  In particular, they aren't 
terribly well-documented in the documentation or third-party literature 
and tend towards some idiosyncratic and unexpected behavior.


If you're all buckled in, here's a few links to get you started:

  Adobe LiveDocs on Compiled Clips and SWCs
  livedocs.macromedia.com/flash/8/main/2940.html

  Adobe Flash TechNote on Using Shared Libraries
  http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14767

  Mario Klingemann's Blog Post on Shared Libraries
  http://www.quasimondo.com/archives/000227.php

Jim
___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] Preventing Compilation of components and source code

2006-06-29 Thread neo binedell
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: flashcoders@chattyfig.figleaf.com
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 -

 

___
Flashcoders@chattyfig.figleaf.com
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

___
Flashcoders@chattyfig.figleaf.com
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