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
}
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.