document-class

Accessing the Document class in AS3

How can instantiated classes access the Document class? Even after I name the Document class using the Properties bar in Flash, attempting to access it from other classes usually fails, saying "attempting to access an undefined property... One solution is always casting the Document class to itself! eg. Main(Main).globalMethod(); Bu...

[as3] accessing an instance reference to the document class from the stage's timeline

Is there a way to get an instance reference to the document class to call a method of it from the stage's timeline? I see that here's a possible solution: using a singleton Other solution I though of is using stage.getChildAt( 0 ) but it's not very nice. Is there an 'official' instance reference? because the document class is obviously i...

As3 Errors 1046 type not found if I specify a document class

Hello. In my as3 code using Flash cs3, everything works fine without any document class. I can use event handlers and they work. But, once I attach a document class, I start to get this error: 1046: Type was not found or was not a compile-time constant: KeyboardEvent. Could somebody explain why this occurs? This is what my document cla...

AS3 trouble instantiating Document Class of loaded SWF

I am loading one swf into another using the Loader class, but when the child swf finishes loading and is added to the display list, its Document Class is not instantiated. I have a few trace statements that should execute when the object is created, but nothing is happening when loaded into the parent SWF. When I compile the child SWF on...

DoubleClick studio thinks I've imported the Enabler component in both my parent and my child asset files

I've just started to work with DoubleClick Studio. I've successfully created a Flash expanding ad with CS4 that is mostly scripted and uses the Document class option. Now for some reason the back end of DoubleClick Studio thinks I've imported the Enabler component twice. I've checked my files numerous of times but can't find the root c...