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