A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: how to make a button disappear if something is x frame?

  1. #1
    Junior Member
    Join Date
    Aug 2025
    Posts
    1

    Question 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;
    }

  2. #2
    Junior Member
    Join Date
    Jan 2025
    Posts
    12
    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)
    Attached Files Attached Files
    Last edited by DededeDrip; 09-03-2025 at 06:21 PM.

  3. #3
    Junior Member
    Join Date
    Jan 2025
    Posts
    12
    Whoops. i forgot this site is 75% defunct. here's the download but somewhere else https://cdn.discordapp.com/attachmen...0b9e834383c31&

  4. #4
    Administrator Steve R Jones's Avatar
    Join Date
    Nov 2011
    Location
    Largo, FL.
    Posts
    143
    Our ATTACHMENT option and a few others are broken....but being looked into.

  5. #5
    Junior Member
    Join Date
    Jan 2025
    Posts
    12
    Oh, nice! Is it too much to ask what are the "few others" you are looking into? Good luck with everything regardless

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center