Weird SWFObject sizing issue in Firefox
I just ran into a weird SWFObject error on Firefox 3 on OS X. Basically, the app was not getting stage.stageWidth
and stage.stageHeight
set correctly when it loaded (it was getting 0 for both).
I saw what I believe is a related issue on the SWFObject issue tracker and the workaround suggested by Bobby there (to force a refresh on the loadEvent) works but causes an unsightly refresh on the movie.
The workaround I implemented was to pass in the actual width and height of movie via FlashVars. The movie uses these instead of stage.stageWidth
and stage.stageHeight
.
Finally, to clarify, this issue does not occur on Safari or when using the embed code generated by the Flash IDE.
Comments
by bobby on 2009-01-27 12:43:51
by Flex Monkey Patches » Blog Archive » Rubbernecker’s Review - Week 25 on 2009-01-27 17:45:46
by bedava sitem on 2009-01-28 17:27:36
by bobby on 2009-01-26 17:09:29
by creacog on 2009-01-26 19:49:32
by Kelvin Luck on 2009-01-26 20:29:57
by Jeff on 2009-01-27 18:21:59
by seb on 2009-01-28 15:10:01
by localToGlobal » Blog Archive » news review -> 5th week of 2009 on 2009-01-30 21:14:28
by koko on 2009-11-30 05:03:02