Quantcast
Channel: CODEISPOETRY » flash
Viewing all articles
Browse latest Browse all 8

Webcam Access unclickable

$
0
0

I just did a Facebook Webcam game and came across a nasty firefox bug. Sometimes the cam panel popping up is unclickable. (Firefox on Mac)

cam_access

The strange thing is:

  1. Works like a charm in Safari
  2. Works like a charm outside of Facebook

But I expierenced the problem on some pages outside FB aswell.

Here is the magic (once again thanks to Martin):

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

The problem is that your swf is displayed on HALF PIXELS. Just move the container in which you putted your swf and it should work like a charm.

Link where i stole this from


Viewing all articles
Browse latest Browse all 8

Latest Images

Trending Articles





Latest Images