2010-01-09 58 views
0

我正在嘗試爲Flash Player編寫播放列表。所以我有問題與Flash & firefox。播放列表是HTML列表,我擁有MP3文件網址。當我從firebug對象值改變時,firefox沒有反應 - 消失。Firefox和Flash從螢火蟲變爲

UPD:我有對象,我有參數,當我改變了其中的寫入文件路徑示例參數中,Firefox沒有反應過來時,Flash Player仍然使用其收到時頁面加載文件的路徑。

更新2:非常奇怪!當我換成螢火蟲的時候,沒關係。當我與jQuery相同的步驟,閃存給出了這樣的錯誤:You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialize correctly.

我的jQuery看起來是這樣的:

$('div.filefield-file a').click(function() { 
    $('object object').attr({data: "temp"}); 
    var newMusic = $(this)[0].href; 
    alert(newMusic); 
    var newFlashVars = "playerID=12646923621&autostart=no&loop=no&soundFile="+newMusic; 
    /*$('object object').attr({data: "temp"});*/ 
    $('object object param[name=flashvars]').attr('value',newFlashVars); 
    $('object object').attr({data: "http://spp/sites/all/modules/swftools/shared/1pixelout/player.swf"}); 
}); 
+0

你能澄清一點問題 - 可能與一些代碼? – Amarghosh 2010-01-09 06:51:58

+0

我有我有參數的對象,當我改變例如寫入文件路徑的參數時,firefox沒有反應,Flash播放器仍然使用頁面加載時收到的文件路徑。 – 2010-01-28 00:52:10

+0

您是否嘗試單獨重新載入Flash(在Firebug中,將'src'更改爲其他內容然後返回)? – 2010-01-28 01:21:52

回答

0

我把自定義的代碼,我現在使用的Flowplayer,它支持音頻,視頻和圖像。另外播放列表:)