Asdoc metadata errors for the MXML component, which includes a separate .as file

I have an MXML component that contains an .as file with

<fx:Script source="myfile.as" />

Running asdoc causes a number of errors, such as

"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 this issue was in this article: http://danielmclaren.net/2009/08/28/using-asdoc-with-mxml-files-and-included-scripts .
This describes a problem with two possible solutions:

  • Solution 1 - move the AS code to an MXML file. The view strikes the purpose of using external .as files for MXML components in the first place, so this is really the last resort option. The code inside the mxml file is messy (I really don't need the logic mixed with mxml), and I also need to use <! --- ---> asdoc syntax.
  • Solution 2 is to inherit the MXML component from a normal class file. This would mean the absence of private members of the base class, only internal (which means a separate package for component security) or protection. That would make it tiring to say.

Are there any other working options, or maybe a beta / night version of asdoc that fixes the problem? I am using the Flex 4.1.0.16076 SDK, the "latest product release."

Update

asdoc svn trunk (4.5.0 rev. 16942), .

+3
1

, 1 . , AS MXML, ? , , , , AS, MXML. , id HBox, , , , . , AS MXML.

+2

Source: https://habr.com/ru/post/1756811/


All Articles