11 Replies Latest reply on Aug 5, 2009 7:35 PM by ^^GOUST^^

    label receiving effect  glow

    ^^GOUST^^

      hi guys,

      I have a question of how a label receiving the glow effect, through a function

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

       

       

       

                 <mx:Panel id="panel" width="469" height="415"  headerHeight="90" layout="absolute" horizontalCenter="27" verticalCenter="-10">
                
                     <mx:Button      

                               id="button"  click="{effect()}" x="10" y="208" width="122"

                     </mx:Button>
                    

       

                     <mx:Label id="inform" x="140" y="100.8"  width="86" />
                 </mx:Panel>

       

          <mx:Script>
              <![CDATA[
                 
          
                 
                  public function effect():void
                  {  

                     //receives the label effect glowImage, I do not know how

                     inform.effect
                  }

                  ]]>
          </mx:Script>
              <mx:Glow id="glowImage" duration="1000"
                          alphaFrom="1.0" alphaTo="0.3"
                          blurXFrom="0.0" blurXTo="50.0"
                          blurYFrom="0.0" blurYTo="50.0"
                          color="0x00FF00"/>

       

      </mx:Application>