PDA

View Full Version : swf menu buttons inop in browsers


Uglymonky
04-22-2008, 03:22 AM
Good Evening,
I need some assistance with my menu bar that work just fine in flash. I wrote the following code to navigate to different parts of my site. Yet once I preview them via dreamweaver, neither buttons work in any browser:

import flash.events.MouseEvent;
var geturl:URLRequest = new URLRequest("http://www.index.com");


H_btn.addEventListener(MouseEvent.CLICK, bClick);

function bClick(event:MouseEvent):void{
navigateToURL(geturl,"_self");
}

please assist.

amarghosh
04-22-2008, 04:52 AM
give a trace in bClick to see if the method is called or not.

Uglymonky
04-22-2008, 05:10 AM
Am sorry, I am very new to flash and especially to AS3. could you explain by what you mean by "trace". I know this is got to be real easy. It's such a common function cause I see it all over the web. Yet I can find a solution for the life of me. :mad:

amarghosh
04-22-2008, 05:13 AM
function bClick(event:MouseEvent):void
{
trace("reached bClick function");//this line would appear in the output window of flash
navigateToURL(geturl,"_self");
}