[swfmill] questions about swfmill
airandom at gmail.com
Wed Jan 11 20:26:27 EST 2006
oh god, i forgot the mtasc
it is now working.
Is flashant.org your blog?
http://blog.80s.net.cn is my blog.
On 1/12/06, Mark Winterhalder <mark13 at gmail.com> wrote:
> On 1/11/06, ai829 <airandom at gmail.com> wrote:
> > <clip id="test" import="test.jpg" class="test"/>
> > but the test.as can not import to swf and export from the fla is normal
> > Source file is in the attachment
> here's what i did to make it work:
> m at marktoo ~/ttt $ mkdir library
> m at marktoo ~/ttt $ mv test.as library/
> m at marktoo ~/ttt $ mv 3.jpg library/
> first i created a library directory. i guess you had it already and it
> got lost in the rar, so you probably won't have to do that.
> m at marktoo ~/ttt $ mtasc -cp /usr/local/share/mtasc/std/ -header 1:1:1
> -swf classes.swf library/test.as
> next i compiled test.as into a classes.swf with mtasc. if you don't
> have it yet, you can get it here:
> it's the compiler, swfmill by itself can't compile!
> -cp sets the classpath, in this case to the /std/ folder. mtasc needs
> it, it contains the flashplayer's intrinsic classes (e.g. MovieClip,
> Math, Array...). it comes with mtasc, just remember where you copy it.
> next i set the -header, the values are irrelevant because swfmill will
> set its own as you specified in the swfml-s. -swf sets the output
> file, i always call it classes.swf. this swf contains nothing bot your
> compiled code, we'll import it into your swf with swfmill below. last
> come the classes you want to have compiled. there are many other
> settings, you can read about them on the mtasc site.
> now, we need to adujst your swfml-s xml a bit that it imports your
> classes.swf with the code. otherwise swfmill won't have a class to
> associate the image with:
> <!-- first frame -->
> <!-- import classes-swf -->
> <clip import="classes.swf" />
> <!-- add some assets to the library -->
> m at marktoo ~/ttt $ swfmill simple test.xml test.swf
> this creates the swf, with your classes.swf inside.
> m at marktoo ~/ttt $ chmod 755 test.swf
> make it executable...
> m at marktoo ~/ttt $ wine ../SAFlashPlayer.exe test.swf
> open it with the flash player to test...
> m at marktoo ~/ttt $
> it worked -- done! :)
> here's the article i linked to in the other thread again:
> just go through the tutorial and you'll understand how it works.
> good luck!
> jabber: mark13 at jabber.org.uk
> swfmill mailing list
> swfmill at osflash.org
ai829 at 163.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swfmill