Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Mar 2006
    Posts
    459
    Thanks
    3
    Thanked 0 Times in 0 Posts

    unCheck a Checkbox in Flash

    I have a small form, and I have a reset button, it clears the textfields... But I can't get it to uncheck the checkboxes... I have tried all combinations, setting the instance name, setting the myVariable name of the component, but it doesn't seem to work...

    Code:
    on (release)
    {
    	Selection.setFocus("nameTi");
    	
        contactName = "";
        contactPhone = "";
    	contactEmail = "";
    	check1 = "0";
    	myCheck = "0";
    	myCheck = 0;
    }

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Should be able to set it as a boolean instead of as a value like this

    Code:
    myCheck = false;

  • #3
    Regular Coder
    Join Date
    Mar 2006
    Posts
    459
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Hmmmm that didn't work either

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Code:
    _root.mycheck.selected = false;
    Of course the path would depend on where its at in the flash.

    You can use the Insert Target Path button 3rd one from the left in actionscript panel to insert the target of the checkbox.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

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