PDA

View Full Version : onenteframe - once



Alber Kidd
April 22nd, 2008, 05:23 PM
I want to call a single function on frame load that initialises a few settings but only once. Is there a way to call a function onenterframe, but only once?

Felixz
April 22nd, 2008, 06:00 PM
Just in haldler function remove that listener
function handler(event:Event):void {
event.currentTarget.removeEventListener(Event.ENTE R_FRAME,handler);
//more here
}