IdentifierNode baseClassNode = new IdentifierNode("EventDispatcher");
baseClassNode.setParent(classNode);
classNode.setBaseClass(baseClassNode);
IdentifierNode flash = new IdentifierNode("flash");
IdentifierNode events = new IdentifierNode("events");
FullNameNode flashDotEvents = new FullNameNode(flash,
new ASToken(ASToken.TOKEN_OPERATOR_MEMBER_ACCESS, 0, 0, 0, 0, "."), events);
FullNameNode fullNameNode = new FullNameNode(flashDotEvents,
new ASToken(ASToken.TOKEN_OPERATOR_MEMBER_ACCESS, 0, 0, 0, 0, "."),
baseClassNode);
ImportNode importNode = new ImportNode(fullNameNode);
ScopedBlockNode sbn = (ScopedBlockNode)pkg.getChild(1);
sbn.addChild(importNode, 0);