Actionscript 3 将AS3转换为AS2
我有这个问题。有一个横幅,这是代码与AS3,我们的系统只显示横幅到Flash播放器9。但是Flash Player 9不支持AS3。那么,有没有一种简单易行的方法呢?或者我必须在AS2上重写它?这是代码Actionscript 3 将AS3转换为AS2,actionscript-3,actionscript-2,Actionscript 3,Actionscript 2,我有这个问题。有一个横幅,这是代码与AS3,我们的系统只显示横幅到Flash播放器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.SoundM
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);
}
}
您需要使用AS2 FLV播放组件。您应该从一个全新的AS2 fla开始,并开始复制除组件以外的所有内容。Flash Player 9支持AS3。但是AS2通常是横幅广告的要求,因为一些弹出窗口拦截器会阻止AS3的navigateToURL(请求“_blank”)。好的。怎么做。当我从Flash中选择位于Flash player 9的横幅时,它表示警告:此电影使用的功能在Flash 9 player场景=场景1、层=层16、帧=2中不受支持:组件“fl.video.FLVPlayback”需要Flash player 10或更高版本。VerifyError:错误#1053:fl.video.DynamicStream中播放2的非法覆盖。