[swfmill] Adding Items to existing SWF
mail at soenkerohde.com
Wed Jul 26 10:29:32 EDT 2006
I found another solution for my problem and I am on a tough deadline so I
won't investigate this more in the near future.
BUT, my current solution also uses SWFMill and is also a tricky one I think.
I have got the main.swf which has several library items. These
MovieClip-extending classes have to load external graphics which I can't
load from the disk but have all to be in a library.swf.
What I did:
- Created a library.fla
- added a FakeSymbol (linkage FakeSymbol) which is exported for
- I dragged this Symbol into the main.fla library and also onto the stage to
use the library.swf as a SharedLib
- then I created a new library.swf with SWFMill which also includes a
"FakeSymbol" with a transparent PNG
The nice thing is that the main.swf accepts the newly created library.swf as
a SharedLib and that's it.
I did not expect this to work because I thought that the information that
the library.swf has a Symbol which is exported for Runtime Sharing is
If you don't understand anything at all from what I am saying don't mind. I
don't either ;)
Thanks a lot for your support!
All the best,
> -----Original Message-----
> From: swfmill-bounces at osflash.org
> [mailto:swfmill-bounces at osflash.org] On Behalf Of daniel fischer
> Sent: Tuesday, July 25, 2006 10:24 AM
> To: swfmill at osflash.org
> Subject: Re: [swfmill] Adding Items to existing SWF
> Hey Sönke,
> > Sorry for my question but I am not so familiar with the
> XML of SWFMill.
> > I have read the docs but how do I import a SWF into a new one?
> > Do I have to define the existing SWF as a "clip" or do I
> have to use the
> > "import"-tag. Import seems only to be for shared
> libraries isn't it?
> > <clip id="bar" import="lib/component_lib.swf"/>
> that's the way (a-ha, a-ha, i like it).
> > component_lib.swf has an libary item with the linkage "Test"
> > The swfmill-generated swf is save as test.swf.
> > I load the test.swf with loadMovie and after it's loaded
> I tried to attach
> > the "Test"-item with attachMovie but witout success.
> > Is that the way you described?
> i dont know much about loadMovie. i've constructed a test
> , where i first construct a "first.swf" where i import a
> jpeg under the library id "jpg". I then construct another swf
> (test.swf) where first.swf is imported (<clip>). A snippet of
> code (Main.as) attachMovie()'s the "jpg" successfully.
> does the loadMovie way work with "direcly exported" ids, that
> is to say without that additional level of import?
> please try some more; i'm willing to help you on this. if it
> still fails for you, we'll have to find out how either the
> loadMovie or the IDE-exported SWF make any difference to my
> test, so please post an (as-simple-as-possible)
> "component_lib.swf" (or the like) that fails.. it might well
> also be another problem with tags in your component_lib.
>  http://swfmill.org/misc/test-importexport/
> swfmill mailing list
> swfmill at osflash.org
More information about the swfmill