почитал у Мука про статические методы и свойства, да действительно в моем случае их применять не стоит.
Поправил код, учитывая комментарий, но по прежнему та же самая ругань

Код AS3:
package com
{
import com.Food;
import com.Main;
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.MouseEvent;
public class Friend extends MovieClip
{
private var _y:int;
private var myTween:Tween;
public var piple:String;
public function Friend()
{
this.addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init (e:Event):void
{
_y = this.y;
this.addEventListener(MouseEvent.ROLL_OVER, over, false, 0, true);
}
private function over(e:MouseEvent):void
{
if((this.root as Main).take == true)
{
myTween = new Tween(this, "y", Strong.easeOut, _y, _y-70, 5, false);
myTween.addEventListener(TweenEvent.MOTION_FINISH, tweenFinishd, false, 0, true);
this.gotoAndStop(2);
if((this.root as Main).cursor.hitTestObject(this))
{
// условие для 1-го кусочка
if((this.root as Main).currentDragged == "f1_mc")
{
piple = this.name;
(this.root as Main).f1.alpha = 0;
if(piple == "p1_mc")
{
trace((this.root as Main).currentDragged)//почему - то выводит сразу 2 одинаковых имени ("f1_mc" - этот объект был наведен на экземпляр Friend)
(this.root as Main).s1.alpha = 1;// ругается на эту строку
// (this.root as Main).s1.gotoAndPlay(2);
// (this.root as Main).p1.stopFriend();
//
// (this.root as Main).num ++;
// trace((this.root as Main).num)
// //(this.root as Main).allRight();
}
}
}
}
}
private function tweenFinishd(e:TweenEvent):void
{
myTween = new Tween(this, "y", Strong.easeIn, this.y, _y, 5, false);
myTween.addEventListener(TweenEvent.MOTION_FINISH, shutUp, false, 0, true);
}
private function shutUp(e:TweenEvent):void
{
this.gotoAndStop(1);
}
public function stopFriend():void
{
this.removeEventListener(MouseEvent.ROLL_OVER, over);
}
}
}