Fscommand Function - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Parameters
expression:Object
parameter can be either a String or a direct reference to the object instance (i.e use of
quotation marks (" ") is optional.)
Returns
- A value, reference to an object or movie clip, or
Object
Example
The following example uses
ActionScript sets the
, and
square2_mc
square3_mc
for (var i = 1; i <= 3; i++) {
setProperty(eval("square"+i+"_mc"), _rotation, 5);
}
You can also use the following ActionScript:
for (var i = 1; i <= 3; i++) {
this["square"+i+"_mc"]._rotation = -5;
}
See also
,
Array
set variable statement

fscommand function

fscommand(command:String, parameters:String) : Void
Lets the SWF file communicate with either Flash Player or the program that is hosting Flash
Player, such as a web browser. You can also use the
Macromedia Director, or to Visual Basic (VB), Visual C++, and other programs that can host
ActiveX controls.
54
ActionScript language elements
- The name of a variable, property, object, or movie clip to retrieve. This
to set properties for dynamically named movie clips. This
eval()
property for three movie clips, called
_rotation
.
.
undefined
square1_mc
function to pass messages to
fscommand()
,

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF