flex 发光效果

 var glow:Glow=new Glow();
 
               //水平的初始发光距离
               glow.blurXFrom=0;
     
               //水平发光结束时的距离
               glow.blurXTo=50;
     
                   glow.blurYFrom=0;
     
               glow.blurYTo=50;
                   
                   //发光的持续时间,是以毫秒为单位的
                   glow.duration =1000;
               
                   //发光时的颜色
                   glow.color=0xffffff;
               
               //发光形式 true:内发光 false:外发光
               glow.inner = false;
               
                   glow.strength = 25;
                   
                   //指定为 '谁'提供发光服务
               glow.target=event.currentTarget;
                 
               glow.stop();

                   glow.play();

你可能感兴趣的:(Flex)