I’m the type that tests, and tests and tests (and drinks coffee)…(it’s 5am right now).
I don’t know how many of you have figured this one out yet but here’s one you’ll love me for if you haven’t figured it out yet:
You know you can right-click on an mc and export the mc as an .swf directly from the library, right?
ok well try this:
you have two movie clips:
one is MovieClipA it’s scripted to attachMovie(“movieClipB”, arg, arg);
the movieClipB is going to be attached, so set it to export in First frame.
now EXPORT MovieClipA from the library…
You’re thinking: 'well MovieClipA is using attachMovie() to attach movieClipB, so I have to keep movieClipB set to ‘export in first frame…’
you don’t.
once movieClipA is exported from the library, if the stuff it attaches() was set to ‘firstFrame’ when it was exported, you can UNcheck ‘export in first frame’ from the clips it attaches, and movieClipB (and anything else) will attach to mcA when mcA is loaded. And yes: this is also true if movieClipB contains SOUND. So put all your sounds and ‘firstFramers’ into movieClipB’s timeline, set movieClipA to attach movieClipB, export movieClipA from the library, and now Uncheck ‘firstFrame’ from every library item.
Again, I don’t know if I’m sitting here telling all of you that ‘the sky is blue wow!!’ but to me, this was an incredible discovery.
all you have to do is export a movieClip from the library which is scripted to attach other movieClips. if the ‘attachables’ are set to ‘firstFrame’ when the ‘attacher’ is exported from the Lib, you can now Uncheck ‘firstFrame’ and those assets are still attachable. Am I making sense?
i hope i don’t sound like an idiot, but this is a pretty useful trick in my book!
-mike