Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
Run the following program in the debugger (I used Flex Builder 3):
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768" xmlns:local="*">
<fx:Script>
<![CDATA[
public function deleteIt():void
]]
>
</fx:Script>
<s:Button x="10" y="10" label="Delete" click="deleteIt()" />
<s:CheckBox x="10" y="40" label="Checker" id="checker" />
</s:Application>
1. Set a breakpoint at the call to removeElement(checker)
2. Before entering the function, look at the _mxmlContent array for the Application and the Application's contentGroup.
Both contain a Button and a CheckBox
3. Step over the function and look at the _mxmlContent arrays again.
Actual Results:
The _mxmlContent for the Application's contentGroup only has a Button, properly reflecting the deletion of the CheckBox.
The _mxmlContent of the Application itself still has both a Button and a CheckBox
Expected Results:
The Application should either clear its _mxmlContent array after setting the mxmlContent of its contentGroup or is should keep it's local copy of the _mxmlContent array in sync with that of it's contentGroup.
Workaround (if any):