Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Create an AIR project.
2. Create a DownloadProgressBar subclass.
3. Set MINIMUM_DISPLAY_LIST to some non-zero value in the constructor.
4. Set the progress bar as the application's 'preloader'.
Actual Results:
A runtime error is thrown:
[Fault] exception, information=TypeError: Error #1009: Cannot access a property or method of a null object reference.
Fault, enterFrameHandler() at WindowedApplication.as:2932
Expected Results:
The preloader should delay the application loading by the specified time.
Additional Information:
The issue isn't actually directly linked to MINIMUM_DISPLAY_TIME, the same will happen if initCompleteHandler is overriden (in either a DownloadProgressBar or a SparkDownloadProgressBar subclass) and doesn't immediately dispatch a COMPLETE event.
This apparently happens because WindowedApplication adds a CREATION_COMPLETE handler, which assumes the application is already on stage one frame after it is created. However, the application is actually only added to stage by the SystemManager when the preloader dispatches a COMPLETE event.
This issue prevents from doing any additional preloading in a custom preloader under AIR.