MXml ASDoc
哈哈,心情大好。
先贴上官方的http://help.adobe.com/en_US/flex/using/WSd0ded3821e0d52fe1e63e3d11c2f44bc36-7ff2.html
真喜欢Adobe.
In MXml ,common for componet is ignored by ASDoc.
<?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"
minWidth="955" minHeight="600"
>
<fx:Declarations>
<!-- 将非可视元素(例如服务、值对象)放在此处 -->
</fx:Declarations>
<fx:Metadata>
<![CDATA[
/**
* The component dispatches the darken event
* when the darken property changes.
*
*/
[Event(name="search",type="flash.events.Event")]
]]>
</fx:Metadata>
<fx:Script>
<![CDATA[
import spark.core.SpriteVisualElement;
public function get steam():String
{
var l:String = "gfgh";
return l;
}
/**
*
* This is a function.
* Yeah,this is a function.
*
* @param item 希望可以啊
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion Flex 4
*
*/
public function creamtHandler(item:SpriteVisualElement):void
{
}
]]>
</fx:Script>
<fx:Declarations>
<!---
Specifies the skin for the first button on the ButtonBar.
@default spark.skins.default.ButtonBarFirstButtonSkin
-->
<fx:Component id="firstButton">
<s:ButtonBarButton />
</fx:Component>
</fx:Declarations>
<!---
Comment for first button appears in the output.
-->
<s:Button id="myButton" label="This button has a comment"/>
<!---
This button is for a test.
@default spark.skins.default.ButtonBarFirstButtonSkin
@see mx.container.VBox
-->
<s:Button id="btn" x="25" y="141"/>
<!--This ll;.
-->
<s:ComboBox x="25" y="234"/>
</s:Application>
By the way ,if I add as source in script,it is ignored by ASDoc too.So bad
浙公网安备 33010602011771号