2010-01-09 100 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,它支持音频,视频和图像。另外播放列表:)