I have an fla which is (AS2) basically structured like this
component1
[folder component1 clips]
effect
letter
component2
[folder component2 clips]
effect
letter
component3
[folder component3 clips]
effect
letter
and so on. It contains over 70 components.
Every component has the same script (copy-pasted).
Every component has its own MC “effect” which performs a certain animation
Every MC “effect” has its own MC “letter”
Every MC “letter” has one ore more font(-fields-on-stage in keyframes) to be used for the particular animation. This makes it easier for users to see+change fonts for animations then using one single mc ‘letter’ containing dozens of font options.
Now I am ready to change to AS3, but see major issues ahead
- In AS2 every case of mc “effect” is placed in its parent-component with instance name ‘effect’ and with duplicateMovieclip duplicated by the parent-component to generate a text.
Considering that… I have say 70+ mc’s called “effect” in the library. Now I prefer not to have to give them different linkage names, since then I’d need to adjust the script in each component to the linkage name (since it probably will be using addChild (instead of duplicate movie)). I’d prefer to have one same script in each component like I do now.
I’m having difficulty deciding if its better to use external .AS class files or not
I have 70 components who all basically run the same script. One can’t use same class names for all (read “one class file for 70 components”). As far as I’m aware you can’t linkage 1 .AS file to all the components.
-In V2 duplicate movie didn’t require unique names for all 70 MC “effect”, addChild will require… any way to circumvent that?
-Is it possible to create a tiny .AS file for each individual component calling a main .AS file/function which performs the addChild BUT with that ALSO send a component parameter to the function telling it which ‘effect’ to duplicate?
Since they are components, I don’t know if dragging one on stage (from Component Panel/list, after installed by .mxp) will add all required .AS files to folder where .fla is saved. Does it?
P