Tag Info
Brief Description:
An edit text enables the end users to enter text in a Flash window.
Tag Structure:
struct swf_defineedittext {
swf_tag f_tag; /* 37 */
unsigned short f_edit_id;
swf_rect f_rect;
unsigned f_edit_has_text : 1;
unsigned f_edit_word_wrap : 1;
unsigned f_edit_multiline : 1;
unsigned f_edit_password : 1;
unsigned f_edit_readonly : 1;
unsigned f_edit_has_color : 1;
unsigned f_edit_has_max_length : 1;
unsigned f_edit_has_font : 1;
if(version >= 6) {
unsigned f_edit_reserved : 1;
unsigned f_edit_auto_size : 1;
}
else {
unsigned f_edit_reserved : 2;
}
unsigned f_edit_has_layout : 1;
unsigned f_edit_no_select : 1;
unsigned f_edit_border : 1;
unsigned f_edit_reserved : 1;
unsigned f_edit_html : 1;
unsigned f_edit_use_outlines : 1;
if(f_edit_has_font) {
unsigned short f_edit_font_id_ref;
unsigned short f_edit_font_height;
}
if(f_edit_has_color) {
swf_rgba f_edit_color;
}
if(f_edit_has_max_length) {
unsigned short f_edit_max_length;
}
if(f_edit_has_layout) {
unsigned char f_edit_align;
unsigned short f_edit_left_margin;
unsigned short f_edit_right_margin;
signed short f_edit_indent;
signed short f_edit_leading;
}
string f_edit_variable_name;
if(f_edit_has_text) {
string f_edit_initial_text;
}
};
Additional interactivity has been added in V4.0 of the SWF format. This is given by the use of edit boxes offering the end users a way to enter text as if the SWF movie was in fact an interactive form.
The text is defined in a variable (accessible in action scripts). It can be dynamically assigned and retrieved. It is legal to have an empty string as the variable name (not dynamically accessible).