2 Replies Latest reply on Jan 9, 2012 9:02 PM by Pramod_Kutty

    Issue with list control

    Pramod_Kutty

      TypeError: Error #1010: A term is undefined and has no properties.

                at mx.controls.listClasses::TileBase/scrollVertically()[C:\autobuild\3.2.0\frameworks\projec ts\framework\src\mx\controls\listClasses\TileBase.as:849]

                at mx.controls.listClasses::TileBase/scrollHandler()[C:\autobuild\3.2.0\frameworks\projects\ framework\src\mx\controls\listClasses\TileBase.as:2603]

                at flash.events::EventDispatcher/dispatchEventFunction()

                at flash.events::EventDispatcher/dispatchEvent()

                at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src \mx\core\UIComponent.as:9298]

                at mx.controls.scrollClasses::ScrollBar/http://www.adobe.com/2006/flex/mx/internal::dispatchScrollEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\scrollClasses\ScrollBa r.as:1261]

                at mx.controls.scrollClasses::ScrollBar/http://www.adobe.com/2006/flex/mx/internal::lineScroll()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\scrollClasses\ScrollBa r.as:1223]

                at mx.controls.scrollClasses::ScrollBar/downArrow_buttonDownHandler()[C:\autobuild\3.2.0\fra meworks\projects\framework\src\mx\controls\scrollClasses\ScrollBar.as:1325]

                at flash.events::EventDispatcher/dispatchEventFunction()

                at flash.events::EventDispatcher/dispatchEvent()

                at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src \mx\core\UIComponent.as:9298]

                at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::buttonPressed()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\Button.as:2504]

                at mx.controls::Button/mouseDownHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\s rc\mx\controls\Button.as:2750]

       

       

      I am having an issue with the custom itemrenderer for a Tile List I am using flex sdk 3.2 Is this an issue with flex 3 should I migrate to flex 4

        • 1. Re: Issue with list control
          Flex harUI Adobe Employee

          I don’t have 3.2.  What code is on that line?  What is null?

          • 2. Re: Issue with list control
            Pramod_Kutty Level 1

            My SongsDisplayComponent uses ir itemrenderer

             

             

            SongsDisplay.mxml

             

            <?xml version="1.0" encoding="utf-8"?>

            <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%"

                      borderColor="black" borderStyle="solid">

             

             

            <mx:Script>

            <![CDATA[

                      import mx.collections.ArrayCollection;

                      import mx.binding.utils.BindingUtils;

                      import mx.events.ResizeEvent;

             

             

            import mx.controls.Alert;

             

             

            public function test(event:Event):void

            {

                      //myList.executeBindings(true);

             

             

            }

             

             

             

             

            public function init(event:Event):void

            {

                      //myList.addEventListener(ResizeEvent.RESIZE,test);

                      //myList.executeBindings(true);

             

             

             

             

            }

                      [Bindable]

            private var arr:ArrayCollection=new ArrayCollection([{thumbnailImage:"test.GIF"},{thumbnailImage:"test.GIF"},{thumbnailImage: "test.GIF"},{thumbnailImage:"test.GIF"},{thumbnailImage:"test.GIF"}])

             

             

             

             

            ]]>

            </mx:Script>

             

             

             

             

                                <mx:XML id="catalog" source="catalog.xml"/>

             

             

                                 <mx:Array id="arr1">

                    <mx:Object  thumbnailImage="test.GIF" />

                    <mx:Object thumbnailImage="test.GIF" />

                    <mx:Object thumbnailImage="test.GIF" />

                    <mx:Object thumbnailImage="test.GIF" />

                    <mx:Object  thumbnailImage="test.GIF" />

                    <mx:Object thumbnailImage="test.GIF" />

                    <mx:Object thumbnailImage="test.GIF" />

                    <mx:Object thumbnailImage="test.GIF" />

                          </mx:Array>

             

             

                      <mx:HBox height="100%" width="100%" borderThickness="5" borderColor="RED" borderStyle="solid">

             

                      <mx:VBox id="vb" height="100%" width="50%" borderColor="GREEN" borderStyle="solid" borderThickness="10">

                                 <mx:List id="myList"

                                    rowCount="2"

                                    columnCount="1"

                                    height="200"

                                    width="200"                               

                                    dataProvider="{arr}"   

                                    itemRenderer="ir"

                                    borderColor="#00BAFF"

                                     borderStyle="solid"

                                      borderThickness="5"                         

                                      />

                                      

                      </mx:VBox>                

                                   

                         </mx:HBox>

             

             

                 

             

            </mx:VBox>

             

             

            ir.mxml

             

             

            <?xml version="1.0" encoding="utf-8"?>

            <mx:HBox name="ir" 

                        xmlns:mx="http://www.adobe.com/2006/mxml"

                    horizontalAlign="center"

                    verticalAlign="middle" width="100%" height="110" dataChange="test()">

                   

                    <mx:Script>

                    import mx.controls.Alert;

                     private function test()

                     {

                               Alert.show("scroling");

                     }

                   

                    </mx:Script>

             

                <mx:Image source="{data.thumbnailImage}"/>

               

            </mx:HBox>