|
Visual Paradigm supports different programming languages including ActionScript. In Visual Paradigm Suite 3.3, we enhanced the support of ActionScript in order to facilitate modeling in ActionScript. This article discusses the enhancements for ActionScript support in VP Suite 3.3.
From VP Suite 3.3, we have added ActionScript as one of the programming languages, that means you are able to use the data types supported by ActionScript. Also, there are more specific code details settings for ActionScript. 
In the following sections, we will show you all the enhancements of supporting ActionScript in our products. Configuring ActionScript as Programming LanguageBy default, UML is the programming language in our products, but you can switch to ActionScript to fit your need. Open the Programming Language dialog box by either one of the following ways: In the Programming Language dialog box, click to show the drop-down menu of Language and select ActionScript. 
Upon selection, the table will show how data types will be mapped from the current language to ActionScript. Click OK to confirm switching. 
Defining Metadata Tag for ClassYou can also specify the code details of a class, allowing you to add metadata tag to the classes, attributes and operations. Note: you can only edit the ActionScript specific code details after you have configured ActionScript as the programming language. Here we have a class shape with an attribute and we are going to edit the Metadata tag in an attribute as an example: 
Open the specification of the attribute by one of the ways listed below: Click on the attribute and press the Enter key. Right-click on the attribute and select Open Specification... in the popup menu. 
In the Model Explorer, right-click on the attribute and select Open %attribute-name% Specification... in the popup menu. 
In the Attribute Specification dialog box, click the Attribute Code Details tab. 
Enter details in the Metadata tag field. Here is an example: 
After editing, click OK to confirm and close the dialog box.
Generate ActionScript Code by Instant GeneratorUsing the Instant Generator, you can generate ActionScript code for programming. Select Tools > Instant Generator > ActionScript... in the Main Menu. 
Select the model(s) to generate ActionScript code. 
Specify the output path for the code. 
After completed all settings, click Generate to proceed. Here is a sample code for ActionScript and you can see the Metadata tag details on it: 
 |