2015-01-15 42 views
0

有沒有類似於AS3類的ASDoc爲MXML文檔添加類ASDoc的方法?如何爲MXML文件創建類ASDoc

MyClass.as的ASDoc:

/** 
* This shows up when hovering over the class in Flash Builder. 
* The Group class is the base container class for visual elements. 
* <p>The <code>&lt;s:Group&gt;</code> tag inherits all of the tag 
* attributes of its superclass and adds the following tag attributes:</p> 
* 
* 
* @see spark.components.DataGroup 
* @see spark.components.SkinnableContainer 
* 
*/ 
public class MyClass extends Group { 

} 

MyClass.mxml的ASDoc:

<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" 
     xmlns:s="library://ns.adobe.com/flex/spark"> 

    <!--- 
    ASDoc??? 
    Does this show up when hovering over the class in Flash Builder? 
    A label, text input and button that is used to select a file or a folder 

    --> 
</s:Group> 

回答

1

是的,這是可能的,你是附近的解決方案:

<!--- This shows up when hovering over the class in Flash Builder! --> 
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" 
    xmlns:s="library://ns.adobe.com/flex/spark"> 
</s:Group> 

參見:Documenting MXML files