Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
Adobe Flex SDK 3.2 (Release)
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s):
Browser: Other (specify version)
Language Found: English
Description
See code below to reproduce the bug
Steps to reproduce:
1. add a busy loop: enter_frame or timer with 1 ms resolution
2. inside the loop set the text property of a Label or TextArea to '\n'
3. outside the loop, for example in a click event, addChild of a custom component extending Canvas (or any other container) and including anything
Actual Results:
a click on the application area doesn't show anything. If resized (when running on flash player) the custom component appears, but the display is corrupted and inconsistent
Expected Results:
the custom component is added and showed
Workaround (if any):
use '\r' instead of '\n'
Comments:
This seems a race condition. If timer resolution is set to 2 ms, the bug appears less frequently. If set to 3 ms the bug disappears (all this on a recent notebook)
I've found this bug both on flash player 9 and 10, and on air 1.5
I suspect that this bug appears also using PopupManager.
- begin code: sampleApp.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
applicationComplete="f()"
>
<mx:Script>
<![CDATA[
private function f():voidUnknown macro: {// var t}]]
>
</mx:Script>
<mx:Label id="test"/>
</mx:Application> - end sampleApp.mxml
- begin code: MyComponent.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Button/>
</mx:Canvas> - end MyComponent.mxml