Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Digital Lifestyle
Web Design and Hosting
flash cannot load on local host
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="limazita" data-source="post: 817678" data-attributes="member: 91023"><p>Hi,</p><p></p><p>I am trying to use the localhost server on my macbook for website development (instead of doing testing by ftp). I downloaded the files from my webserver to the Site folder on my macbook. The Apache is running. My site is flash and make use of the SWFAddress class. The AC_RunActiveContent.js file is in the same folder as the index.html file. When I try to open the page <a href="http://localhost/~USERNAME/mysite" target="_blank">http://localhost/~USERNAME/mysite</a> in firefox, the title and favicon loaded properly, but the embedded flash could not be displayed. However, the same set of files works alright on the remote web server. </p><p></p><p>I thought it might be problem with the directory and I have tried ./swf/home.swf, swf/home.swf, /swf/home.swf in the index.html file but none work.</p><p></p><p>What may be the problem?</p><p></p><p>The directory structure is as follows :</p><p></p><p>mysite</p><p> --index.html</p><p> --AC_RunActiveContent.js</p><p> --swf (folder)</p><p> ----home.swf</p><p></p><p>[code]<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"></p><p><head></p><p><link rel="icon" href="favicon.ico"/></p><p><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></p><p><title>Photography</title></p><p><script language="javascript">AC_FL_RunContent = 0;</script></p><p><script src="AC_RunActiveContent.js" language="javascript"></script></p><p></head></p><p><body bgcolor="#ffffff"></p><p><p align = "center"></p><p><!--url's used in the movie--></p><p><!--text used in the movie--></p><p><!--</p><p>PHOTOGRAPHY</p><p>--></p><p><!-- saved from url=(0013)about:internet --></p><p><script language="javascript"></p><p> if (AC_FL_RunContent == 0) {</p><p> alert("This page requires AC_RunActiveContent.js.");</p><p> } else {</p><p> AC_FL_RunContent(</p><p> 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',</p><p> 'width', '1000',</p><p> 'height', '700',</p><p> 'src', 'swf/home',</p><p> 'quality', 'high',</p><p> 'pluginspage', 'http://www.macromedia.com/go/getflashplayer',</p><p> 'align', 'middle',</p><p> 'play', 'true',</p><p> 'loop', 'true',</p><p> 'scale', 'showall',</p><p> 'wmode', 'window',</p><p> 'devicefont', 'false',</p><p> 'id', 'swf/home',</p><p> 'bgcolor', '#ffffff',</p><p> 'name', 'swf/home',</p><p> 'menu', 'true',</p><p> 'allowFullScreen', 'false',</p><p> 'allowScriptAccess','sameDomain',</p><p> 'movie', '../swf/home',</p><p> 'salign', ''</p><p> ); //end AC code</p><p> }</p><p></script></p><p><noscript></p><p> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="1000" height="700" id="swf/home" align="middle"></p><p> <param name="allowScriptAccess" value="sameDomain" /></p><p> <param name="allowFullScreen" value="false" /></p><p> <param name="movie" value="/swf/home.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> </p><p> <embed src="/swf/home.swf" quality="high" bgcolor="#ffffff" width="1000" height="700" name="swf/home" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></p><p> </object></p><p></noscript></p><p></p></p><p></p></p><p></body></p><p></html>[/code]</p><p></p><p>Thanks a lot for taking a look</p></blockquote><p></p>
[QUOTE="limazita, post: 817678, member: 91023"] Hi, I am trying to use the localhost server on my macbook for website development (instead of doing testing by ftp). I downloaded the files from my webserver to the Site folder on my macbook. The Apache is running. My site is flash and make use of the SWFAddress class. The AC_RunActiveContent.js file is in the same folder as the index.html file. When I try to open the page [url]http://localhost/~USERNAME/mysite[/url] in firefox, the title and favicon loaded properly, but the embedded flash could not be displayed. However, the same set of files works alright on the remote web server. I thought it might be problem with the directory and I have tried ./swf/home.swf, swf/home.swf, /swf/home.swf in the index.html file but none work. What may be the problem? The directory structure is as follows : mysite --index.html --AC_RunActiveContent.js --swf (folder) ----home.swf [code]<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <link rel="icon" href="favicon.ico"/> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Photography</title> <script language="javascript">AC_FL_RunContent = 0;</script> <script src="AC_RunActiveContent.js" language="javascript"></script> </head> <body bgcolor="#ffffff"> <p align = "center"> <!--url's used in the movie--> <!--text used in the movie--> <!-- PHOTOGRAPHY --> <!-- saved from url=(0013)about:internet --> <script language="javascript"> if (AC_FL_RunContent == 0) { alert("This page requires AC_RunActiveContent.js."); } else { AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0', 'width', '1000', 'height', '700', 'src', 'swf/home', 'quality', 'high', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'align', 'middle', 'play', 'true', 'loop', 'true', 'scale', 'showall', 'wmode', 'window', 'devicefont', 'false', 'id', 'swf/home', 'bgcolor', '#ffffff', 'name', 'swf/home', 'menu', 'true', 'allowFullScreen', 'false', 'allowScriptAccess','sameDomain', 'movie', '../swf/home', 'salign', '' ); //end AC code } </script> <noscript> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="1000" height="700" id="swf/home" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="movie" value="/swf/home.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="/swf/home.swf" quality="high" bgcolor="#ffffff" width="1000" height="700" name="swf/home" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> </noscript> </p> </p> </body> </html>[/code] Thanks a lot for taking a look [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
Digital Lifestyle
Web Design and Hosting
flash cannot load on local host
Top