I have two button, depending on when clicked a box will appear over the top, i have made the box hidden using
JezMain_mc.alpha = 0;
However with it over the top, even though it is invisible, i cannot click the buttons below it. I need a piece of code that will disable it from interacting with the rest of the button and anything below it, until it appears on top. This is the code section i am currently using.
an alpha property of 0 makes that movieclip not seen, but it is still 'physically' there, think of it as being just so faint that you can not see it. but it is 'still there'. Therefore, it will 'block' any interactivity below it.
on the other hand, the property of visible keeps the object still on the stage/diplay list, but removes it from blocking interaction below its depth. in effect, it is 'no longer there'
one way to deal with this is to set the movieclips' properties also to 'visible-false', and then turn their visibilities back on before tweening their alphas back to full opacity ( alpha=1).
try this in the code( see/add the lines in bold). also, remember to add a semicolon at the end of each statement ( see the italicized lines below, where youomitted the semicolons in your original code. this helps to define the end of a statement).