Цитата:
Сообщение от ptirA
если можно маленьким примером пожалуйста
|
Пример чего? Как присвоить переменной ссылку на объект?

Код AS3:
private var activeButton:MovieClip;
private function clickHandler(event:MouseEvent):void
{
if (activeButton == event.target) return;
if (activeButton != null)
{
activeButton.gotoAndPlay("out");
}
activeButton = event.target as MovieClip;
activeButton.gotoAndPlay("in");
}