Hey all. I've recently run into an issue with Adobe Flash Professional using Actionscript3 to navigate to separate pages on my personal webpage. I believe I have the coding correct because when I open it locally in my browser, the links all work perfectly fine and navigate to the appropriate location on my hosting service. However, when I uploaded the files to my file manager, the links suddenly stopped working...
The link I am currently trying to get to work completely is the web design page.
Here is the code for what I have and a link to the webpage. Webpage link: Justin Widener - Projects
<div id="main-content">
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="450" allowScriptAccess="always">
<param name="movie" value="http://justinwidener.x10.mx/assets/projectsani.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="11.0.0.0" />
<param name="allowScriptAccess" value="always">
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="assets/projectsani.swf" width="800" height="450" allowScriptAccess="always">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="11.0.0.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<param name="allowScriptAccess" value="always">
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
Here is a copy of the Actionscript coding that I am using with my SWF file.
photo.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_5);
function fl_ClickToGoToWebPage_5(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://justinwidener.x10.mx/photo.html"), "_blank");
}
web.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_6);
function fl_ClickToGoToWebPage_6(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://justinwidener.x10.mx/web.html"), "_blank");
}
model.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_7);
function fl_ClickToGoToWebPage_7(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://justinwidener.x10.mx/model.html"), "_blank");
}
video.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_8);
function fl_ClickToGoToWebPage_8(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://justinwidener.x10.mx/video.html"), "_blank");
}
All of the links work correctly when I open the files locally but stop working when they are hosted. Is there a reason for this?