我有这个问题。有一个代码与AS3的横幅,我们的系统只显示Flash Player 9的横幅。但Flash Player 9不支持AS3。那么有没有办法在简单的方法上做到这一点?或者我必须在AS2上重写它?这是代码。
import flash.events.Event;
import flash.net.URLRequest;
import flash.events.MouseEvent;
import flash.media.SoundTransform;
import flash.media.SoundMixer;
cierre.gotoAndStop(1);
SoundMixer.soundTransform = new SoundTransform(0);
video_player.autoPlay = true;
video_player.source = "video_500x374.f4v";
video_player.addEventListener(Event.COMPLETE, finVideo);
stop();
b2_btn.buttonMode = true;
buttonclose.addEventListener(MouseEvent.CLICK,buttoncl);
function buttoncl(e:Event):void{
video_player.stop();
this.gotoAndStop(1);
}
var paramList:Object = this.root.loaderInfo.parameters;
b2_btn.addEventListener(MouseEvent.CLICK, openURL);
function openURL(evtObj:MouseEvent):void {
var request:URLRequest = new URLRequest(paramList["clickTag"]);
navigateToURL(request, "_blank");
}
function aBanner1(e:Event):void{
video_player.stop();
this.gotoAndStop(1);
}
function finVideo(e:Event):void{
video_player.stop();
cierre.play();
}
function setMute(vol) {
var sTransform:SoundTransform = new SoundTransform (0,1);
sTransform.volume = vol;
SoundMixer.soundTransform = sTransform;
}
var Mute:Boolean = false;
mutebutton.addEventListener (MouseEvent.CLICK,toggleMuteBtn);
function toggleMuteBtn (event:Event) {
if(Mute) {
Mute = false;
setMute(0);
}else{
Mute = true;
setMute(1);
}
}
答案 0 :(得分:0)
您需要使用AS2 FLV播放组件。你应该从一个干净的新AS2 fla开始,并开始复制除组件之外的所有内容。