| Package | com.pcthomatos.swfseo.swfResources |
| Class | public class SWFSEONavBtnEvent |
import com.pcthomatos.swfseo.swfResources.SWFSEONavBtnEvent;
// ###################################################################
// below is the standard way to activate all the mouse state listeners
addEventListener(SWFSEONavBtnEvent.BTN_READY, setParentListeners_Listener);
function setParentListeners_Listener(e:Event):void{
removeEventListener(SWFSEONavBtnEvent.BTN_READY, setParentListeners_Listener);
addEventListener(SWFSEONavBtnEvent.BTN_ON, btnOn_Listener);
addEventListener(SWFSEONavBtnEvent.BTN_OFF, btnOff_Listener);
addEventListener(SWFSEONavBtnEvent.BTN_OVER, btnOver_Listener);
addEventListener(SWFSEONavBtnEvent.BTN_OUT, btnOut_Listener);
setButtonText();
gotoAndPlay("mouseoff");
}
function setButtonText():void{
var buttonText:String = (parent as Object).btnText;
var navText:TextField = new TextField();
navText.autoSize = TextFieldAutoSize.CENTER;
navText.defaultTextFormat = new TextFormat("Helvetica", 35);
navText.text = buttonText;
navText.embedFonts = true;
navText.mouseEnabled = false;
addChild(navText);
}
function btnOn_Listener(e:MouseEvent):void{
gotoAndStop("mouseon");
e.updateAfterEvent();
}
function btnOff_Listener(e:MouseEvent):void{
gotoAndPlay("mouseoff");
e.updateAfterEvent();
}
function btnOver_Listener(e:MouseEvent):void{
gotoAndPlay("mouseovr");
e.updateAfterEvent();
}
function btnOut_Listener(e:MouseEvent):void{
gotoAndPlay("mouseoff");
e.updateAfterEvent();
}
stop();
| Constant | Defined by | ||
|---|---|---|---|
| BTN_OFF : String = "navBtnOff" [static] The
SWFSEONavBtnEvent.BTN_OFF constant defines the value of the type property of the event object for a navBtnOff event.Once this Event is dispatched you can display the off state in your navigation button swf. | SWFSEONavBtnEvent | ||
| BTN_ON : String = "navBtnOn" [static] The
SWFSEONavBtnEvent.BTN_ON constant defines the value of the type property of the event object for a navBtnOn event.Once this Event is dispatched you can display the on state in your navigation button swf. | SWFSEONavBtnEvent | ||
| BTN_OUT : String = "navBtnOut" [static] The
SWFSEONavBtnEvent.BTN_OUT constant defines the value of the type property of the event object for a navBtnOut event.Once this Event is dispatched you can display the off state in your navigation button swf. | SWFSEONavBtnEvent | ||
| BTN_OVER : String = "navBtnOver" [static] The
SWFSEONavBtnEvent.BTN_OVER constant defines the value of the type property of the event object for a navBtnOver event.Once this Event is dispatched you can display the over state in your navigation button swf. | SWFSEONavBtnEvent | ||
| BTN_READY : String = "navBtnReady" [static] The
SWFSEONavBtnEvent.BTN_READY constant defines the value of the type property of the event object for a navBtnReady event.Once this Event is dispatched your navigation button swf can:
| SWFSEONavBtnEvent | ||
| BTN_OFF | constant |
public static const BTN_OFF:String = "navBtnOff" The SWFSEONavBtnEvent.BTN_OFF constant defines the value of the type property of the event object for a navBtnOff event.
Once this Event is dispatched you can display the off state in your navigation button swf.
See also
| BTN_ON | constant |
public static const BTN_ON:String = "navBtnOn" The SWFSEONavBtnEvent.BTN_ON constant defines the value of the type property of the event object for a navBtnOn event.
Once this Event is dispatched you can display the on state in your navigation button swf.
See also
| BTN_OUT | constant |
public static const BTN_OUT:String = "navBtnOut" The SWFSEONavBtnEvent.BTN_OUT constant defines the value of the type property of the event object for a navBtnOut event.
Once this Event is dispatched you can display the off state in your navigation button swf.
See also
| BTN_OVER | constant |
public static const BTN_OVER:String = "navBtnOver" The SWFSEONavBtnEvent.BTN_OVER constant defines the value of the type property of the event object for a navBtnOver event.
Once this Event is dispatched you can display the over state in your navigation button swf.
See also
| BTN_READY | constant |
public static const BTN_READY:String = "navBtnReady" The SWFSEONavBtnEvent.BTN_READY constant defines the value of the type property of the event object for a navBtnReady event.
Once this Event is dispatched your navigation button swf can:
btnText property which contains the button text included in the <ol><li> tag on the html page relevant to this navigation button swf.See also