[swfmill] import
daniel fischer
dan at f3c.com
Fri Aug 4 08:53:06 EDT 2006
"keitai guy" <lister at pikkle.com> (on Fri, 4 Aug 2006 03:09:58 +0900):
> hi list -
>
> in swfmil / basic there is a nice way to use external libraries.
> is there a simlar syntax for the full-blown swfmill syntax?
>
> -------- basic syntax ------------
>
> <library>
> <clip id="foobar" import="library/foobar.swf"/>
> </library>
> <place id="foobar" name="myFoobar" x="10" y="10" depth="1"/>
please note: this is not swfml basic, but "swfml-simple". "basic" was the old name of what is now (to avoid some of the confusion) "lowlevel".
the way you're importing foobar.swf here is also not really what the flash community calls "external library": for external libs, the SWF specified is not imported into the new swf, but has to be available at runtime. the <clip import=> statement really imports all the contents of the other swf into your new one.
there is no such syntax for swfml-lowlevel, that is indeed the whole point of the simple dialect.
> ------------
> after decoding some other files, there seems to be an import, so i
> tried the following
>
> <Import url="assets/madb/bear.swf">
> <Symbol objectID="1" name="bear_sy"/>
> ...
>
> <PlaceObject2 replace="0" depth="1" objectID="1"/>
>
> of course wrapped in some other tags as per the full example below.
this should indeed work some way, but not the way you expect- flash player would try to load assets/madb/bear.swf *at runtime*, looking for a "bear_sy" symbol in it.
> i need a solution to compile movies as flash version=4 , which didnt
> seem to work in the basic syntax - movies always end up v6.
hm, could be. compatibility for swf <6 was never an aim for swfmill. can i ask for your reasons to be v4 compatible?
hope this helps a bit, i'm afraid there doesn't seem to be an easy solution here.
-dan
--
http://0xDF.com/
http://iterative.org/
More information about the swfmill
mailing list