Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: kill off an object |
From: | Not In My Backyard! |
Date: | Wed, 13 Sep 2000 12:24:31 +0100 |
Help/ActionScriptDictionary/html/05_de_i1.html
delete
Syntax
delete (reference);
Arguments
reference The name of variable or object to eliminate.
Description
Operator; destroys the object or variable specified as the reference,
and returns true if the object was successfully deleted; otherwise
returns false. This operator is useful for freeing up memory used by
scripts, although, delete is an operator, it is typically used as a
statement:
delete x;
The delete operator may fail and return false if the reference does
not exist, or may not be deleted. Predefined objects and properties,
and variables declared with var, may not be deleted.
Player
Flash 5 or later.
account = new Object();
account.name = 'Jon';
account.balance = 10000;
...
delete account;
-dale
>Hello
>
>Anyone know how to work delet an object of your own.
>
>
>
>onClipEvent (load) {
>
>myobj = new object(); -- create my object
>
>function func(){
>trace("pigg");
>}
>
>myobj.finc = func;}
>
>
>call my function
>
>myobj.finc(); -- prints "pigg"
>
>
>
>
>Fine, but once I've used my object how can I get rid of it?
>
>myobj = null or = 0 doesn't kill it off!!
>
>
>Also is it possible to assign a flash event handler (enterframe) to my obj?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
FLASH: kill off an object, kevin dowd
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]