This has escalated even further now...
I can't get anywhere near my array index for properties, I just keep getting 1120 access of undefined property of _muteButtons and _soloButtons!!
Also, I'm getting an error flashing up quickly saying migration error or something before the .swf file loads after adding gotoAndPlay???
This is what I'm trying to trace and change to test if the function is working:
Document class:
ActionScript Code:
_muteButtons = new Array();
var count2:uint = 4;
var _muteIndex:muteButton;
for (var ii:int = 0; ii < count2; ii++)
{
_muteIndex = new muteButton();
with (_muteIndex)
{
x = mutePosX;
y = mutePosY;
buttonMode = true;
gotoAndStop("1"); //migration error
addEventListener(MouseEvent.CLICK, muteTrack);
}
mutePosY = mutePosY + 34.9;
_muteIndex.muteONOFF = muteONOFF;
_muteButtons.push(_muteIndex);
addChild(_muteIndex);
}
var _soloButtons:Array;
_soloButtons = new Array();
var count3:uint = 4;
var _soloIndex:soloButton;
for (var iii:int = 0; iii < count2; iii++)
{
_soloIndex = new soloButton();
with (_soloIndex)
{
x = soloPosX;
y = soloPosY;
buttonMode = true;
gotoAndStop("start"); //migration error??
addEventListener(MouseEvent.CLICK, soloTrack);
}
soloPosY = soloPosY + 34.9;
_soloIndex.soloONOFF = soloONOFF;
_soloButtons.push(_soloIndex);
addChild(_soloIndex);
}
}
public function muteTrack(e:MouseEvent):void
{
if (e.target.muteONOFF == true)
{
_muteButtons[0].trackVolume = 0; //doesnt work
trace("mute");
trace(e.target.muteONOFF);
}
else
{
trace("no luck");
}
}
public function soloTrack(e:MouseEvent):void
{
trace("solo");
trace(e.target.soloONOFF);
trace(_soloButtons.indexOf(e.currentTarget)); //doesnt work
}
}
The buttons are MovieClip symbols to

and they trace fine at the end of each for loop
ActionScript Code:
[object soloButton],[object soloButton]
[object soloButton],[object soloButton],[object soloButton]
[object soloButton],[object soloButton],[object soloButton],[object soloButton]