Hi, 

I want to remove shadow of the tooltip in my flex screen but failed 
to do the same... I have used 

(In MXML file)

StyleManager.getStyleDeclaration("ToolTip").setStyle
("dropShadowEnabled",false); 


or

StyleManager.getStyleDeclaration("ToolTip").setStyle
("dropShadowEnabled","false"); 


(In CSS file)

ToolTip { 
  dropShadowEnabled: false;
}

But It is not working.....

Can anyone pls do let me know, how can I remove the shadow from the 
tooltip.

Thanks in Advance,
Sanjay Sharma



MXML file
======================================


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
layout="absolute" creationComplete="ShortTimer()">
        <mx:Script>
                <![CDATA[
                        import mx.events.DropdownEvent;
                        import mx.controls.Alert;
                        import mx.events.CloseEvent;
                        import mx.events.ItemClickEvent;
                        import flash.display.Sprite;
                import flash.events.Event;
                import flash.events.TimerEvent;
                    import flash.utils.Timer;
        import mx.controls.ToolTip;

                        [Bindable]
                        public var arr:Array = ['1','2','3','4'];
                        public var minuteTimer:Timer = new Timer
(1000, 60);
                        public var counter:int = 1;
                        public var flag:int = 0;
                        
                        
                public function open(event:Object):void {
                        flag = 1;                       
                }

                public function close(event:Object):void {
                        flag = 0;
                }
                
                public function ShortTimer():void 
        {
                StyleManager.getStyleDeclaration("ToolTip").setStyle
("cornerRadius",0);
                StyleManager.getStyleDeclaration("ToolTip").setStyle
("dropShadowEnabled",false);
            // creates a new five-second Timer
            //var minuteTimer:Timer = new Timer(1000, 60);
            
            // designates listeners for the interval event and the 
completion event
            minuteTimer.addEventListener(TimerEvent.TIMER, onTick);
            minuteTimer.addEventListener(TimerEvent.TIMER_COMPLETE, 
onTimerComplete);
            
            // starts the timer ticking
            minuteTimer.start();
        }

        public function onTick(evt:TimerEvent):void 
        {
            // displays the tick count so far
            // The target of this event is the Timer instance itself.
            ComboPos.text="tick " + evt.target.currentCount + "," 
+ "Counter" + counter;
            if(flag == 0)
                counter++;
        }

        public function onTimerComplete(evt:TimerEvent):void
        {
            ComboPos.text="Time's Up!";
        }

                ]]>

        </mx:Script>
                
        <mx:ComboBox id="myComboBox" toolTip="Testing Shaddow" 
text="Select" dataProvider="{arr}" click="open(event)" close="close
(event)">
                
        </mx:ComboBox>
        <mx:TextArea id="ComboPos" x="129" y="42" color="#ffff00"/>
</mx:Application>





Reply via email to