Another Question... but not the last :)

hi guys, :skull:
there are 4 buttonts in the _root and… it’s name as btn_0 through btn_3

_global.maxbtn = 4; 
function t() { 
   for (var p=0;p<_global.maxbtn;p++) { 
      _level0["btn_"+p].enabled = true; 
   } 
} 
function f() { 
   t(); 
   this.enabled = false; 
} 
for (var i=0;i<_global.maxbtn;i++) { 
   _level0["btn_"+i].onRelease = f; 
} 

what does this function do in buttons… :hangover:

Hi there,

function t() is just a dummy for init() means it makes all buttons enabled - so you can click on it

function f() is to make a single button disable, the way he do it is to enabled all button first (called function t()) then disable the one you just press (oops, release I mean).

Hope this make sense.

John

hi JGizmo …
many thanx for your quick replay…:love: