# Embed Flash into HTML Page

**URL:** https://forum.kirupa.com/t/embed-flash-into-html-page/226352
**Category:** flash
**Created:** [May 20, 2007, 5:37pm UTC](https://forum.kirupa.com/t/embed-flash-into-html-page/226352 "2007-05-20T17:37:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![steresa](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@steresa](https://forum.kirupa.com/u/steresa)
#### Post date: [May 20, 2007, 5:37pm UTC](https://forum.kirupa.com/t/embed-flash-into-html-page/226352/1 "2007-05-20T17:37:59Z")

</div>

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\>
