Hi,
Its been a long time since I've used koolmoves and still new to AS3. Trying to work out how to use the km components.
I'm trying to get the results from a series of checkboxes but rather than outputting the results straight away, I
want to to show the results when pressing the submit button.

I've got the general idea but I'm having problems on how to pass the data (outcheck1, outcheck2 and outcheck3)
to a function. I think I'm not passing parameters properly.

Anyway the following code is listed. Thanks in advance (by the way there may be more of these basic questions coming up
but I'll try to make an attempt to solve them before seeking help!)

import km.core.*;
import km.components.*;

checkbox1.setProperties({x:50, y:50, checked:false});
checkbox1.text = 'Checkbox 1';
checkbox1.onChange = function(){
var outcheck1:String = this.checked ? 'checkbox 1 checked' : 'checkbox 1 unchecked';
txt2.text = outcheck1;
}
addChild(checkbox1)


checkbox2.setProperties({x:50, y:70, checked:false});
checkbox2.text = 'Checkbox 2';
checkbox2.onChange = function(){
var outcheck2:String = this.checked ? 'checkbox 2 checked' : 'checkbox 2 unchecked';
txt2.text = outcheck2;
}
addChild(checkbox2)


checkbox3.setProperties({x:50, y:90, checked:false});
checkbox3.text = 'Checkbox 3';
checkbox3.onChange = function(){
var outcheck3:String = this.checked ? 'checkbox 3 checked' : 'checkbox 3 unchecked';
txt2.text = outcheck3;
}
addChild(checkbox3)

// output checkbox combinations

pushbutton1.addEventListener(MouseEvent.MOUSE_DOWN ,outputshow);

function outputshow(e:MouseEvent):void {
var result:String = outcheck1 + outcheck2 + outcheck3;
txt1.text = result;
}