delete array[2];
trace(my_array.length);
Usage 4: The following example illustrates the behavior of
// create a new object, and assign the variable ref1
// to refer to the object
ref1 = new Object();
ref1.name = "Jody";
// copy the reference variable into a new variable
// and delete ref1
ref2 = ref1;
delete ref1;
If
had not been copied into
ref1
deleted, because there would be no references to it. If you delete
references to the object; it will be destroyed, and the memory it was using will be made available.
See also
var
do while
Availability
Flash Player 4.
Usage
do {
statement(s)
} while (condition)
Parameters
The condition to evaluate.
condition
statement(s)
to
.
true
Returns
Nothing.
Description
Statement; executes the statements, and then evaluates the condition in a loop for as long as the
condition is
true
See also
,
break
continue
372
Chapter 12: ActionScript Dictionary
, the object would have been deleted when
ref2
The statement(s) to execute as long as the
.
on object references.
delete
, there will no longer be any
ref2
parameter evaluates
condition
was
ref1
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers