-2

关于 Flex,我需要澄清一下。如果我重命名命名空间会发生什么

 <mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009" 
       xmlns:s="library://ns.adobe.com/flex/spark" 
       xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%">

替换为

<mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009" 
   xmlns:dx="library://ns.adobe.com/flex/spark" 
   xmlns:ot="library://ns.adobe.com/flex/mx" width="100%" height="100%">

需要知道为什么以及如果我这样做会发生什么...

提前谢谢!

4

1 回答 1

2

举个例子,事情会这样改变:

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
   xmlns:s="library://ns.adobe.com/flex/spark" 
   xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%">
   <mx:ViewStack id="mainStack"  top="0" bottom="0"
                 width="100%" height="100%"
                 >
                 <mx:VBox>
                    <s:CheckBox  selected="true"/>
                 </mx:VBox>
    </mx:ViewStack>

<ddd:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
           xmlns:ddd="library://ns.adobe.com/flex/spark" 
           xmlns:yyy="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">

        <yyy:ViewStack id="mainStack"  top="0" bottom="0"
              width="100%" height="100%"
              >
    <yyy:VBox>
        <ddd:CheckBox  selected="true"/>
    </yyy:VBox>
</yyy:ViewStack>

于 2013-07-31T09:39:36.893 回答