# ADVANCED - Class references are still there after unloading object

**URL:** <https://forum.kirupa.com/t/advanced-class-references-are-still-there-after-unloading-object/65844>\
**Category:** Uncategorized\
**Created:** [September 30, 2004, 12:17am UTC](https://forum.kirupa.com/t/advanced-class-references-are-still-there-after-unloading-object/65844 "2004-09-30T00:17:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![d2kagw](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/d2kagw/32/539_2.png) [@d2kagw](https://forum.kirupa.com/u/d2kagw)\
**Post date:** [September 30, 2004, 12:17am UTC](https://forum.kirupa.com/t/advanced-class-references-are-still-there-after-unloading-object/65844/1 "2004-09-30T00:17:21Z")

</div>

Hi There,

Im having some really weird issues with loading external SWF’s and its class files hanging around after the movie is unloaded…

Its kind of tricky to explain, but you can see it very clearly in this file… [http://69.0.250.15/What\_the.zip](http://69.0.250.15/What_the.zip)  
Just run the main\_stage.fla within flash [mx 04] and you’ll see that if you click “Tester A” it will trace out “My Name is Tester A”, then if you click on “Tester B” it will load a different swf, with a different class, but still trace out “My Name is Tester A” when it should be “My Name is Tester B”…

I have tried, unloading the swf’s, removing the mc\_Dropper and re-attaching it, re-declaring the variable testObj as null before declaring the class, basically everything I can think of…

I really need help on this one, the deadline is looming and I can’t afford to spend any more time on this…

Cheers

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 30, 2004, 1:09am UTC](https://forum.kirupa.com/t/advanced-class-references-are-still-there-after-unloading-object/65844/2 "2004-09-30T01:09:33Z")

</div>

OK first:  
Remove the class paths from the actionscript settings in testerA.fla and testerB.fla.

Second:  
In testera.as, change the class definition line to - 'class testera.tester’  
In testerb.as, change the class definition line to - ‘class testerb.tester’

Third:  
TesterA.fla should then be changed to this

```auto
//
	var testObj : testera.tester
//
	testObj = new testera.tester()
//

```

and TesterB.fla should then be changed to this

```auto
//
	var testObj : testerb.tester
//
	testObj = new testerb.tester()
//

```

Works fine.

Cheers,  
c

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 30, 2004, 1:19am UTC](https://forum.kirupa.com/t/advanced-class-references-are-still-there-after-unloading-object/65844/3 "2004-09-30T01:19:06Z")

</div>

Oh, My, God…

Carlos… your a life saver !!!

Thanks so much for your help !
