上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 22 下一页
摘要: package{importcom.ui.Star;importflash.display.Bitmap;importflash.display.BitmapData;importflash.display.Sprite;importflash.display.StageAlign;importflash.display.StageScaleMode;importflash.events.MouseEvent;importflash.filters.GlowFilter;importflash.geom.Matrix;importflash.geom.Point;publicclassMain 阅读全文
posted @ 2012-07-24 11:06 王翔(kingfly) 阅读(1360) 评论(0) 推荐(0) 编辑
摘要: push 数组尾部添加一个元素pop 将数组最后一个元素删除,并返回这个元素unshift 数组头部添加一个元素shift 将数组第一个元素删除,并返回这个元素splice myArray.splice(7,2,"Wizard","Bard") 从数组的某位置开始,删除指定数目的元素,并插入一些新元素indexOf 范元元素的索引值,如果没有就返回-1sort 对数组排序,返回排序后的数组 阅读全文
posted @ 2012-07-20 17:05 王翔(kingfly) 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 文档类:package{importcom.ui.Card;importflash.display.MovieClip;importflash.display.Sprite;importflash.display.StageScaleMode;importflash.events.Event;importflash.events.MouseEvent;importflash.events.TimerEvent;importflash.media.Sound;importflash.media.SoundChannel;importflash.text.TextField;importflash 阅读全文
posted @ 2012-07-20 10:34 王翔(kingfly) 阅读(4571) 评论(1) 推荐(0) 编辑
摘要: package{importcom.ui.Ball;importflash.display.Sprite;publicclassMainextendsSprite{vara:Ball=newBall(0x000000,20);varb:Ball=newBall(0x4c1b1b,20);varc:Ball=newBall(0xf6e497,20);vard:Ball=newBall(0xfcfae1,20);vare:Ball=newBall(0xbd8d46,20);publicfunctionMain():void{init();}privatefunctioninit():void{a. 阅读全文
posted @ 2012-07-16 15:00 王翔(kingfly) 阅读(2439) 评论(0) 推荐(0) 编辑
摘要: package{importflash.display.Sprite;importflash.events.TextEvent;importflash.net.URLRequest;importflash.net.navigateToURL;importflash.text.TextField;publicclassMainextendsSprite{privatevartxt:TextField;publicfunctionMain():void{init();}privatefunctioninit():void{txt=newTextField();txt.width=300;txt.w 阅读全文
posted @ 2012-07-16 10:38 王翔(kingfly) 阅读(446) 评论(0) 推荐(0) 编辑
摘要: package{importflash.display.Bitmap;importflash.display.Loader;importflash.display.Sprite;importflash.events.Event;importflash.filters.BlurFilter;importflash.net.URLRequest;importflash.filters.BitmapFilterQuality;publicclassMainextendsSprite{privatevar_bitmap:Bitmap;privatevar_circleMask:Sprite;publi 阅读全文
posted @ 2012-07-13 17:33 王翔(kingfly) 阅读(6718) 评论(0) 推荐(0) 编辑
摘要: package{importflash.display.Sprite;publicclassMainextendsSprite{publicfunctionMain():void{init();}privatefunctioninit():void{varfoo:String="<websites>"+"<sitename='Kingdablog'url='http://www.kingda.org'>"+"<pageview>100000</pageview>&q 阅读全文
posted @ 2012-07-13 11:01 王翔(kingfly) 阅读(593) 评论(0) 推荐(0) 编辑
摘要: package{ import com.ui.Ball; import flash.display.Sprite; import flash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.Event; import flash.events.MouseEvent; import flash.geom.Rectangle; public class Main extends Sprite { private var ball:Ball; private var ball2:Ball... 阅读全文
posted @ 2012-07-11 16:10 王翔(kingfly) 阅读(276) 评论(0) 推荐(0) 编辑
摘要: package{importcom.ui.Ball;importflash.display.Sprite;importflash.display.StageAlign;importflash.display.StageScaleMode;importflash.events.Event;importflash.events.MouseEvent;importflash.geom.Rectangle;publicclassMainextendsSprite{privatevarball:Ball;privatevarvx:Number;//x轴运动向量privatevarvy:Number;// 阅读全文
posted @ 2012-07-11 14:25 王翔(kingfly) 阅读(719) 评论(0) 推荐(0) 编辑
摘要: package{importcom.ui.Ball;importcom.ui.Ship;importflash.display.Sprite;importflash.events.MouseEvent;publicclassMainextendsSprite{privatevarball:Ball;publicfunctionMain():void{init();}privatefunctioninit():void{ball=newBall();ball.x=100;ball.y=100;this.addChild(ball);ball.addEventListener(MouseEvent 阅读全文
posted @ 2012-07-11 10:39 王翔(kingfly) 阅读(2582) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 22 下一页