совсем забыл про эти статические переменные, очень полезная в хозяйстве вещь
по здравом размышлении диспетчер оказался лишним, вот что получилось в результате:

Код AS3:
// file test.as
package {
import flash.display.MovieClip;
import flash.events.Event;
import radioButton;
public class test extends MovieClip {
public function test() {
addEventListener(Event.ADDED_TO_STAGE,init);
}
private function init(event:Event):void {
removeEventListener(Event.ADDED_TO_STAGE,init);
var rb1:radioButton = new radioButton(50);
var rb2:radioButton = new radioButton(100);
var rb3:radioButton = new radioButton(150);
addChild(rb1);
addChild(rb2);
addChild(rb3);
}
}
}
// file radioButton.as
package {
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class radioButton extends MovieClip {
private static var num:Number = 0;
private static var instances:Array = new Array();
public function radioButton(x:Number) {
instances.push(this);
num++;
name = "button" + String(num);
graphics.beginFill(0xff0000, 1);
graphics.drawRect(0,0,30,30);
graphics.endFill();
this.x = x;
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, mouseClick);
}
private function mouseClick(e:MouseEvent) {
trace("\n" + e.currentTarget.name + " has been clicked");
for (var i in instances) {
if (instances[i] != e.currentTarget) {
instances[i].switchIt();
}
}
}
private function switchIt() {
trace(this.name + " has been told to switch");
}
}
}
// output
button1 has been clicked
button2 has been told to switch
button3 has been told to switch
button2 has been clicked
button1 has been told to switch
button3 has been told to switch
button3 has been clicked
button1 has been told to switch
button2 has been told to switch
как раз то, что мне нужно, всем спасибо!