I have a swf file created by EasyPano travel software. outpout is a swf file with some .bin files for setting up swf and other files like .jpg, .js, etc. The software creates an html file to add swf, but I need to load swf using flash and AS3. HTML and JavaScript generated by the software:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Mahan</title> </head> <body leftMargin="0" topMargin="0" rightMargin="0" bottomMargin="0"> <script type="text/javascript" src="swfobject.js"></script> <div id="flashcontent"> To view virtual tour properly, Flash Player 9.0.28 or later version is needed. Please download the latest version of <a href="http://www.adobe.com/go/getflashplayer" target="_blank">Flash Player</a> and install it on your computer. </div> <script type="text/javascript"> // <![CDATA[ var so = new SWFObject("twviewer.swf", "sotester", "100%", "100%", "9.0.0", "#000000"); so.addParam("allowNetworking", "all"); so.addParam("allowScriptAccess", "always"); so.addParam("allowFullScreen", "true"); so.addParam("scale", "noscale"); //<!-%% Share Mode %%-> so.addVariable("lwImg", "resources/talarmahan_1_firstpage.jpg"); so.addVariable("lwBgColor", "255,255,255,255"); so.addVariable("lwBarBgColor", "255,232,232,232"); so.addVariable("lwBarColor", "255,153,102,153"); so.addVariable("lwBarBounds", "-156,172,304,8"); so.addVariable("lwlocation", "4"); so.addVariable("lwShowLoadingPercent", "false"); so.addVariable("lwTextColor", "255,0,0,204"); so.addVariable("iniFile", "config_TalarMahan.bin"); so.addVariable("progressType", "0"); so.addVariable("swfFile", ""); so.addVariable("href", location.href); so.write("flashcontent"); // ]]> </script> </body> </html>
Please help me!
thanks