import kagstd.scene.*; // Instance of this class will be // created automatically in the first // frame of the movie class Frame1 extends SceneObject { function Frame1 (mcParent : MovieClip) { // Parent constructor initializes // private variable "mc", which is // a reference to a new empty MovieClip super (mcParent); // Class DisplayText is defined in // kagstd.scene.DisplayText var t : DisplayText; t = new DisplayText (mc); t.text = "Hello world!"; t.x = 8; // position t.y = 8; t.size = 20; // set font size to 20 points t.color = 0xff0000; // red } }