Global Functions
77
mbsubstring function
mbsubstring(value:String, index:Number, count:Number) : String
Deprecated
since Flash Player 5. This function was deprecated in favor of
String.substr()
.
Extracts a new multibyte character string from a multibyte character string.
Availability:
ActionScript 1.0; Flash Player 4
Parameters
value
:String
- The multibyte string from which to extract a new multibyte string.
index
:Number
- The number of the first character to extract.
count
:Number
- The number of characters to include in the extracted string, not including
the index character.
Returns
String
- The string extracted from the multibyte character string.
See also
substr (String.substr method)
MMExecute function
MMExecute(
"Flash JavaScript API command;":String
) : String
Lets you issue Flash JavaScript API (JSAPI) commands from ActionScript. In Flash MX2004
the
MMExecute
function can be called only by a movie that is used as a Flash Panel (file is
stored in WindowSWF directory), by an XMLtoUI dialog box, or by the Custom UI of a
component. JSAPI commands have no effect in the player, in test movie mode, or outside the
authoring environment.
The Flash JSAPI provides several objects, methods, and properties to duplicate or emulate
commands that a user can enter in the authoring environment. Using the JSAPI, you can
write scripts that extend Flash in several ways: adding commands to menus, manipulating
objects on the Stage, repeating sequences of commands, and so on.
In general, a user runs a JSAPI script by selecting Commands > Run Command. However,
you can use this function in an ActionScript script to call a JSAPI command directly. If you
use
MMExecute()
in a script on Frame 1 of your file, the command executes when the SWF
file is loaded.
For more information on the JSAPI, see www.macromedia.com/go/jsapi_info_en.
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...