开发者

How do I write a comment for an item I defined in flex?

开发者 https://www.devze.com 2023-01-25 22:27 出处:网络
I want to add a comment to some elements in a Flex document, and process the comments using ASDoc. I can easily do this for the script portion, but I end up with a ton of ugly \"This property can be u

I want to add a comment to some elements in a Flex document, and process the comments using ASDoc. I can easily do this for the script portion, but I end up with a ton of ugly "This property can be used as the source for data binding." messages for each element I declared in Flex.

Is there any way to embed a comment into a flex element so that it can be read by ASDoc? I have tried using the standard

<!-- --> 

notation, but that didn't seem to work.

EDIT: The notation seems to be swallowed up as an HTML comment, I presume you know what it looks like...开发者_StackOverflow社区


Without seeing your code it is a bit hard to tell exactly what is going on. Nothing about ASdocs should be generating an bindable compiler error. Are you getting that error from the Flex compiler or the ASDoc compiler? Are you trying to document an MXML Document or an ActionScript document?

Have you read these docs?

On ActionScript:

/**
* Your Comment Goes Here
*/
ActionScript Element

And on MXML? MXML ASDoc comments must user three dashes, not 2 for the first comment marker. Like this:

<!--- Your comment goes here -->
MXML Element


Are you trying to put comments in the markup?

According to the Flex Documentation here, "Because the format of an ASDoc comment uses ActionScript syntax, you can only insert an ASDoc comment in an block of an MXML file."


You can use these // and /* */ (within ActionScript blocks) To comment out a MXML node use <!-- and end with -->

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号