Details
-
Task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK 4.5 (Release)
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows XP
Language Found: English
Description
Steps to reproduce:
1. Add the attached mainAir.mxml to an AIR application.
2. Add the attached swfToLoad.mxml to a new Flex Application and link the output of the Flex app into the AIR application debug.
3. Add the following compile options to both the AIR and Flex projects:
-include-libraries -includes+=mx.managers.systemClasses.MarshallingSupport
"<yourSdkPath>/sdks/4.5.0/frameworks/libs/automation/automation.swc"
"<yourSdkPath>/sdks/4.5.0/frameworks/libs/automation/automation_agent.swc"
"<yourSdkPath>/sdks/4.5.0/frameworks/libs/automation/automation_air.swc"
"<yourSdkPath>/sdks/4.5.0/frameworks/libs/automation/automation_airspark.swc"
"<yourSdkPath>/sdks/4.5.0/frameworks/libs/automation/automation_dmv.swc"
"<yourSdkPath>/sdks/4.5.0/frameworks/libs/automation/automation_flashflexkit.swc"
"<yourSdkPath>/sdks/4.5.0/frameworks/libs/automation/automation_spark.swc"
"<yourSdkPath>/sdks/4.5.0/frameworks/libs/automation/qtp.swc"
"<yourSdkPath>/sdks/4.5.0/frameworks/libs/automation/qtp_air.swc"
Actual Results:
No error is thrown to the problems view and the Flex project swf is built. When the AIR app is ran it will throw a run time error; 'TypeError: Error #1009: Cannot access a property or method of a null object reference. '
NOTE: Logged this based on 'https://bugs.adobe.com/jira/browse/SDK-30331' where the flex swf compiled with AIR libraries threw a run-time error but no errors in the project when building.
Expected Results:
Error to be caught in Flash Builder with SDK 4.5. If you try this is 4.1, you will get errors in the problems view for the Flex application project's 4.1 air libraries and project will not build.
Workaround (if any):
Remove the AIR library references for the Flex project.