2019独角兽企业重金招聘Python工程师标准>>>
- 空间 收藏于 2011-11-27
环境 win32 xp ;
软件 cfree5 flashbuilder4
c代码。
打包 编译
/cygdrive/c/alchemy/samples/helloworld
$ cd helloc
/cygdrive/c/alchemy/samples/helloworld/helloc
$ gcc main.c -03 -Wall -swc -o main.swc
gcc: unrecognized option '-03'
gcc: unrecognized option '-swc'
main.c:2:17: fatal error: AS3.h: No such file or directory
compilation terminated.
/cygdrive/c/alchemy/samples/helloworld/helloc
$ alc-on;gcc main.c -03 -Wall -swc -o main.swc
llvm-gcc: unrecognized option '-03'
cygwin warning:
MS-DOS style path detected: C:/alchemy/avm2-libc/include
Preferred POSIX equivalent is: /cygdrive/c/alchemy/avm2-libc/include
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
WARNING: While resolving call to function 'main' arguments were dropped!
3004.achacks.swf, 260073 bytes written
frame rate: 60
frame count: 1
69 : 4
72 : 260009
76 : 27
1 : 0
0 : 0
frame rate: 24
frame count: 1
69 : 4
77 : 506
64 : 31
63 : 16
65 : 4
9 : 3
41 : 26
82 : 471
1 : 0
0 : 0
adding: catalog.xml (deflated 75%)
adding: library.swf (deflated 70%)
编译完成之后加入fb内。
fb代码:
输出
[SWF] C:\Documents and Settings\Administrator\Adobe Flash Builder 4\helloalchemy\bin-debug\helloalchemy.swf - 261,642 bytes after decompression
Hello,this is frist alchemy for me
[Unload SWF] C:\Documents and Settings\Administrator\Adobe Flash Builder 4\helloalchemy\bin-debug\helloalchemy.swf