Managing with multiple XML namespace in Flex 2 applications

A classic example occurs for external MXML components  :

xml 代码
  1. <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" pageTitle="FlexGala - Author : Marco Casario" xmlns:myComp="myFolder.*" >  
  2.   
  3. <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 代码
  1. <fx:FABridge xmlns:fx=”ajaxbridge.*” />  

你可能感兴趣的:(xml,Flex,Adobe,actionscript)