hi please make sure ur renderer implements the following interfaces:

mx.controls.listClasses.IDropInListItemRenderer
mx.managers.IFocusManagerComponent

Then your component should look like this:



<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml";
    width="150" height="20"
     horizontalScrollPolicy="off" verticalScrollPolicy="off"

implements="mx.controls.listClasses.IDropInListItemRenderer,mx.managers.IFocusManagerComponent"
>

    <mx:Script>
        <![CDATA[
            import mx.controls.dataGridClasses.DataGridColumn;
            import mx.controls.listClasses.ListData;
            import mx.controls.dataGridClasses.DataGridListData;
            import mx.controls.listClasses.BaseListData;
            import mx.controls.dataGridClasses.DataGridItemRenderer
            import mx.events.FlexEvent;

            [Bindable]
            private var _data:Object;
            private var _dataChanged:Boolean;
            private var _listData:DataGridListData;

         override public function drawFocus(draw:Boolean):void {
                rie.setFocus();
            }

        override public function set data(value:Object):void{
                super.data = value;
                _data = value;
                //make sure commitProperties runs and sets the properties
                //on the child components
                _dataChanged = true;

                invalidateProperties();

        }


        override protected function commitProperties():void{
                super.commitProperties();

                if (_dataChanged){
                    rie.htmlText = "";
                    rie.htmlText = _data.attribute('comments');
                    //rie.invalidateProperties()
                    //theImage.source=_data.attribute('data');
                    //theLabel.text=_data.attribute('label');
                }

        }

             public function get text():String {
                   return rie.htmlText;
          }
           public function get listData():BaseListData
            {
                return _listData;
            }

            public function set listData(value:BaseListData):void
            {
                  _listData = DataGridListData(value);
                if(value.owner is DataGridColumn){
                    this.invalidateDisplayList()
                }

            }

            override protected function
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void{
                super.updateDisplayList(unscaledWidth,unscaledHeight);

            }

        ]]>
    </mx:Script>


    <mx:Text id="rie" width="100%" height="100%"/>




</mx:VBox>










On Thu, Oct 8, 2009 at 11:09 AM, Ajay Kostha <[email protected]> wrote:

>
> Hi All
>
> I have a DataGrid in which I am using a custom image renderer. On that
> renderer, handler for rollover and rollout has been written.
>
> On rollover, it displays a popup which render an image from other web
> application.
>
> When a the cursor is moved fast on the renderer, it throws following
> exception
>
> Error
>      at mx.managers::SystemManager/updateLastActiveForm()[/c/bb02na1a/
> vol/sas/day/vert-d2flxcmn14/Products/Commons.Flex/ThirdParty/FlexSDK/
> framework/src/mx/managers/SystemManager.as:5087]
>      at mx.managers::SystemManager/activateForm()[/c/bb02na1a/vol/sas/
> day/vert-d2flxcmn14/Products/Commons.Flex/ThirdParty/FlexSDK/framework/
> src/mx/managers/SystemManager.as:2352]
>      at mx.managers::SystemManager/activate()[/c/bb02na1a/vol/sas/day/
> vert-d2flxcmn14/Products/Commons.Flex/ThirdParty/FlexSDK/framework/src/
> mx/managers/SystemManager.as:2307]
>      at mx.managers::FocusManager/creationCompleteHandler()[/c/
> bb02na1a/vol/sas/day/vert-d2flxcmn14/Products/Commons.Flex/ThirdParty/
> FlexSDK/framework/src/mx/managers/FocusManager.as:1600]
>      at flash.events::EventDispatcher/dispatchEventFunction()
>      at flash.events::EventDispatcher/dispatchEvent()
>
> Is there a way to ignore fast movement of mouse?
>
> Thanks in advance.
>
> Regards
> Ajay Kostha
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to