Archive

Posts Tagged ‘3D’

Crash Alert: flash10 wmode “transparent” can crash FF3 & IE7

March 5th, 2009
Get Adobe Flash player

I ran into a bug yesterday for flash 10 swf files that really had me scratching my head.  I narrowed the bug down to the following: filters applied at runtime to a SimpleButton that has been moved in 3D will crash the browser if embedded into html with wmode tranparent.  I guess it sounds really specific, but I think it’s pretty likely someone else will run into this soon if they haven’t already.   Download the example.

In the example, If you run cs4crashtest.html in firefox3 or IE7, and you move the mouse over the flash icon, cs4crashtest.html will crash (I haven’t tested other browsers).

The workaround I used for this example was to apply the filter to the over state of the SimpleButton class (btn.overState.filters). See cs4crashfix.html in the example.

Of course, if set wmode to something other than transparent, you won’t experience these issues.  You can also apply filters using the Flash CS4 IDE instead of using code, this seems to cause no problems.  Hope this helps someone avoid some debugging time.

admin Actionscript 3.0, Flash CS4 , , , , ,