`
wangangie21
  • 浏览: 61939 次
  • 性别: Icon_minigender_2
  • 来自: 上海
最近访客 更多访客>>
社区版块
存档分类
最新评论

As3.0 meta tag初始化影片

阅读更多

 
在As3.0中,使用meta tag可以嵌入外部的资源如图片,动画,也可以使用[SWF]meta tag来初始化影片,代码如下:
package{
import flash.display.Sprite;
[SWF(width="800",height="600",frameRate="31",backgroundColor="#ff0000")]
public class myApp extends Sprite{
public function myApp(){
init();
}
将其存为myApp.as,然后需要使用flex2 sdk时行编译.结果是创建一个宽800高为600,帧速为31,背影为红色的影片.
private function init():void{
}
}
}
本文转自:http://www.5uflash.com/flashjiaocheng/Flash-as3-jiaocheng/173.html
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics