• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 4 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0027 秒)

1. 缓动动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 100%]

... * txt 缓动对象 */ function updateColor(txt){ var c = Math.floor(Math.random()*3); switch (c) { case 0: txt.color = "#eee000"; break; case 1: txt.color = "#ffffff"; break; case 2: txt.color = "#ff0000"; break; default: txt.color = "#eee000"; break; } } /** * 缓动完成后的回调方法 * txt ...

来源: Laya2.0_文档 发布时间: 20210715

2. 缓动动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 97%]

...*/ private updateColor(txt:Laya.Text):void{ var c:number = Math.floor(Math.random()*3); switch (c) { case 0: txt.color = "#eee000"; break; case 1: txt.color = "#ffffff"; break; case 2: txt.color = "#ff0000"; break; default: txt.color = "#eee000"; break; } } /** * 缓动完成后的回调方法 * txt...

来源: Laya2.0_文档 发布时间: 20210715

3. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 95%]

... window.onclick = function() { // Fill the buffer with white noise; //just random values between -1.0 and 1.0 for (var channel = 0; channel < channels; channel++) { // This gives us the actual ArrayBuffer that contains the data var nowBuffering = myArrayBuffer.getChannelData(channel); for (var i = 0...

来源: Laya2.0_文档 发布时间: 20210715

4. 缓动动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 85%]

...*/ private function updateColor(txt:Text):void { var c:int = parseInt(Math.random()*3); switch(c) { case 0: { txt.color="#EEE000"; break; } case 1: { txt.color="#FFFFFF"; break; } case 2: { txt.color="#FF0000"; break; } default: { txt.color="#EEE000"; break; } } } /** * 缓动完成后的回调方...

来源: Laya2.0_文档 发布时间: 20210715