Reputation:
I have 4 buttons on stage, 2 on top layer and 2 on the bottom layer. the top layer buttons overlaps the bottom buttons. The top buttons hide themselves when They are clicked (which works good) as I can see bottom buttons appear. The problem is buttons on the bottom layers are in active, even though there listeners have been setup just as for the top layer buttons?
I tried btn.enabled=true;
btn.mouseChildren =false;
and btn.buttonMode=true
for bottom buttons, even over rid the listeners twice but no help. Is it a Flash IDE problem ? I am new to Flash and ActionScript.
Upvotes: 0
Views: 185
Reputation: 629
Looks like the common invisible overlapping issue. Have you set the .alpha = 0;
for the top buttons when they are clicked ?
if yes, then that's the problem. Change that to .visible=false;
.
try that!
Upvotes: 2
Reputation: 13
Try to Trace every action of your button, then find is the click listener is active or not..
Upvotes: 0