Tuesday, July 7, 2009

Transparent SWF

I was creating a .swf file player for my website. The player is used to prevent the annoying "autoplay" that tend to be difficult to stop. Some flash games are setup so there is no easy way to prevent this, hence your page opens up and plays the game soundtrack right away. Sorry I need to control that, even setting javascript control for the flash to param play="false" does not always work.

Anyway, the .swf file I created that plays .swf files when you click on the play button. The problem I had was that I set the player to
param wmode="transparent"
this caused games controlled by the arrow keys to scroll the browser at the same time. That makes it impossible to play the game.

Moral = If you load a swf into another swf that is transparent you may have issues with browser scrolling

No comments:

Post a Comment