本篇文章介绍在MXML中编写ASDoc文档。
单行注释:
多行注释:

例如:(例子摘自 http://s.k-zone.cn/asdocmxml)



    xmlns:mx="library://ns.adobe.com/flex/halo"
    xmlns:s="library://ns.adobe.com/flex/spark">
   
   
            label="Has id but no comment so appears in output"/>
   
   
同样在mxml里面的里面也可以使用ASDoc Tags
   
                    import flash.events.MouseEvent;
            /**
             * For a method in an <Script> block,
             * same rules as in an AS file.
             *
             * @param eventObj The event object.
             */
            public function handleClickEvent(eventObj:MouseEvent):void {
                dispatchEvent(eventObj);
            }  
            /**
             * For a property in an <Script> block,
             * same rules as in an AS file.
             */
            public var myString:String = new String();
        ]]>
   
例如:

   
   
       
   

例如:

/**
* Defines the default style of selected text.
*/
[Style(name="textSelectedColor",type="Number",format="Color",inherit="yes")]
]]>