Dynamically sizing flash object in Safari

I have a weird problem with Safari 5.0 and Flash player 10.1…

When I resize the flash html object via ExternalInterface and JavaScript flash will jump down the page a little bit for a fraction of a second.

Here is an example:

http://www.benmcmaster.com/test/testSafari/

This may not be a flash question at all. It may be a CSS or JavaScript problem. I just wanted to see if anyone else has seen this. It seems to only be a problem with Safari 5 and Flash 10.1.

You can view the source of the html page. Here is the code inside the sample FLA:

one.addEventListener(MouseEvent.CLICK, oneClick);
one.buttonMode = true;
two.addEventListener(MouseEvent.CLICK, twoClick);
two.buttonMode = true;

this.addEventListener(Event.ADDED_TO_STAGE, addedToStage);

function oneClick(e)
{
ExternalInterface.call(“changeDivHeight”, 2000);
}

function twoClick(e)
{
ExternalInterface.call(“changeDivHeight”, 2500);
}

Thank you!!!


Ben McMaster
http://www.benmcmaster.com