I am just new to Flex!
I have a "web application" and I want to convert it to an "Air application". I use the "Add/change project type" in the context menu. As I found here, this process rewrites the Appliaction tag with WindowedApplication in the mxml file.
I have a code like this:
someMethod (Application.application.parameters.sessionId,Application.application.parameters.entryId, Application.application.parameters.projectId);
After converting, I get this error:
"1120: Access of undefined property Application"
Then I replace the Application with WindowedApplication:
Then I get this error:
"1119: Access of possibly undefined property application through a reference with static type Class."
I have tried different ways, but no result. Would you please help me with this?
Which version of the SDK are you using? If relatively new, you might want to use FlexGlobals.topLevelApplication instead of Application.application
Thanks for your helpful reply!
My SDK is 4.6.
I do this: "import mx.core.FlexGlobas" and the IDE says it does not know the class.
Then I use this: "xmlns:mx="library://ns.adobe.com/flex/mx", instead of this: "xmlns:mx="http://www.adobe.com/2006/mxml",
but the IDE hangs and stops working!