ActionScript Conventions

Enterprise Architect supports round trip engineering of ActionScript 2 and 3, where the following conventions are used.

Stereotypes

Reference:

Stereotype

Applies To

Corresponds To

literal

Operation

A literal method referred to by a variable.

property get

Operation

A read property.

property set

Operation

A write property.

Tagged Values

Reference:

Tag

Applies To

Corresponds To

attribute_name

Operation with stereotype property get or property set

The name of the variable behind this property.

dynamic

Class or Interface

The dynamic keyword.

final

ActionScript 3: Operation

The final keyword.

intrinsic

ActionScript 2: Class

The intrinsic keyword

namespace

ActionScript 3: Class, Interface, Attribute, Operation

The namespace of the current element.

override

ActionScript 3: Operation

The override keyword.

prototype

ActionScript 3: Attribute

The prototype keyword.

rest

ActionScript 3: Parameter

The rest parameter ( ... ).

Topics:

Topic

Detail

See also

Common Conventions

  • Package qualifiers (ActionScript 2) and Packages
    (ActionScript 3) are generated when the current package is not a namespace root
  • An unspecified type is modeled as var or an empty Type field

Namespaces

ActionScript 3 Conventions

  • The Is Leaf property of a Class corresponds to the sealed keyword
  • If a namespace tag is specified it overrides the Scope that is specified

 

Learn More: