[swfmill] Adding Items to existing SWF
dan at f3c.com
Tue Jul 25 04:23:57 EDT 2006
> 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.
More information about the swfmill