Read this-exporting from library ;)

UNdocumented:

You know how you have to have something checked for first frame export if you want to use ‘attachMovie()’ Either that or you have to put a ‘firstFrameExporter_mc’ on your timeline, so the preloader loads it.

Not anymore. I don’t know how many have discovered this
Anyway here’s the meat of this post::

Follow this (carefully):

put an mc on your Stage , go inside it and script it with this:
function onMouseDown(){
this.attachMovie(“testmc”, “testmc”, 1);
}

now make a test mc in your library. set it to export first frame with linkageID ‘testmc’.

test your movie and press the mouse down in it. your testmc attached. good…>

close player…

go back into the library, UNcheck ‘first frame’ from testmc.
test movie…

it will not attach now. good–>

Here’s the trick-> the movie clip you’re scripting can be exported from the library as an swf. That swf will remember the settings of the library from whence it came. keep going–>

1- Check ‘first frame’ in testmc again.
2-now EXPORT the mc you scripted with attach( testmc ). save it as ‘‘loadMe.swf’’

3- now, wherever ‘loadMe.swf’ is on your disk, it REMEMBERS everything it is scripted to attach and includes it inside itself when you exported it.

4 - go back into the library and UNcheck ‘first frame’ from testmc.

5 - when you load ‘loadMe.swf’ into your main movie, the attach() will work, even though nothing in your library is set to ‘export in first frame’

moral of the story: an .swf which is exported from .fla’s library retains inside itself all of the settings of the library from which it was exported.

you want a completely empty first frame?

all you have to do is export ANYTHING from your library as an .swf WHILE all of your attachables are set to ‘export in first frame’. Then go back into the library and make sure you DEselect ‘export in first frame’ from everything.

When that exported .swf is loaded into your main movie, all of those symbols are available.

does this make sense? it works nonetheless.
(sounds - the perfect candidate for ‘attach’ however, do not work this way).

-mike

(**special note:: macromedia runs and owns several web design firms–they will NEVER, EVER ever tell you or me or regular users how to use their program.

To learn how to use flash, you have to spend countless hours on end testing and testing and hacking and making a hundred mental notes to figure out what they already know. )