Re: [Flashcoders] oop question kind of...

2006-08-21 Thread Alias

AS2 uses reference counted garbage collection, so to completely delete
an object, you must delete all other objects that refer to it. Calling
delete on a movie clip only removes the reference to the movieclip
object on the stage.

HTH,
Alias



On 8/21/06, [b) a d i [EMAIL PROTECTED] wrote:

Hi,
i've noticed that just because you call delete on a movie clip or even an
object doesn't mean that it totally goes away.  Does anyone know how to
destroy and object and really have it go away since there are no destructors
in as2?

thanks

b

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] oop question kind of...

2006-08-21 Thread Ramon Miguel M. Tayag

Have you tried mc.removeMovieClip() ?

On 8/21/06, [b) a d i [EMAIL PROTECTED] wrote:

Hi,
i've noticed that just because you call delete on a movie clip or even an
object doesn't mean that it totally goes away.  Does anyone know how to
destroy and object and really have it go away since there are no destructors
in as2?

thanks

b


--
Ramon Miguel M. Tayag
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] oop question kind of...

2006-08-21 Thread [b) a d i
 Have you tried mc.removeMovieClip() ?

yes...i should have mentioned it...

a little background...

this is a question i've had for a long time, but didn't have anyone to ask
it to :)...i've been on the macromedia forums, but most of the time i don't
get the answer i need or i get some wise-aker who feels the need to
over-compensate...i say that to express gratitude at having found
flashcoders...populated by real flash coders :)


the problem i have is after calling removeMovieClip or delete is that when i
need to re-instantiate the object...it's either corrupt or not created
properly...i was a little upset to find so many dangling pointers after i
went thru so much trouble to clean up after myself...


thanks

b

- Original Message -
From: Ramon Miguel M. Tayag [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, August 21, 2006 8:50 AM
Subject: Re: [Flashcoders] oop question kind of...


 Have you tried mc.removeMovieClip() ?

 On 8/21/06, [b) a d i [EMAIL PROTECTED] wrote:
  Hi,
  i've noticed that just because you call delete on a movie clip or even
an
  object doesn't mean that it totally goes away.  Does anyone know how to
  destroy and object and really have it go away since there are no
destructors
  in as2?
 
  thanks
 
  b

 --
 Ramon Miguel M. Tayag
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] oop question kind of...

2006-08-21 Thread Ian Thomas

On 8/21/06, [b) a d i [EMAIL PROTECTED] wrote:


the problem i have is after calling removeMovieClip or delete is that when i
need to re-instantiate the object...it's either corrupt or not created
properly...i was a little upset to find so many dangling pointers after i
went thru so much trouble to clean up after myself...



I can't think of a circumstance where this could happen - could you
give us an example?

(Assuming AS2...)

In short, for 'normal' Flash objects (i.e. those created with new
SomeObject()) you're quite
correct, there's no destructor; as with many similar languages,
there's garbage collection system. When nothing is referencing an
object, it gets stuck on the garbage collection list, and will be
properly deleted and the memory freed up when the Flash Player gets
around to it (you can't guarantee exactly when)

For MovieClips created with attachMovie or createEmptyMovieClip,
they're removed from the display list and destroyed using
removeMovieClip(); any dangling references you have to the clip will
become invalid.

HTH,
 Ian
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] oop question kind of...

2006-08-21 Thread Alias

Hi there,

For what it's worth...

Previous to flash 8, the flash player uses both reference counting and
mark/sweep garbage collection, which kicks in every 60 seconds or so,
or when the number of allocated objects is increased by 20%. So the
reference counting takes care of the objects without circular
references, and the garbage collection takes care of the rest.

removeMovieClip is problematic in that it's likely to leave lots of
hanging references, and there's not a great deal you can do about that
- it sounds like you have class dependancies outside of the movieclip
object itself. Have you tried using some kind of factory type approach
to manage your deletion/creation?

Can you give more information about how your objects are being corrupted?

Alias


On 8/21/06, [b) a d i [EMAIL PROTECTED] wrote:

 Have you tried mc.removeMovieClip() ?

yes...i should have mentioned it...

a little background...

this is a question i've had for a long time, but didn't have anyone to ask
it to :)...i've been on the macromedia forums, but most of the time i don't
get the answer i need or i get some wise-aker who feels the need to
over-compensate...i say that to express gratitude at having found
flashcoders...populated by real flash coders :)


the problem i have is after calling removeMovieClip or delete is that when i
need to re-instantiate the object...it's either corrupt or not created
properly...i was a little upset to find so many dangling pointers after i
went thru so much trouble to clean up after myself...


thanks

b

- Original Message -
From: Ramon Miguel M. Tayag [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, August 21, 2006 8:50 AM
Subject: Re: [Flashcoders] oop question kind of...


 Have you tried mc.removeMovieClip() ?

 On 8/21/06, [b) a d i [EMAIL PROTECTED] wrote:
  Hi,
  i've noticed that just because you call delete on a movie clip or even
an
  object doesn't mean that it totally goes away.  Does anyone know how to
  destroy and object and really have it go away since there are no
destructors
  in as2?
 
  thanks
 
  b

 --
 Ramon Miguel M. Tayag
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] oop question kind of...

2006-08-21 Thread badimalik
Have you tried using some kind of factory type approach 
 to manage your deletion/creation? 
yes, i use adts quite often...in fact i use the mvc pattern for quite a few 
apps i create.  So i have views that instantiate whatever movieclips it needs 
and deletes them when it doesn't need them.  the problem begins when a view 
needs to go away either because it is being replaced by another view or 
refreshed.  i noticed that the clips that were supposed to be deleted weren't 
really...futhermore, when being reinstantiated, they won't accept values...they 
exist, but they're undefined somehow...

b

-- Original message -- 
From: Alias [EMAIL PROTECTED] 

 Hi there, 
 
 For what it's worth... 
 
 Previous to flash 8, the flash player uses both reference counting and 
 mark/sweep garbage collection, which kicks in every 60 seconds or so, 
 or when the number of allocated objects is increased by 20%. So the 
 reference counting takes care of the objects without circular 
 references, and the garbage collection takes care of the rest. 
 
 removeMovieClip is problematic in that it's likely to leave lots of 
 hanging references, and there's not a great deal you can do about that 
 - it sounds like you have class dependancies outside of the movieclip 
 object itself. Have you tried using some kind of factory type approach 
 to manage your deletion/creation? 
 
 Can you give more information about how your objects are being corrupted? 
 
 Alias 
 
 
 On 8/21/06, [b) a d i wrote: 
   Have you tried mc.removeMovieClip() ? 
  
  yes...i should have mentioned it... 
  
  a little background... 
  
  this is a question i've had for a long time, but didn't have anyone to ask 
  it to :)...i've been on the macromedia forums, but most of the time i don't 
  get the answer i need or i get some wise-aker who feels the need to 
  over-compensate...i say that to express gratitude at having found 
  flashcoders...populated by real flash coders :) 
  
  
  the problem i have is after calling removeMovieClip or delete is that when 
  i 
  need to re-instantiate the object...it's either corrupt or not created 
  properly...i was a little upset to find so many dangling pointers after i 
  went thru so much trouble to clean up after myself... 
  
  
  thanks 
  
  b 
  
  - Original Message - 
  From: Ramon Miguel M. Tayag 
  To: Flashcoders mailing list 
  Sent: Monday, August 21, 2006 8:50 AM 
  Subject: Re: [Flashcoders] oop question kind of... 
  
  
   Have you tried mc.removeMovieClip() ? 
   
   On 8/21/06, [b) a d i wrote: 
Hi, 
i've noticed that just because you call delete on a movie clip or even 
  an 
object doesn't mean that it totally goes away. Does anyone know how to 
destroy and object and really have it go away since there are no 
  destructors 
in as2? 

thanks 

b 
   
   -- 
   Ramon Miguel M. Tayag 
   ___ 
   Flashcoders@chattyfig.figleaf.com 
   To change your subscription options or search the archive: 
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 
   
   Brought to you by Fig Leaf Software 
   Premier Authorized Adobe Consulting and Training 
   http://www.figleaf.com 
   http://training.figleaf.com 
  
  ___ 
  Flashcoders@chattyfig.figleaf.com 
  To change your subscription options or search the archive: 
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 
  
  Brought to you by Fig Leaf Software 
  Premier Authorized Adobe Consulting and Training 
  http://www.figleaf.com 
  http://training.figleaf.com 
  
 ___ 
 Flashcoders@chattyfig.figleaf.com 
 To change your subscription options or search the archive: 
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 
 
 Brought to you by Fig Leaf Software 
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com 
 http://training.figleaf.com 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] oop question kind of...

2006-08-21 Thread Johannes Nel

it sounds to me that you are using the same depth or instance name for a new
clip before removing the old one.

On 8/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Have you tried using some kind of factory type approach
 to manage your deletion/creation?
yes, i use adts quite often...in fact i use the mvc pattern for quite a
few apps i create.  So i have views that instantiate whatever movieclips it
needs and deletes them when it doesn't need them.  the problem begins when a
view needs to go away either because it is being replaced by another view or
refreshed.  i noticed that the clips that were supposed to be deleted
weren't really...futhermore, when being reinstantiated, they won't accept
values...they exist, but they're undefined somehow...

b

-- Original message --
From: Alias [EMAIL PROTECTED]

 Hi there,

 For what it's worth...

 Previous to flash 8, the flash player uses both reference counting and
 mark/sweep garbage collection, which kicks in every 60 seconds or so,
 or when the number of allocated objects is increased by 20%. So the
 reference counting takes care of the objects without circular
 references, and the garbage collection takes care of the rest.

 removeMovieClip is problematic in that it's likely to leave lots of
 hanging references, and there's not a great deal you can do about that
 - it sounds like you have class dependancies outside of the movieclip
 object itself. Have you tried using some kind of factory type approach
 to manage your deletion/creation?

 Can you give more information about how your objects are being
corrupted?

 Alias


 On 8/21/06, [b) a d i wrote:
   Have you tried mc.removeMovieClip() ?
 
  yes...i should have mentioned it...
 
  a little background...
 
  this is a question i've had for a long time, but didn't have anyone to
ask
  it to :)...i've been on the macromedia forums, but most of the time i
don't
  get the answer i need or i get some wise-aker who feels the need to
  over-compensate...i say that to express gratitude at having found
  flashcoders...populated by real flash coders :)
 
 
  the problem i have is after calling removeMovieClip or delete is that
when i
  need to re-instantiate the object...it's either corrupt or not created
  properly...i was a little upset to find so many dangling pointers
after i
  went thru so much trouble to clean up after myself...
 
 
  thanks
 
  b
 
  - Original Message -
  From: Ramon Miguel M. Tayag
  To: Flashcoders mailing list
  Sent: Monday, August 21, 2006 8:50 AM
  Subject: Re: [Flashcoders] oop question kind of...
 
 
   Have you tried mc.removeMovieClip() ?
  
   On 8/21/06, [b) a d i wrote:
Hi,
i've noticed that just because you call delete on a movie clip or
even
  an
object doesn't mean that it totally goes away. Does anyone know
how to
destroy and object and really have it go away since there are no
  destructors
in as2?
   
thanks
   
b
  
   --
   Ramon Miguel M. Tayag
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] oop question kind of...

2006-08-21 Thread Dan Rogers
I've also found a few quirks with removeMovieClip... however most of  
them seem to be related to depth.  I use this class whenever I remove  
a clip (dynamically attached or otherwise), and it seems to do the  
trick.


/**
The MovieClipRemover class is a static utility class which removes  
timeline movieclips


usage example:
MovieClipRemover.remove(test_mc);
*/

class MovieClipRemover {

// constructor
function MovieClipRemover () {}

// remove a timeline (or any depth) movieclip from the stage
static function remove (mc:MovieClip) {
var parent:MovieClip = mc._parent;
if (parent != null) {
var tempMC:MovieClip = parent.getInstanceAtDepth(0);
mc._visible = false;
mc.swapDepths(0);
mc.removeMovieClip();
if (tempMC != undefined) tempMC.swapDepths(0);
}
}
}

-Danro


On Aug 21, 2006, at 11:34 AM, [EMAIL PROTECTED] wrote:


Have you tried using some kind of factory type approach
to manage your deletion/creation?


yes, i use adts quite often...in fact i use the mvc pattern for  
quite a few apps i create.  So i have views that instantiate  
whatever movieclips it needs and deletes them when it doesn't need  
them.  the problem begins when a view needs to go away either  
because it is being replaced by another view or refreshed.  i  
noticed that the clips that were supposed to be deleted weren't  
really...futhermore, when being reinstantiated, they won't accept  
values...they exist, but they're undefined somehow...


b


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re: [Flashcoders] oop question kind of...

2006-08-21 Thread John Mark Hawley
Using the same depth is fine -- it completely replaces the original clip at 
that depth, eh?


 
 From: Johannes Nel [EMAIL PROTECTED]
 Date: 2006/08/21 Mon PM 02:05:56 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] oop question kind of...
 
 it sounds to me that you are using the same depth or instance name for a new
 clip before removing the old one.
 
 On 8/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  Have you tried using some kind of factory type approach
   to manage your deletion/creation?
  yes, i use adts quite often...in fact i use the mvc pattern for quite a
  few apps i create.  So i have views that instantiate whatever movieclips it
  needs and deletes them when it doesn't need them.  the problem begins when a
  view needs to go away either because it is being replaced by another view or
  refreshed.  i noticed that the clips that were supposed to be deleted
  weren't really...futhermore, when being reinstantiated, they won't accept
  values...they exist, but they're undefined somehow...
 
  b
 
  -- Original message --
  From: Alias [EMAIL PROTECTED]
 
   Hi there,
  
   For what it's worth...
  
   Previous to flash 8, the flash player uses both reference counting and
   mark/sweep garbage collection, which kicks in every 60 seconds or so,
   or when the number of allocated objects is increased by 20%. So the
   reference counting takes care of the objects without circular
   references, and the garbage collection takes care of the rest.
  
   removeMovieClip is problematic in that it's likely to leave lots of
   hanging references, and there's not a great deal you can do about that
   - it sounds like you have class dependancies outside of the movieclip
   object itself. Have you tried using some kind of factory type approach
   to manage your deletion/creation?
  
   Can you give more information about how your objects are being
  corrupted?
  
   Alias
  
  
   On 8/21/06, [b) a d i wrote:
 Have you tried mc.removeMovieClip() ?
   
yes...i should have mentioned it...
   
a little background...
   
this is a question i've had for a long time, but didn't have anyone to
  ask
it to :)...i've been on the macromedia forums, but most of the time i
  don't
get the answer i need or i get some wise-aker who feels the need to
over-compensate...i say that to express gratitude at having found
flashcoders...populated by real flash coders :)
   
   
the problem i have is after calling removeMovieClip or delete is that
  when i
need to re-instantiate the object...it's either corrupt or not created
properly...i was a little upset to find so many dangling pointers
  after i
went thru so much trouble to clean up after myself...
   
   
thanks
   
b
   
- Original Message -
From: Ramon Miguel M. Tayag
To: Flashcoders mailing list
Sent: Monday, August 21, 2006 8:50 AM
Subject: Re: [Flashcoders] oop question kind of...
   
   
 Have you tried mc.removeMovieClip() ?

 On 8/21/06, [b) a d i wrote:
  Hi,
  i've noticed that just because you call delete on a movie clip or
  even
an
  object doesn't mean that it totally goes away. Does anyone know
  how to
  destroy and object and really have it go away since there are no
destructors
  in as2?
 
  thanks
 
  b

 --
 Ramon Miguel M. Tayag
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
   
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
   
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 
 
 
 -- 
 j:pn
 http://www.lennel.org

Re: [Flashcoders] oop question kind of...

2006-08-21 Thread Alias

In what way were they not deleted? How have you assertained this?

Also, what syntax are you using for removeMovieClip? A common mistake
is to pass a reference to the movie you want to delete as a parameter,
like so:

removeMovieClip(myMc)

Whereas actually, removeMovieClip is a member function of the
MovieClip superclass, so you need to do:

myMc.removeMovieClip()

This is confusing because sometimes the first one works, depending on
the scope you call it from.

HTH
Alias


On 8/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Have you tried using some kind of factory type approach
 to manage your deletion/creation?
yes, i use adts quite often...in fact i use the mvc pattern for quite a few 
apps i create.  So i have views that instantiate whatever movieclips it needs 
and deletes them when it doesn't need them.  the problem begins when a view 
needs to go away either because it is being replaced by another view or 
refreshed.  i noticed that the clips that were supposed to be deleted weren't 
really...futhermore, when being reinstantiated, they won't accept values...they 
exist, but they're undefined somehow...

b

-- Original message --
From: Alias [EMAIL PROTECTED]

 Hi there,

 For what it's worth...

 Previous to flash 8, the flash player uses both reference counting and
 mark/sweep garbage collection, which kicks in every 60 seconds or so,
 or when the number of allocated objects is increased by 20%. So the
 reference counting takes care of the objects without circular
 references, and the garbage collection takes care of the rest.

 removeMovieClip is problematic in that it's likely to leave lots of
 hanging references, and there's not a great deal you can do about that
 - it sounds like you have class dependancies outside of the movieclip
 object itself. Have you tried using some kind of factory type approach
 to manage your deletion/creation?

 Can you give more information about how your objects are being corrupted?

 Alias


 On 8/21/06, [b) a d i wrote:
   Have you tried mc.removeMovieClip() ?
 
  yes...i should have mentioned it...
 
  a little background...
 
  this is a question i've had for a long time, but didn't have anyone to ask
  it to :)...i've been on the macromedia forums, but most of the time i don't
  get the answer i need or i get some wise-aker who feels the need to
  over-compensate...i say that to express gratitude at having found
  flashcoders...populated by real flash coders :)
 
 
  the problem i have is after calling removeMovieClip or delete is that when i
  need to re-instantiate the object...it's either corrupt or not created
  properly...i was a little upset to find so many dangling pointers after i
  went thru so much trouble to clean up after myself...
 
 
  thanks
 
  b
 
  - Original Message -
  From: Ramon Miguel M. Tayag
  To: Flashcoders mailing list
  Sent: Monday, August 21, 2006 8:50 AM
  Subject: Re: [Flashcoders] oop question kind of...
 
 
   Have you tried mc.removeMovieClip() ?
  
   On 8/21/06, [b) a d i wrote:
Hi,
i've noticed that just because you call delete on a movie clip or even
  an
object doesn't mean that it totally goes away. Does anyone know how to
destroy and object and really have it go away since there are no
  destructors
in as2?
   
thanks
   
b
  
   --
   Ramon Miguel M. Tayag
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig