Linking Flash Navigation Bar to Local HTML Pages
Hey everybody. I've searched high and low for a solution to my problem, but I've found absolutely nothing that works. First of all, I am building a site for a client and I have the majority of the elements needed in place (css template, navigation bar swf, a few html pages, etc.) but I have not yet uploaded the site.
My issue is, I have not been able to link my flash navigation bar to any of my local html pages. The published swf will work and link correctly (when tested within Flash), but when implemented into my html page (via DreamWeaver) it won't respond to the links at all. Perhaps the links won't be active until the site is uploaded or something? I'm not sure... which is why I'm here.
Here's a segment of the code I've already written:
Code:
home_mc.addEventListener(MouseEvent.CLICK, hClick);
function hClick(event:MouseEvent):void{
var homeLink:URLRequest = new URLRequest("home.html");
navigateToURL(homeLink, "_self");
}
Also, I have the Flash file and published swf in the same folder as the html pages.
Can anyone offer me assistance? It would be much appreciated.