Facebook Flash Apps and Firefox: bug and workaround

If you develop a flash iframe facebook application that records images / video from the user camera, you have serious problem on Firefox on mac OSX: you are unable to interact with the flash settings dialog box.

The bug is on the css “margin:0 auto;”; if you change the property, the user is able to interact with the flash dialog box and the app is able to record photos and video from the webcam.

Javascript fix (Query)

try {
	if ($.browser.mozilla) {
		$(window).resize(function () {
			$("#yourFlash").css('margin-left', window.outerWidth % 2 ? '0' : '0.5px')
		}).resize();
	}
} catch(ex) { }

Css fix

#flashmain { magin-left: 0.5px }

Leave a Reply

Your email address will not be published. Required fields are marked *