Flash Game Development with Flex and Actionscript(一)
Flash Game Development with Flex and Actionscript(一)
2010年11月22日
as3.0开发2010-11-22 16:46:00阅读0评论0 字号:大中小 订阅 开始前的准备:
工具:flex builder4.
素材:教程提供了简单的飞机游戏的简单素材.
照例第一个程序都是Hello,World!
flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
creationComplete="CreationComplete()"
enterFrame="EnterFrame(event)"
>
现在再往以上代码添加点东西.理解FLEX 的渲染原理(这个很重要) 红色部分标注!
flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
creationComplete="CreationComplete()"
enterFrame="EnterFrame(event)"
>
CreationComplete方法 仅只有在"可视化"组件全部显示完毕,并且EnterFrame执行完成才执行! 如果没有inGame,就会一直处于LOADING!
完成之后你将看到一个Hello,World 的对话框, 以及一段不断向左滚动的文字!
猜你喜欢
转载自pc519pc.iteye.com/blog/1571793
今日推荐
周排行