2 import flash.display.MovieClip
5 public class Main extends flash.display.MovieClip {
7 /* static class member, with full path */
8 var x:String = flash.events.DataEvent.DATA;
12 /* This definition makes the below fail for as3compile, while
13 it still works in Flex.
14 var flash:Object = new Object();
15 flash["events"] = new Object();*/
17 import flash.events.DataEvent
18 //trace(flash.events); should fail
20 /* class, with full path */
21 var y = new flash.events.DataEvent("");
22 if(y is flash.events.Event)
25 /* package variable, with full path */
26 var z = flash.utils.flash_proxy;
30 /* package method, with full path */
31 var t = flash.utils.getTimer();
38 /* this test breaks in Flex */
39 var flash:Object = new Object();
40 flash["events"] = new Object();
41 trace(flash.events); //should work- no active import