Estoy tratando de hacer sumas al seleccionar un checkbox, cada checkbox tiene un valor de tipo entero. se puede apreciar en las imagenes
La declaración de instancia
check1
check2
check3
check4
boton
text1
me dice error 1119, acceso a una propiedad checked no definida
Código PHP:
//Código en AS3.0
boton.addEventListener(MouseEvent.CLICK, suma);
function suma(evt:MouseEvent):void{
check1.checked = 50;
check2.checked = 40;
check3.checked = 10;
check4.checked = 20;
text1.text = String(Number(check1.text) + Number(check2.text) + Number(check3.text) + Number(check4.text));
}
La idea es lograr esto, Ejemplo:
Saludos