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?
right, > <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 [1], 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. regards, -dan [1] http://swfmill.org/misc/test-importexport/ -- http://0xDF.com/ http://iterative.org/ _______________________________________________ swfmill mailing list [email protected] http://osflash.org/mailman/listinfo/swfmill_osflash.org
