[]swf在layaairts里播放的问题,播放不了,swf在群文件star.swf
官方文档的例子试了不行
// 程序入口
module laya {
import Loader = Laya.Loader;
import Handler = Laya.Handler;
export class Loader_MultipleType {
private ROBOT_DATA_PATH: string = "res/swf/star.swf";
private ROBOT_DATA_PATHS: string = "res/swf/star.json";
private ROBOT_TEXTURE_PATH: string = "res/swf/star.png";
constructor() {
// Laya.init(800, 600);
// Laya.loader.load([{"url":"res/swf/star.swf","type":Laya.Loader.BUFFER}],Laya.Handler.create(this,this.onloadswf));
let loader:Laya.Loader = new Laya.Loader();
let context:Laya.Context = new Laya.Context();
}
private onloadswf():void
{
// console.log("ssss");
// let mc:Laya.MovieClip = Laya.loader.getRes("res/swf/star.swf");
// Laya.stage.addChild(mc);
}
}
}
new laya.Loader_MultipleType();
// 程序入口
module laya {
import Loader = Laya.Loader;
import Handler = Laya.Handler;
export class Loader_MultipleType {
private ROBOT_DATA_PATH: string = "res/swf/star.swf";
private ROBOT_DATA_PATHS: string = "res/swf/star.json";
private ROBOT_TEXTURE_PATH: string = "res/swf/star.png";
constructor() {
// Laya.init(800, 600);
// Laya.loader.load([{"url":"res/swf/star.swf","type":Laya.Loader.BUFFER}],Laya.Handler.create(this,this.onloadswf));
let loader:Laya.Loader = new Laya.Loader();
let context:Laya.Context = new Laya.Context();
}
private onloadswf():void
{
// console.log("ssss");
// let mc:Laya.MovieClip = Laya.loader.getRes("res/swf/star.swf");
// Laya.stage.addChild(mc);
}
}
}
new laya.Loader_MultipleType();
没有找到相关结果
已邀请:
要回复问题请先登录
11 个回复
qian
赞同来自:
还有laya项目
taofljf
赞同来自:
qian
赞同来自:
http://ldc.layabox.com/doc/?nav=zh-ts-1-5-4
你看着文档重新操作一遍
taofljf
赞同来自:
qian
赞同来自:
你看一下是这样的么
taofljf
赞同来自:
taofljf
赞同来自:
taofljf
赞同来自:
taofljf
赞同来自:
qian
赞同来自:
taofljf
赞同来自: