I have an MXML component that includes a .as file with
<fx:Script source="myfile.as" />
Running asdoc throws a whole bunch of errors like
"Error: The private attribute may be used only on class property definitions."
"Error: The public attribute can only be used inside a package."
The only useful information I could find on the subject was in this article: http://danielmclaren.net/2009/08/28/using-asdoc-with-mxml-files-and-included-scripts.
The problem is described there with two possible solutions:
Are there any other work-arounds or possibly a beta/nightly version of asdoc that fixes the problem? I am using the Flex 4.1.0.16076 SDK, the "latest production quality release".
Update
Just tried using asdoc from the svn trunk, (4.5.0 rev. 16942) and the problem persists.
Honestly, I got used to Solution 1 and never looked back. I figure I'm already mixing AS and MXML, so where's the harm? Plus you get the added advantage of being able to have the member highlighting bridge both AS and MXML. Click on the text of the id property of your HBox, for example, and your code window gets markers that show you where on the page that member is referenced. This is a nice feature that is, for me, well worth abandoning any fussiness about separating AS from MXML.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With