Local connection

Hi,

I’m working on a new website which contains several swf’s. They are all loaded into the main swf. To communicate between the swf’s I use local connection. The Connection works just fine, but I’m having some problems with the removeBack function.

[AS]
function maakKlaar(){
_root.item._visible = false;
_root.newsHolder._visible = false;
}
maakKlaar();
// maak nieuwe local connection aan
lCon = new LocalConnection();
//maak connectie met localCon
lCon.connect(“localCon”);
//functie om de data verkregen uit de main movie te verwerken
lCon.receiveData = function(exit) {
// als exit true is voer dan het volgende uit
if (exit) {
// roep functie ga weg op zodat er een transition komt tussen verschillende movies
gaWeg(_root.achtergrond, _root.item, 25);
}
};
// functie gaWeg zorgt ervoor dat alles weer verdwijnt
function gaWeg(mc, mc1, endX) {
_root.newsHolder._visible = false;
// mc1 oef
function removeBack(){
mc.onEnterFrame = function() {
i=8;
ease = this._yscale/i;
this._yscale -= ease;
i–;
if (this._yscale<=1) {
this._yscale=1;
delete this.onEnterFrame;
}
};
}
// mc oef
mc1.onEnterFrame = function() {
ease = this._x/10;
this._x += ease;
if (this._x>=endX) {
this._x = endX;
removeBack();
delete this.onEnterFrame;
this._visible = false;
}
};
if((mc._visible = false) && (mc1._visible = false)){
// zorg ervoor dat de hele movie geunload wordt.
_root.unloadMovie();
}
}
[/AS]

As you see there is a receive function for receiving the data send from the main swf.

My problem:
When I click a button in the main swf. You see my movieclip called “item” moving but “achtergrond” has allready disappeared with out a animation. So the error is somewhere in the function removeBack but I don’t know where.

thnx