ADVANCED - Class references are still there after unloading object

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
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

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

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

and TesterB.fla should then be changed to this

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

Works fine.

Cheers,
c

Oh, My, God…

Carlos… your a life saver !!!

Thanks so much for your help !