I’m following a block of sample code that contains the line:
Application.application.addChild(myPrintData);
I am placing the code into a custom class (it’s a Canvas) and I get an error message when I attempt to use Application.application….
The error is: -Access of undefined property Application
What does it mean and how can I get around it?
You are probably missing the import statement in your custom class.
import mx.core.Application;
Application is a layer of abstraction with a static object application which is the current application instance.
See note below from Reboog711. Thanks for the correction.