it is now working.
thanks Mark.
Is flashant.org your blog?
http://blog.80s.net.cn is my blog.
On 1/12/06, Mark Winterhalder <[EMAIL PROTECTED]
> wrote:
On 1/11/06, ai829 <[EMAIL PROTECTED] > 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
hi,
here's what i did to make it work:
[EMAIL PROTECTED] ~/ttt $ mkdir library
[EMAIL PROTECTED] ~/ttt $ mv test.as library/
[EMAIL PROTECTED] ~/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.
[EMAIL PROTECTED] ~/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:
http://mtasc.org/
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 -->
<frame>
<!-- import classes-swf -->
<clip import=" classes.swf" />
<!-- add some assets to the library -->
...
[EMAIL PROTECTED] ~/ttt $ swfmill simple test.xml test.swf
this creates the swf, with your classes.swf inside.
[EMAIL PROTECTED] ~/ttt $ chmod 755 test.swf
make it executable...
[EMAIL PROTECTED] ~/ttt $ wine ../SAFlashPlayer.exe test.swf
open it with the flash player to test...
[EMAIL PROTECTED] ~/ttt $
it worked -- done! :)
here's the article i linked to in the other thread again:
http://www.flashant.org/index.php?p=408&more=1&c=1
just go through the tutorial and you'll understand how it works.
good luck!
mark
--
http://snafoo.org/
jabber: [EMAIL PROTECTED]
_______________________________________________
swfmill mailing list
[email protected]
http://osflash.org/mailman/listinfo/swfmill_osflash.org
--
80s studio
为您提供最佳的web解决方案
http://www.80s.net.cn
[EMAIL PROTECTED]
_______________________________________________ swfmill mailing list [email protected] http://osflash.org/mailman/listinfo/swfmill_osflash.org
