オブジェクトを作成し利用するには
onClipEvent (mouseDown) {
function aObj(uName, uPass) {
this.username = uName;
this.userpassword = uPass;
}
myData = new aObj("KF", "123");
_root.result1.text = myData.username;
_root.result2.text = myData.userpassword;
}

説明などは本書を参考にしてください。