Tail on flash game graphic when using ng-include, no tail on graphic without

自作多情 提交于 2019-12-25 03:57:37

问题


I just embedded a flash game on my website (angular/node/express) using http://ngmodules.org/modules/angularjs-media like this:

<div class="container hero-unit">
  <flash width="400" height="300" src="files/avoider.swf"></flash>
</div>

The thing is, I have a navigation bar that I want to include in the same partial with ng-include like this:

<div ng-include="'partials/navbar'"></div>

<div class="container hero-unit">
  <flash width="400" height="300" src="files/avoider.swf"></flash>
</div>

When I do so, however, instead of the graphics moving normally in the flash game, there is a constant repeating tail for the image. Meaning, when the image moves - a copy of the image is left behind in the last location - so it looks like a really long tail. I know that ng-include is causing this problem, but I don't know why...any help would be greatly appreciated - thanks.

UPDATE

The tail only happens in chrome, it works normally in firefox.


回答1:


This line was causing the problem:

'<param name="wmode" value="transparent" />'

It was in the angularjs-media directive file where the html for the <object> tag is created - chrome don't like it. It makes the flash window transparent.



来源:https://stackoverflow.com/questions/23703865/tail-on-flash-game-graphic-when-using-ng-include-no-tail-on-graphic-without

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!