嗨 我有一個PHP頁面,Echo的 一些變量到一個視頻播放器SWF文件的Flash變數「vid_file_name」的Flash變數加載和播放flahvars搜索條問題
但由於某些原因,搜索條不會正常工作
當我硬編碼,到PHP頁面或FLA文件,它工作正常 但PHP頁面中迴盪時失敗
它似乎是一個編碼問題
我放在文本字段SW f文件和文件名顯示 而作爲「vid_file_name」前面所說的VAR導入和播放視頻 它只是當它涉及到搜索條 代碼:
import fl.video.*;
// Set Variables
var flvControl:FLVPlayback = auditionVid;
var flashVars = this.loaderInfo.parameters;
var flvSource:String = "http://www.mysite.co.uk/uploads/live/"+String(flashVars.vid_file_name);
var pageURL:String=ExternalInterface.call('window.document.location.toString');
var baseURL:String ="http://www.mysite.co.uk/";
var pageToGoTo:URLRequest;
gotoPageBtn.visible = false;
gotoPageBtn.addEventListener(MouseEvent.CLICK,pageHandler)
gotoPageBtn.buttonMode = true;
function pageHandler(evt:MouseEvent):void{
pageToGoTo = new URLRequest(baseURL+"audition.php?user_id="+flashVars.user_id+"&vid_id="+flashVars.vid_id+"&vid_file_name="+flashVars.vid_file_name);
navigateToURL(pageToGoTo, "_self");
} 如果(PAGEURL ==基本URL || pageURL.indexOf( 「co.uk/index.php」)> -1){ gotoPageBtn.visible =真 }
function readyHandler(event:VideoEvent):void
{
// flvControl.play() flvControl.autoPlay = false;
}
flvControl.addEventListener(VideoEvent.READY, readyHandler);
flvControl.source = flvSource;
flvControl.bufferTime = Number(10);
flvControl.playPauseButton = playpausebtn;
flvControl.muteButton = mutebtn;
flvControl.seekBar = mySeekBar;
任何一個人有什麼想法?