Hi,

I've made a flash movie that is supposed to make the window shake when it reaches a frame with this action on it:

Code:
GetURL ("javascript:shake_x(1)", "_parent")
(the swf is in an iframe and the javascript below is in the page that the iframe is in)

It works fine in IE, but in FF it makes the window switch from maximize to restore. If the window isn't maximized then it just doesn't do anything. Here is the javascript.

Code:
<SCRIPT LANGUAGE="JavaScript1.2">
    function shake_xy(n) {
    if (self.moveBy) {
        for (i = 2; i > 0; i--) {
            for (j = n; j > 0; j--) {
            self.moveBy(0,i);
            self.moveBy(i,0);
            self.moveBy(0,-i);
            self.moveBy(-i,0);
            }
          }
       }
    }
    function shake_x(n) {
    if (self.moveBy) {
        for (i = 2; i > 0; i--) {
            for (j = n; j > 0; j--) {
            self.moveBy(i,0);
            self.moveBy(-i,0);
            }
          }
       }
    }
    function shake_y(n) {
    if (self.moveBy) {
        for (i = 2; i > 0; i--) {
            for (j = n; j > 0; j--) {
            self.moveBy(0,i);
            self.moveBy(0,-i);
            }
          }
       }
    }
    //-->
    </SCRIPT>
Anyone know what the problem might be?

Thanks, Matt