Very strange glitch

Ok, this is very very odd… The first visible = false works, and the second one doesnt… Yet both work after the myBuggy movieclip is added to stage…


var newBuggy:Buggy=new Buggy;
newBuggy.Turret.aimGuide.visible = false;
newBuggy.turretArc.visible = false;
gameLevel.addChild(newBuggy);

Wtf???

I tried placing “turretArc.visible = false;” inside the instantiation of the class… Nothing! No error, doesn’t do anything…

Nada…


public function Buggy() {
      turretArc.visible = false;
}

Then… Later… It works here:

var myBuggy=gameLevel.getChildByName(getPlayerData(myId).childName);
myBuggy.turretArc.visible = false;

It gets even stranger… I click on the movieclips in the library, and set them for runtime sharing… turretArc22, and turretArc45, and it tells me turretArc@4584?? cannot be converted to turretArc? Then I comepile again, and no error…