Scripting Methods Supported in the Flash 4 Players
With the new Flash 4 features, there are some new Scripting Methods supported by the Flash 4 players. All of the methods supported in the Flash 3 players are still supported in the Flash 4 players. For more information on those methods, see Using JavaScript with Flash Player (TechNote 4160) or the in depth article Scripting with Flash.
The following is a list of new methods supported only by the Flash 4 players:| |
SetVariable(String name, String value) |
| |
String |
| |
|
| |
String |
| |
TCallFrame(String target, int frameNum) |
| |
|
Theproperty parameter for the TGetProperty andTSetProperty calls must be specified in one of the following ways:
| |
In JavaScript, it will be necessary to use the corresponding integer value representing that property; for example: TGetProperty("/ball", 0) |
| |
In Java, it's possible to use the constants in the ShockwaveFlash class instead of using the integer value; for example, ShockwaveFlash.POS_X |
Use the following table to determine the integer that should be used for the corresponding property in your scripting environment.
| Property | Integer | Constant | Getable | Set-able |
| X Position | 0 | X_POS | x | x |
| Y Position | 1 | Y_POs | x | x |
| X Scale | 2 | X_SCALE | x | x |
| Y Scale | 3 | Y_SCALE | x | x |
| Current Frame | 4 | CURRENT_FRAME | x | |
| Total Frames | 5 | TOTAL_FRAMES | x | |
| Alpha | 6 | ALPHA | x | x |
| Visibility | 7 | VISIBLE | x | x |
| Width | 8 | WIDTH | x | |
| Height | 9 | HEIGHT | x | |
| Rotation | 10 | ROTATE | x | x |
| Target path | 11 | TARGET | x | |
| Frames Loaded | 12 | FRAMES_LOADED | x | |
| Instance name | 13 | NAME | x | x |
| Drop Target path | 14 | DROP_TARGET | x | |
| URL | 15 | URL | x | |
| Global Properties | ||||
| High Quality | 16 | HIGH_QUALITY | x | x |
| Focus Rectangle | 17 | FOCUS_RECT | x | x |
| Sound Buffer Time | 18 | SOUND_BUF_TIME | x | x |
Note:Not all properties can be set.
This content requires Flash
To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.
Download the free Flash Player now!
