大约有 197 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0040 秒)
...flash.display.StageScaleMode; import flash.events.Event; public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); this.stage.s...
来源: Laya_社区 发布时间: 20151106
...t laya.display.Text; import laya.utils.Handler; public class GraphicCircle extends Sprite { private var mFontName:String="dataFont"; private var mBitmap:BitmapFont; public function GraphicCircle() { super(); Laya.init(550,400); mBitmap=new BitmapFont(); mBitmap.loadFont("date/data.fnt",new Handler(t...
来源: Laya_社区 发布时间: 20161116
...没必要无限循环检查继承关系,开发者只能是采用注释加extends Laya.script这个关键字来解决了。 当前的版本,请先用你自己证实的注释+继承脚本的方式,显示出来吧。 2021-10-18 0 6 分享 微博 QZONE 微信 柠檬_酸 赞同来自: 你的dem...
来源: Laya_社区 发布时间: 20211015
...TextField; import flash.text.TextFieldAutoSize; public class Shake_A_Shake extends Sprite { private var acc1:Accelerometer; private var oldAccX:Number; private var oldAccY:Number; private var oldAccZ:Number; private var sum:Number; private var txt:TextField; public function Shake_A_Shake() { this.ad...
来源: Laya_社区 发布时间: 20160110
...be an Object or null: undefined at setPrototypeOf (<anonymous>) at __extends (file:///C:/Users/Administrator/Documents/Game3/bin/js/UIModule.js:6:9) at file:///C:/Users/Administrator/Documents/Game3/bin/js/LoadingModule.js:17:5 at file:///C:/Users/Administrator/Documents/Game3/bin/js/LoadingMo...
来源: Laya_社区 发布时间: 20170921
...e.components.Box; import morn.core.handlers.Handler; public class ListView extends ListViewUI { public function ListView() { super(); var arr:Array=[]; for(var i:int=0;i<95;i++) { arr.push({icon:i,label:"Index"+i}); } boxList.array=arr; boxList.mouseHandler=new Handler(listRender); } private func...
来源: Laya_社区 发布时间: 20151224
... import BaseTexture = Laya.BaseTexture; export default class Test1Material extends BaseMaterial { public readonly MAIN_TEX:number = Shader3D.propertyNameToID("u_MainTex"); public readonly NOISE_TEX:number = Shader3D.propertyNameToID("u_NoiseTex"); public readonly Time:number = Shader3D.propertyNameT...
来源: Laya_社区 发布时间: 20190923
...ndler; import ui.TestDialogUI; import ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var _path2:Sprite = new Sprite(); private var arr:Array = ; private var arr2:Array = ; ...
来源: Laya_社区 发布时间: 20171129
...llen 赞同来自: import Sprite = Laya.Sprite export default class Test extends Sprite{ public DEF_SIZE: number = 200 public CIRCLE_WIDTH: number = 20 public $circleSprite: Sprite = new Sprite() public startY: number = -90 constructor() { super() this._init() } private _init() { this.cacheAs = "b...
来源: Laya_社区 发布时间: 20180123
...rt laya.display.Sprite; import laya.maths.Rectangle; public class CdSprite extends Sprite { public static const START:int = -90; public static const COLOR:String = "#000000"; private var r:Number = BarCell.WID / Math.SQRT2; private var rect:Rectangle = new Rectangle(0,0,BarCell.WID,BarCell.WID); pri...
来源: Laya_社区 发布时间: 20171124