Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
Adobe Flex SDK 4.1 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1.compile and run
<?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/mx" >
<fx:Script>
<![CDATA[
import mx.collections.XMLListCollection;
private function addXMLData(tree:Tree):void
]]
>
</fx:Script>
<fx:Declarations>
<fx:XML id="treeXMLEmptyBranches">
<node label="rootnode">
<node label="Containers">
<node label="DividedBoxClasses">
<node label="BoxDivider" data="BoxDivider.as" />
</node>
<node label="GridClasses">
<node label="empty branch2" isBranch="true"/>
<node label="GridRow" data="GridRow.as" />
<node label="GridItem" data="GridItem.as" />
</node>
</node>
<node label="Printing">
<node label="PrintJob" data="PrintJob.as" />
<node label="PrintJob1" data="PrintJob1.as" />
<node label="PrintTree" data="PrintTree.as" />
</node>
<node label="empty branch1" isBranch="true"/>
</node>
</fx:XML>
</fx:Declarations>
<mx:Tree id="tree" direction="rtl" layoutDirection="rtl" creationComplete="
{addXMLData(tree)}"/>
</s:Application>
Actual Results:
ReferenceError: Error #1056: Cannot create property layoutDirection on mx.controls.Tree.
at bugRTL/_bugRTL_Tree1_i()[C:\flex\Test_ListNoScroller\src\bugRTL.mxml:4]
at bugRTL/_bugRTL_Array1_c()
at mx.core::DeferredInstanceFromFunction/getInstance()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\DeferredInstanceFromFunction.as:105]
at spark.components::SkinnableContainer/createDeferredContent()[E:\dev\trunk\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:985]
at spark.components::SkinnableContainer/createContentIfNeeded()[E:\dev\trunk\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:1014]
at spark.components::SkinnableContainer/createChildren()[E:\dev\trunk\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:827]
at mx.core::UIComponent/initialize()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:7250]
at spark.components::Application/initialize()[E:\dev\trunk\frameworks\projects\spark\src\spark\components\Application.as:916]
at bugRTL/initialize()
at mx.managers.systemClasses::ChildManager/childAdded()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\systemClasses\ChildManager.as:189]
at mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\systemClasses\ChildManager.as:341]
at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\SystemManager.as:2810]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\SystemManager.as:2637]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\SystemManager.as:2539]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/timerHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\preloaders\Preloader.as:515]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
Expected Results:
no RTE, code hint shows "layoutDirection"
Workaround (if any):