вариант на ивентах:

Код AS3:
public class Game extends Sprite {
public function Game() {
super();
super.addEventListener( "myEvent", this.onMyEvent );
super.addChild( new Ball() );
}
private function onMyEvent( event:Event ):void {
trace("onMyEvent");
this.myFunction( event.target as Bonus );
}
private function myFunction( bonus:Bonus ):void {
trace("myFunction", bonus);
}
}
public class Ball extends Sprite {
public function Ball() {
super();
super.addChild( new Bonus() );
}
}
public class Bonus extends Sprite {
public function Bonus() {
super();
setTimeout( this.onTimeOut, 100 );
}
private function onTimeOut():void {
super.dispatchEvent( new Event( "myEvent", true, false ) );
}
}