This used上班:
创建一个名为design.xml
在您的 /src 文件夹中:
<?xml version="1.0" ?>
<design>
<namespaces>
<namespace prefix="mangos" uri="http://com.mangofactory.sample/mxml/2010" />
</namespaces>
</design>
创建一个名为manifest.xml
在您的 /src 文件夹中:
<componentPackage>
<component id="MyClass" class="com.mangofactory.framework.MyClassTag"/>
</componentPackage>
Configure your Namespace URL, etc in the build properties:
This is supposed使flash builder提示如下:
<?xml version="1.0" encoding="utf-8"?>
<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"
xmlns:mangos="http://com.mangofactory.sample/mxml/2010">
<fx:Declarations>
<mangos:MyClass />
</fx:Declarations>
</s:Application>
(请注意,该类显示为MyClass
代替MyClassTag
,命名空间显示为mangos
)
但是,我只是尝试这样做,尽管该类已正确重命名,但命名空间显示为ns
。我知道这曾经在 FB3.x 中工作,也许我忘记了一个步骤,或者 FB4.5 破坏了它。