Hi,
Can some one l;ook this code over and see if there is a mistake that will not allow for the combobox to have the text in it be sized to 10 point. I have done 2 other just like this and they work.
//Tabbing through fields
name_txt.tabIndex = 1;
phone_txt.tabIndex = 2;
time_txt.tabIndex = 3;
zip_txt.tabIndex = 4;
submit_bt.tabIndex = 5;
focusManager.defaultPushButton = submit_bt;
//Style for the Input Fields and Combo Box
zzFStyleFormat = new FStyleFormat();
zzFStyleFormat.background = 0x003333;
zzFStyleFormat.selection = 0x006666;
zzFStyleFormat.textColor = 0xCCCCCC;
zzFStyleFormat.textSize = 10;
zzFStyleFormat.arrow = 0xFFFFFF;
zzFStyleFormat.face = 0x009999;
zzFStyleFormat.scrollTrack = 0x000000;
zzFStyleFormat.shadow = 0x006666;
zzFStyleFormat.darkshadow = 0x003333;
zzFStyleFormat.highlight = 0x00CCCC;
zzFStyleFormat.highlight3D = 0x006666;
//Apply style to Input Fields and Combo Box
zzFStyleFormat.addListener(time_txt);
zzFStyleFormat.addListener(name_txt);
zzFStyleFormat.addListener(phone_txt);
zzFStyleFormat.addListener(zip_txt);
//Combo Box
// populate the combobox
zzmyLabels = new Array (“Select”,“Morning”,“Afternoon”,“Evening”);
for (zz=0;zz<zzmyLabels.length;zz++) {
time_txt.addItem (zzmyLabels[zz]) ;
}
// function to display the selection
function zzcomboDisplay (component) {
time_txt = component.getSelectedItem().label ;
}
// We assign the function to the combobox
time_txt.setChangeHandler (“zzcomboDisplay”) ;
//input text field lables
name_txt.text = “Enter your name”;
phone_txt.text = “Phone number”;
zip_txt.text = “Zip”;
//clear input text field onFocus, if something typed in don’t clear input text field, if nothing typed in rename input text field onFocusKill
name_txt.onSetFocus = function() {
if (name_txt.text == “Enter your name”) {
name_txt.text = “”;
}
};
name_txt.onKillFocus = function() {
if (name_txt.text == “”) {
name_txt.text = “Enter your name”;
}
};
phone_txt.onSetFocus = function() {
if (phone_txt.text == “Phone number”) {
phone_txt.text = “”;
}
};
phone_txt.onKillFocus = function() {
if (phone_txt.text == “”) {
phone_txt.text = “Phone number”;
}
};
zip_txt.onSetFocus = function() {
if (zip_txt.text == “Zip”) {
zip_txt.text = “”;
}
};
zip_txt.onKillFocus = function() {
if (zip_txt.text == “”) {
zip_txt.text = “Zip”;
}
};
//Submits data from fields in form
submit_bt.onRelease = function() {
subject = “Cover What’s Yours”;
recipient = “”;
redirect = “”;
loadVariables(“ccMailer.jsp”, “”, “POST”);
gotoAndStop(“thanks”);
};
stop();