all groups > flash actionscript > april 2005 >
You're in the

flash actionscript

group:

Share Library not loading symbols


Share Library not loading symbols majohnst
4/1/2005 10:22:07 PM
flash actionscript: I am trying to use a shared library in my movie and dynamically load a symbol
from that movie using action script.

I created by shared library (shared/page.swf) and set all the export settings
according to the Macromedia documentation. I am linking them at run time, so
the library url is "shared/page.swf". In my main movie, I made a movie clip
that is linked to the symbol in my shared library.

They shared symbol is called "Page". My actionscript code is:

this.attachMovie("Page","p1", getNextHightestDepth());

For some reason, I cannot get this to work, the "Page" movie is never loaded.
If I get rid of all the shared library stuff and just import the Page symbol
into my main movie, everything works correctly. Do I have to preload the shared
library?

What do I need to do to call and attach a movie clip from a shared library?
Re: Share Library not loading symbols Jeckyl
4/2/2005 8:45:08 AM
The shared library certainly would need to be loaded before symbols from it
can be used (or enough of it loaded). I'm not sure whether flash player
automatically pauses while the shared library loads in, or not ... I don't
use shared libraries much myself (I probably should :)) I'll be interested
to read the responses here about it.
--
Jeckyl

AddThis Social Bookmark Button