首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何为MXML文件创建类ASDoc

如何为MXML文件创建类ASDoc
EN

Stack Overflow用户
提问于 2015-01-15 08:39:25
回答 1查看 44关注 0票数 0

是否有一种方法可以为MXML文档添加类ASDoc,类似于AS3类的ASDoc?

MyClass.as ASDoc:

代码语言:javascript
复制
/**
 *  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:

代码语言:javascript
复制
<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>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-01-15 09:29:38

是的,这是可能的,而且你已经接近解决方案了:

代码语言:javascript
复制
<!--- 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>

另见:记录MXML文件

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27959491

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档