|
-
I would create a function to Disable all buttons then call that function from your clicked function.
function disableButtons():void{
aa1.removeEventListener(MouseEvent.CLICK, ona1Click);
bb1.removeEventListener(MouseEvent.CLICK, onb1Click);
cc1.removeEventListener(MouseEvent.CLICK, onc1Click);
//or as steven FN said, you can use the .mouseEnabled method
}
funtion onb1Click(e:MouseEvent):void{
//all of your other code
disableButtons();
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|