We have a custom cellrenderer which on mouseover makes an icon appear which the user can click to remove that entry.. A problem that we're seeing is that the mouseOver stopped right after the text ends. If we mouseOver the text we can see the icon, as soon as we move off of the text the icon disappears. I've tried adjusting the mouseOver/mouseOut events around but it's still occuring..
Here's what we have for code.. any help would be appreciated.. The container that calls the cellrenderer looks like... <mx:columns> <mx:Array> <mx:DataGridColumn cellRenderer="com.alltel.rapid.aopscheduler.view.WSEmployeeNameCellRenderer" columnName="name" width="150" headerText="Employee" dataTipField="name" showDataTips="true"/> ... And the CellRenenderer looks like : <mx:HBox xmlns:mx="http://www.macromedia.com/2003/mxml" mouseOver="doMouseOver( event )" mouseOut="doMouseOut( event )" hScrollPolicy="off" vScrollPolicy="off" width="100%"> <mx:Script> <![CDATA[ import org.nevis.cairngorm.control.EventBroadcaster; import com.alltel.rapid.aopscheduler.control.AOPSchedulerController; import com.alltel.rapid.aopscheduler.model.ModelLocator; var isDefaultLocation : Boolean ; var emplid: String; //var isEditor: Boolean = ModelLocator.employee.isInRole('editor'); function setValue( str:String, item:Object, sel:Boolean ) { dd.text = item.isDefaultLocation ? str : '*' + str; this.isDefaultLocation = item.isDefaultLocation; this.emplid = item.emplid; if(item.totalHours > 40) dd.setStyle('color','red'); else dd.setStyle('color','black'); } function doMouseOver( event ) { if( ModelLocator.employee.isInRole('editor')) { if(!isDefaultLocation) { event.target.addIcon.visible=true; //event.target.styleName="employeeOn"; } } } function doMouseOut( event ) { if( ModelLocator.employee.isInRole('editor')) { event.target.addIcon.visible=false; //event.target.styleName="employeeOff"; } } function doMouseDown( event ) { if( ModelLocator.employee.isInRole('editor')) { if(!isDefaultLocation) { event.target.addIcon.visible=false; event.target.styleName="employeeOff"; //broadcast event for DeleteEmployeeFromScheduleCommand.as var eventObject : Object = new Object(); eventObject.emplid = emplid; EventBroadcaster.getInstance().broadcastEvent( AOPSchedulerController.EVENT_REMOVEEMPLOYEEFROMSCHEDULE, eventObject ); } } } ]]> </mx:Script> <mx:Label id="dd" toolTip="{ dd.text }" /> <mx:Image id="addIcon" source="@Embed('/assets/images/icon_deleteblock.png')" visible="false" toolTip="Click the icon to delete this employee from the schedule" mouseDown="doMouseDown( event )" mouseOver="doMouseOver( event )" mouseOut="doMouseOut( event )" /> </mx:HBox> -- Auxilium meum a Domino -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/