The doc says that mx:Window cannot be a child tag

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On Behalf 
Of Keith H
Sent: Monday, January 04, 2010 12:09 PM
To: [email protected]
Subject: [flexcoders] Scrollbars of List do not work in mx:Window in an AIR app?



Can anyone give me an idea why I cannot scrub the scrollbars of a List
or HorizontalList when
they are a child of "mx:Window"?

This is only a problem with MXML syntax. It works fine with regular
actionscript syntax.

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml";
title="Dummy Application"
width="800"
height="800"
layout="absolute">
<mx:Script>
<![CDATA[
import mx.core.Window;
]]>
</mx:Script>
<!--
*****************************************
List scrubs just fine in the main window.
*****************************************
-->
<mx:HorizontalList dataProvider="{[1,2,3,4,5,6,7,8,9,10]}"
columnWidth="40"
width="300"
height="50"/>
<!--
*****************************************
List seem to not wanna scrub when they are a
child of Window. Why?
*****************************************
-->
<mx:Window width="50"
height="50"
creationComplete="{event.target.open();}">
<mx:List id="listA"
dataProvider="{[1,2,3,4,5,6,7,8,9,10]}"
rowHeight="40"
width="100"
height="300"/>
<mx:HorizontalList dataProvider="{[1,2,3,4,5,6,7,8,9,10]}"
columnWidth="40"
width="300"
height="50"/>
</mx:Window>
</mx:WindowedApplication>

-- Keith H --
www.keith-hair.net

Reply via email to