Generate ActionScript using Instant Generator
Visual Paradigm for UML and Smart Development Environment provides a feature named Instant Generator which allows to generate source from class model for different programming language. ActionScript, a language used in Adobe Flash and is one of the supporting languages of Instant Generator. The below steps are describing how to generate ActionScript from class model.
Classes and Relationships Modeling
Before the ActionScript generation, class model should be existed. Open an existing VP project or model classes and relationships.

Instant Generator Dialog
Instant Generator Dialog is the main user interface of Instant Generator which providing feature such as configuration, preview or generation. To open Instant Generator Dialog, click Tools > Instant Generator > Instant Generator... on top menu.

Configuration for ActionScript Generation
For smooth generation, only few values are required to input.
Select
ActionScript in
Language for ActionScript generation.
Input
Output Path for placing generated source file(s).
Select class(es) or package(s) which to be used for generation.
ActionScript options
Each Language contains specify options. For editing those options, click Advance.


Below table describes the ActionScript options.
| Option name | Description |
| Unnamed Attribute | Name to be used when name is empty |
| Invalid Char Replacement | Replace character for invalid character in name |
| Indentation | Indentation text for generated result |
| Attribute Prefix | Prefix of attribute |
| Local Variable Prefix | Prefix of local variable |
| Parameter Prefix | Prefix of parameter |
| Generate Association Operations | Generate operations for association or not |
Preview or Generate
In instant generator, it allows to preview the generation result before the actual generation.
For preview purpose, press
Preview in
Instant Generator Dialog.
For generate purpose, press
Generate in
Instant Generator Dialog.
ActionScript is generated in output path.
Press
Close to close
Instant Generator Dialog.
Samples
Click on the link below to download:
Resources
Visual Paradigm for UML Home
DB Visual ARCHITECT
SDE Home
Download Free Community Edition of Visual Paradigm for UML
Download DB Visual ARCHITECT
Download SDE