#include <stdlib.h>
#include <stdio.h>
#include <ming.h>
#include "ming_utils.h"
Defines | |
#define | OUTPUT_VERSION 7 |
#define | OUTPUT_FILENAME "KeyEventOrder.swf" |
Functions | |
int | main (int argc, char **argv) |
This test checks the event order of key events. |
#define OUTPUT_FILENAME "KeyEventOrder.swf" |
Referenced by main().
#define OUTPUT_VERSION 7 |
Referenced by main().
int main | ( | int | argc, | |
char ** | argv | |||
) |
This test checks the event order of key events.
Known listeners are: 1. MovieClips with a defined key event 2. Button with a defined key event 3. Anything added to Key listeners in ActionScript. The test adds objects in this order: Frame 1: 1. mc1 3. button1 (responds to 'a') 3. o1 (actionscript key listener object) 4. mc2
Frame 2: 5. button2 (responds to 'a') 6. button3 (responds to 'b') 3. o2 (actionscript key listener object) The test shows that, irrespective of construction order: 1. MovieClips are notified first 2. ActionScript listeners are notified second. 3. Buttons are notified last. Additionally: 1. Only one button action can respond to any key.
References add_actions(), check_equals, gnash::fontlib::get_default_font(), get_dejagnu_clip(), make_fill_square(), newSWFAction, OUTPUT_FILENAME, OUTPUT_VERSION, and xcheck_equals.