Hello All, I have only recently started learning as3. I need a little help! I am creating a form in Flash cs6. In the form im using the UI checkbox component. The component label says yes and no. I want users to tick either the yes or no box thats all!!
I know a little bit of the code but not all. After the function boxHandler i assume you use either the “if” or “else” statement for the two possible actions. But when i tried to execute the code i got a bunch of errors.
I be gratefull if someone can give me a example how to write the code for the checkbox. I have looked for tutorials but none of them were relevant for what i am trying to do.
My code below:
import fl.controls.CheckBox;
var checkbox = new CheckBox();
cb_box1.addEventListener(MouseEvent.CLICK, boxHandler);
cb_box2.addEventListener(MouseEvent.CLICK, boxHandler);
function boxHandler(event:MouseEvent):void{