код класса mean :

Код AS3:
private var _info:XML;
public function mean(info:XML)
{
_info = info;
func1();
}
private function func1():void
{
var number:Main = new Main();
var ids:XMLList = _info.part;
_text = new TextField();
_text.defaultTextFormat = _textFormat;
_text.multiline = true;
_text.wordWrap = true;
_text.width = _blockWidth - 20;
_text.htmlText += '<a href = "event:' + i + '">' + ids[i].name + '</a>\n' + ids[i].date
_text.addEventListener(TextEvent.LINK, number.linkHandler);
_text.height = _text.textHeight + 25;
}
код в Main:

Код AS3:
public function linkHandler(e:TextEvent) : void
{
var index:uint = uint(e.text)
var ids:XMLList = _info.part;
// создание запроса
var stat_loader:URLLoader = new URLLoader();
var stat_request:URLRequest=new URLRequest("http://site.ru/test.php");// заменяем на ссылку к вашему скрипту
stat_request.method=URLRequestMethod.POST;
// добавление параметров в запрос
var stat_vars:URLVariables = new URLVariables();
stat_vars['search'] = ids[index];
stat_request.data=stat_vars;
stat_loader.addEventListener(Event.COMPLETE,testing);
stat_loader.load(stat_request);
}