Hello!
I have an arcade site that requires new games be uploaded in .swf format. I want to add another game that runs in a javascript applet. (nintendo emulator that runs in user browser, game file is server side)
The javascript that the .swf must display on the page is
CODE
<applet name="vNES" code="vNES.class" archive="/vnes/vnes.jar" width="512" height="480">
<param name="sound" value="on" />
<param name="timeemulation" value="on"/ >
<param name="fps" value="off" />
<param name="stereo" value="off" />
<param name="rom" value="kungfu.nes" />
<param name="showsoundbuffer" value="off" />
<param name="scale" value="on" />
<param name="scanlines" value="off" />
<param name="nicesound" value="on" />
<param name="romsize" value="24592" />
</applet>
I was told by someone that I can use document.write to enter my code to the page as the CMS creates it, but I'm failing miserably and just can't figure it out. I tried this as he suggested, but I get "parse error Invalid Expression"
CODE
var js:String = "java script:document.write(All_Of_Your_HTML);";
getURL(js);
Can anyone please point me in the right direction? I've been pulling my hair out for over a week trying to get this to work. Any help will be greatly appreciated!!!