flash里面有的按钮点击是调用swf,有的按钮点击是进入网页,这里的str="网址"怎么不管用,必须是as3.0
varstr:Stringvarxx,yy:Number;//指定坐标位置varloader0:Loader=newLoader;addChildAt(loader0,0...
var str:String
var xx,yy:Number;//指定坐标位置
var loader0:Loader =new Loader;
addChildAt(loader0,0);
var url0:URLRequest=new URLRequest("shouya.swf");
loader0.load(url0);
btn1.addEventListener(MouseEvent.CLICK ,Onck1);
btn2.addEventListener(MouseEvent.CLICK ,Onck2);
btn3.addEventListener(MouseEvent.CLICK ,Onck3);
function Onck1(e) {
str="shouya.swf";
//xx=
//yy=
Onck();
}
function Onck2(e) {
str="comm.swf";
//xx=
//yy=
Onck();
}
function Onck3(e) {
str="网址";
//xx=
//yy=
Onck();
} 展开
var xx,yy:Number;//指定坐标位置
var loader0:Loader =new Loader;
addChildAt(loader0,0);
var url0:URLRequest=new URLRequest("shouya.swf");
loader0.load(url0);
btn1.addEventListener(MouseEvent.CLICK ,Onck1);
btn2.addEventListener(MouseEvent.CLICK ,Onck2);
btn3.addEventListener(MouseEvent.CLICK ,Onck3);
function Onck1(e) {
str="shouya.swf";
//xx=
//yy=
Onck();
}
function Onck2(e) {
str="comm.swf";
//xx=
//yy=
Onck();
}
function Onck3(e) {
str="网址";
//xx=
//yy=
Onck();
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询