struct swf_event {
char align;
if(version >= 6) {
unsigned f_event_reserved : 13;
if(version >= 7) {
unsigned f_event_construct : 1;
}
else {
unsigned f_event_reserved : 1;
}
unsigned f_event_key_press : 1;
unsigned f_event_drag_out : 1;
unsigned f_event_drag_over : 1;
unsigned f_event_roll_out : 1;
unsigned f_event_roll_over : 1;
unsigned f_event_release_outside : 1;
unsigned f_event_release : 1;
unsigned f_event_press : 1;
unsigned f_event_initialize : 1;
}
else {
unsigned f_event_reserved : 7;
}
unsigned f_event_data : 1;
unsigned f_event_key_up : 1;
unsigned f_event_key_down : 1;
unsigned f_event_mouse_up : 1;
unsigned f_event_mouse_down : 1;
unsigned f_event_mouse_move : 1;
unsigned f_event_unload : 1;
unsigned f_event_enter_frame : 1;
unsigned f_event_onload : 1;
unsigned long f_event_length;
swf_action f_action_record[variable];
};