Question

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...

Was it helpful?

Solution

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."

OTHER TIPS

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

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top