A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Very quick if statement question.

Threaded View

  1. #1
    Junior Member
    Join Date
    Apr 2003
    Location
    UK
    Posts
    14

    Very quick if statement question.

    Hi I have a very quick question about writing if statements.

    When the user clicks a button I want h1 and h2 to either appear or dissapear depending on their current state, I can get just one to work (i.e. h1 on its own) but I don't know the correct syntax for two or even three variables. I've shown my code below, as you can see I thought a comma might work to separate the values but it doesn't.

    code:

    on (release) {
    if (h1,h2._visible) {
    h1,h2._visible = false;
    } else {
    h1,h2._visible = true;
    }
    }

    Last edited by jbum; 10-01-2004 at 01:57 PM.

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