I'm wanting to spruce up the default dataTips for the HSlider thumbs 
(similiar to the behavior for the the various charting components), 
but somewhere along the way I've got a disconnect that is preventing 
this.

I've created a new class, extending HSlider, as follows:

[Style(name="dataTipRenderer", type="Class", inherit="no")]
        public class MyHSlider extends HSlider
        {
                public function MyHSlider() {
                        super();
                }
        }

and reference the component as follows:
<components:MyHSlider width="{currentPuck.width}" id="hsliderTimes" 
minimum="{_entry.startDate.time}" maximum="{_entry.endDate.time}" 
dataTipPlacement="bottom" allowThumbOverlap="false" 
liveDragging="true"
                thumbCount="2" values="{[_entry.startDate.time, 
_entry.endDate.time]}" tickInterval="{30*60*1000}" showDataTip="true"
dataTipRenderer="renderers.SplitPuckSliderDataTipRenderer"/>

my renderer code is as follows, but it never reaches the set data 
function, among other things. I based this code upon what seems to 
work just fine for the out-of-the-box dataTip rendering capabilities 
of the charting components:

<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"; 
borderStyle="solid" borderColor="0xffa500"
   verticalGap="0" paddingLeft="0" paddingRight="0"  paddingTop="0" 
backgroundColor="#ffffff" width="310"
   >
    <mx:Script>
        <![CDATA[
                import mx.events.ToolTipEvent;
                import mx.charts.HitData;
                import mx.managers.ToolTipManager;
                import mx.collections.ArrayCollection;
        
        import flash.events.TextEvent; 

       
        override public function set data(value:Object):void{
            super.data=value;
                
                
        }            
            
           
        ]]>
    </mx:Script>
    
        <mx:DateFormatter id="SampleDateFormatter" 
formatString="JJ:NN"/> 
        <mx:Label text="Testind renderer {SampleDateFormatter.format
(data)}"/>
</mx:VBox>


can anyone tell what I'm doing incorrectly?


Reply via email to