加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

flex渲韵效果

发布时间:2020-12-15 03:34:39 所属栏目:百科 来源:网络整理
导读:渲韵效果 ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" ????layout="vertical" ????verticalAlign="middle" ????backgroundColor="white" ????creationComplete="init();" ? ??mx:Style ??Alert { ???dr

渲韵效果

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" ????layout="vertical" ????verticalAlign="middle" ????backgroundColor="white" ????creationComplete="init();"> ? ??<mx:Style> ??Alert { ???dropShadowEnabled: false; ??} ?</mx:Style> ? ?<mx:Script> ??<![CDATA[ ???import mx.controls.Alert; ???import mx.styles.StyleManager; ??? ???private var alert:Alert; ??? ???private function init():void ???{ ????var glow:GlowFilter = new GlowFilter(); ????/* The GlowFilter color property takes a uint,so you ????can't use named colors. */ ????glow.color = StyleManager.getColorName("red"); ????glow.alpha = 0.8; ????glow.blurX = 4; ????glow.blurY = 4; ????glow.strength = 6; ????glow.quality = BitmapFilterQuality.HIGH; ???? ????alert = Alert.show("Message","TITLE"); ????alert.filters = [glow]; ???} ??]]> ?</mx:Script> ? ?<mx:ApplicationControlBar dock="true"> ??<mx:Button label="Show alert" click="init();" /> ?</mx:ApplicationControlBar> ? </mx:Application>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读