if(then-action) - cleaner code method?

  • Hi Folks, just wondering whether there's a more concise/clean way of coding the following?

    e.g.


    Thanks as ever. My "onclick" code for one button is now 100s of lines long!

    Malcolm

  • The first optimisation should be this:


    Much easier on the eye, and better performance too.
    But depending on what you want achieve, you could set the parent of graphic_a through graphic_f to be graphic_1. That way they hide automatically when graphic_1 hides.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!