« Back to slideshowpro.net
SlideShowPro Help Wiki
Recent changes / Search

SlideShowPro for Flash

SlideShowPro for Lightroom

SlideShowPro Director

SlideShowPro Director Hosting

SlideShowPro ThumbGrid

Extras

Screencasts

SlideShowPro for Flash
removeEventListener()
Page last modified by tdominey on October 08, 2008, at 02:48 PM

Usage

slideShowProInstance.removeEventListener(event:String, listener:Object);
slideShowProInstance.removeEventListener(event:String, listener:Function);

Parameters

event A string that specifies the name of the event for which you are removing a listener.

listener A reference to the listener object or function that you are removing.

Returns

Nothing.

Description

Method; removes an event listener from a component instance.

Example

This example removes the onLoadXML event listener after it has been successfully called.

listenerObject = new Object();
listenerObject.onLoadXML = function(eventObject):Void {
	if (eventObject.data == true) {
		trace("XML file loaded!");
		my_ssp.removeEventListener("onLoadXML", listenerObject);
	}
}
my_ssp.addEventListener("onLoadXML", listenerObject);


© 2008 Dominey Design Inc. All Rights Reserved.
About | Contact | Privacy policy | License agreements