A classic example occurs for external MXML components :
xml 代码
- <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" pageTitle="FlexGala - Author : Marco Casario" xmlns:myComp="myFolder.*" >
- <myComp:MyComFile id="myCmp" />
When you need to refer just to a single invocation of an Actionscript class I prefer to use the xmlns attribute directly inside that tag's declaration :
xml 代码
- <fx:FABridge xmlns:fx=”ajaxbridge.*” />
本文介绍在Flex开发中如何有效利用MXML组件,特别是通过实例展示如何指定单个ActionScript类的引用,使用xmlns属性直接在标签声明中进行。这种方式能够使代码更加清晰且易于维护。
5021

被折叠的 条评论
为什么被折叠?



