| stop();
//创建自定义函数InputData(),获取姓名、性别、来自、擅长、简介、图片路径等数据信息
function InputData() {
name = name.text;
sex = radioGroup.getValue();
ComeFrom = CBComeFrom.getSelectedItem().label;
//判断复选项是否选中,如果选中则获取复选框的标题名称否则让其变量名为空
if (CKFlashMovie.getValue() != false) {
FlashMovie = CKFlashMovie.getLabel();
} else {
FlashMovie = "";
}
if (CKFlashAction.getValue() != false) {
FlashAction = CKFlashAction.getLabel();
} else {
FlashAction = "";
}
if (CK3D.getValue() != false) {
Design3D = CK3D.getLabel();
} else {
Design3D = "";
}
if (CKPlane.getValue() != false) {
Plane = CKPlane.getLabel();
} else {
Plane = "";
}
if (CKAsp.getValue() != false) {
Asp = CKAsp.getLabel();
} else {
Asp = "";
}
if (CKColdFusion.getValue() != false) {
ColdFusion = CKColdFusion.getLabel();
} else {
ColdFusion = "";
}
//定义一个变量adept,将前面复选项中被选中的项进行累和最终得到我们的擅长内容
adept = FlashMovie+FlashAction+Design3D+Plane+Asp+ColdFusion;
Brief = Brief.text;
PhotoPath = PhotoPath.text;
//完成数据收集以后再进行影片播放
play();
}
//创建自定义函数ViewData(),利用此函数我们可以将前面数据输入的内容进行信息显示
function ViewData() {
ViewName.text = name;
ViewSex.text = sex;
ViewComeFrom.text = ComeFrom;
ViewAdept.text = adept;
ViewBrief.text = brief;
//用loadScrollContent找到将前面的照片路径,然后将照片显示在ScrollPane中
ViewPhoto.loadScrollContent(PhotoPath);
}
|