Embed Flash into HTML Page

When I first began designing web sites in flash, I noticed that Internet Explorer and Firefox had problems reading the flash file that I inserted into my HTML page. A box would appear around the flash file and it would say “click here to activate this control”. I am sure you have ran into this problem. I found a solution to this here. I guess you had to use javascript to embed the flash file into the page so Internet Explorer and Firefox could understand it.

However, I am having another problem. I just finished designing a site in flash and I used the same method as I explained above to correct the flash problem. This time my flash file loades and stops at 98% and pauses for a few seconds and says “A script in the file Revised_Laout.swf is causing flash player 9 to run slowly, do you want to continue or abort”.

WHAT IS GOING ON! THIS FLASH FILE IS BIG BUT WHEN I INSERT FLASH INTO THE HTML PAGE WITH OUT USING THE WORK AROUND METHOD IT LOADS AND PLAYS FINE. CAN SOME ONE HELP? HERE IS THE JAVASCRIPT CODE I USE

<script type=“text/javascript” src=“flashobject.js”></script>

<div id=“MySite” style=“width: 860px; height: 650px”></div>

<script type=“text/javascript”>
var fo = new FlashObject(“MySite.swf”,“MySite”,“860”, “650”, “0”,"#333333");
fo.addParam(“allowScriptAccess”, “sameDomain”);
fo.addParam(“quality”, “high”);
fo.addParam(“scale”, “noscale”);
fo.addParam(“loop”, “false”);
fo.write(“MySite”);
</script></td></td>