flex 透明MenuBar效果的实现
发布时间:2020-12-15 04:20:30 所属栏目:百科 来源:网络整理
导读:MenuBarNoBorderFillSkin.as import mx.skins.ProgrammaticSkin;import flash.display.Graphics;public class MenuBarNoBorderFillSkin extends ProgrammaticSkin{public function MenuBarNoBorderFillSkin(){super();}} ----实现无边框 MenuBarActiveSkin.a
MenuBarNoBorderFillSkin.as import mx.skins.ProgrammaticSkin; import flash.display.Graphics; public class MenuBarNoBorderFillSkin extends ProgrammaticSkin{ public function MenuBarNoBorderFillSkin(){ super(); } } ----实现无边框 MenuBarActiveSkin.as import mx.skins.ProgrammaticSkin; public class MenuBarActiveSkin extends ProgrammaticSkin{ public function MenuBarActiveSkin(){ super(); } override protected function updateDisplayList(w:Number,h:Number):void{ var backgroundAlpha:Number = getStyle("backgroundAlpha"); var rollOverColor:uint=getStyle("rollOverColor"); graphics.clear(); drawRoundRect(0,w,h,5,rollOverColor,backgroundAlpha); } } ---实现点击事件监听 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |