disabilty of a button?
I have a button I want to diable clickabilty to but i still want it there how do i do this? It doesn;t matter which button you choose I just want an example? Please..... Help
import flash.net.URLRequest;
import flash.events.MouseEvent;
var homeURL:URLRequest = new URLRequest("home.html");
var wrappingURL:URLRequest = new URLRequest("wrapping.html");
var choppingURL:URLRequest = new URLRequest("chopping.html");
var tillageURL:URLRequest = new URLRequest("tillage.html");
var rakingURL:URLRequest = new URLRequest("raking.html");
var contactURL:URLRequest = new URLRequest("contact.html");
function homeURLDown(event:MouseEvent):void
{
navigateToURL(homeURL, "_self");
}
function wrappingURLDown(event:MouseEvent):void
{
navigateToURL(wrappingURL, "_self");
}
function choppingURLDown(event:MouseEvent):void
{
navigateToURL(choppingURL, "_self");
}
function tillageURLDown(event:MouseEvent):void
{
navigateToURL(tillageURL, "_self");
}
function rakingURLDown(event:MouseEvent):void
{
navigateToURL(rakingURL, "_self");
}
function contactURLDown(event:MouseEvent):void
{
navigateToURL(contactURL, "_self");
}
home_btn.addEventListener(MouseEvent.CLICK, homeURLDown);
wrapping_btn.addEventListener(MouseEvent.CLICK, wrappingURLDown);
chopping_btn.addEventListener(MouseEvent.CLICK, choppingURLDown);
tillage_btn.addEventListener(MouseEvent.CLICK, tillageURLDown);
raking_btn.addEventListener(MouseEvent.CLICK, rakingURLDown);
contact_btn.addEventListener(MouseEvent.CLICK, contactURLDown);