how to make a button disappear if something is x frame?
so erm. i have no idea what an identifying thingymajiggy would be like when a button has this sorta code; "if certain symbol is in a certain frame, disappear" & "if certain symbol is NOT in a certain frame, reappear" because ideally if the button is pressed, it has to look a certain way when its released, so it will instead show the duplicate i placed behind it and thus be inaccessible until deactivated. (cuz you can only change a 'button' frame if its a movieclip i think....so its my solution)
here's the code for the button... "if" is unfinished coz idk what to put there... aaa is the thing that changes frame and eee is the button
Code:
on (press) {
_root.aaa1.gotoAndStop(2);
_root.aaa2.gotoAndStop(2);
_root.aaa3.gotoAndStop(2);
}
if (aaa1.) {
eee._visible = false;
}
Sorry for taking a while. but you can maybe try this
on (press) {
_root.aaa1.gotoAndStop(2);
_root.aaa2.gotoAndStop(2);
_root.aaa3.gotoAndStop(2);
_root.aaa1 = true;
if (aaa1) {
eee._visible = false;
}
}
You put ".aaa1" instead of just aaa1 which causes a syntax error. im not sure on how you handled the fla but this is that i can interfere. but it'd be more helpful if you're more specific. Heres the FLA (WORKS FROM FLASH MX 2004 TO CS6)
Last edited by DededeDrip; 09-03-2025 at 06:21 PM.