View Single Post
Old 09-08-2012, 08:20 PM   PM User | #8
djpaul1963
New Coder

 
Join Date: Apr 2012
Location: Athens GR
Posts: 58
Thanks: 0
Thanked 6 Times in 6 Posts
djpaul1963 is an unknown quantity at this point
Post

No need to make it so complicated, sometimes the simpler is better.

var global_boolean:Bolean;

button1, button2... buttonN.addEventListener(MouseEvent.CLICK, onButtonClick);

function onButtonClick(e:MouseEvent):void
{
if (global_boolean) return;
global_boolean = true;
// bla bla bla do whatever you want bla bla bla //
}

Need explanation?
djpaul1963 is online now   Reply With Quote