RE: [Flashcoders] unexpected result with linked classes in embedded swfs

2009-05-19 Thread Merrill, Jason
My understanding is that classes are only imported once and have a single instance in the player - so if .swf A loads in .swf B, and both use Class X, then if you change class X and re-publish only .swf A, you will see the change in both .swf and .swf B. I could be wrong, but that is my

Re: [Flashcoders] unexpected result with linked classes in embedded swfs

2009-05-19 Thread mark . jonkman
Hi Andrew If you reference a class in your main movie then that class will be automatically compiled into your main movie. A single reference to the class is enough to include it. There are ways to prevent that from occurring. In AS2 I believe you could create an exclude XML file that lists

Re: [Flashcoders] unexpected result with linked classes in embedded swfs

2009-05-19 Thread Glen Pike
Guessing that if you run your skin-swf, the classes won't work properly in there until you re-compile. Because main.swf is loaded first by the player, these classes will be declared in there and not overwritten when loaded in (guess that's a security feature). Glen Andrew Sinning wrote:

Re: [Flashcoders] unexpected result with linked classes in embedded swfs

2009-05-19 Thread Jordan L. Chilcott
If your source and linked file are importing the same AS2 class, the first one imported gets put into the global class tables. Flash sees that the class from the imported link is within the same namespace and considers it already in existence. This is not so unexpected behaviour. If you are

Re: [Flashcoders] unexpected result with linked classes in embedded swfs

2009-05-19 Thread Andrew Sinning
Jordan, Mark et all advised: If you are going to have your class used throughout various linked swfs, then keep it in your main movie and exclude the class from the links swfs when compiling (using an exclude xml file). Thanks! This is really helpful. It seems so stupid of me to program the

RE: [Flashcoders] unexpected result with linked classes in embedded swfs

2009-05-19 Thread Mario Gonzalez
: [Flashcoders] unexpected result with linked classes in embedded swfs My understanding is that classes are only imported once and have a single instance in the player - so if .swf A loads in .swf B, and both use Class X, then if you change class X and re-publish only .swf A, you will see the change

Re: [Flashcoders] unexpected result with linked classes in embedded swfs

2009-05-19 Thread mark . jonkman
. Jonkman - Original Message - From: Andrew Sinning and...@learningware.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Tuesday, May 19, 2009 10:35:13 AM GMT -05:00 US/Canada Eastern Subject: Re: [Flashcoders] unexpected result with linked classes in embedded swfs

Re: [Flashcoders] unexpected result with linked classes in embedded swfs

2009-05-19 Thread Jordan L. Chilcott
Know the feeling! We have about 20 files using the same class files. It makes more sense for us to keep them in a central core file and simply compile one file. The skin swf will reference the classes from your main file as if they were compiled into the swf. The only noticeable change should

Re: [Flashcoders] unexpected result with linked classes in embedded swfs

2009-05-19 Thread Andrew Sinning
Currently I only have one skin, but we plan to build more skins, at which time we'll probably start to over-ride some members of various classes to suit individual skins. If I do this by extending a base-class, will I be able to keep a base class in the main-swf, exclude it from the skin-swf,

Re: [Flashcoders] unexpected result with linked classes in embedded swfs

2009-05-19 Thread mark . jonkman
Eastern Subject: Re: [Flashcoders] unexpected result with linked classes in embedded swfs Currently I only have one skin, but we plan to build more skins, at which time we'll probably start to over-ride some members of various classes to suit individual skins. If I do this by extending a base-class