2011-01-29 36 views
1

如何在Mac上强制执行Flash的wmode =窗口?这种模式应该使Flash驻留在比普通HTML元素更高的层上,并且具有更好的性能。它在Windows上工作正常。在Mac上,有奇怪的结果。 Mac上的Chrome将允许HTML元素仅覆盖Flash中的非视频元素。另一方面,Mac上的Firefox会让HTML元素在Flash中覆盖任何内容。我不想允许任何 HTML元素在Mac上的Flash中覆盖任何内容在Mac上强制Flash wmode =窗口

我使用SWFObject来嵌入我的Flash。

swfobject.embedSWF(
    'flash/player_20110128.swf', 
    'flashPlayer', 
    '100%', 
    '100%', 
    '9', 
    'expressInstallSwfUrlTODO.swf', 
    {}, 
    { 
     allowfullscreen: true, 
     wmode: 'window' 
    }, 
    {}, 
    function(status) { 
     if (!status.success) { 
      alert('Failed to embed Flash player'); 
     } else { 
      alert('embedded'); 
     } 
    } 
); 

回答

0

给你试了wmode = direct?

“Direct”指示玩家完全绕过父网页浏览器 进行渲染。你可以比较一下 独立球员的表现与 多一点踢球。

它需要Flash Player 10及更高版本。

+0

我是否需要使用Flash 10或Flash 10进行查看?当我使用Flash Player 10进行查看时,使用Flash CS3(Flash 9)进行创作并设置wmode = direct时,仍然会遇到相同的分层问题。 – JoJo 2011-02-02 01:46:58