Я неправильно понял вопрос.
В таком случае можно сделать так:

Код AS3:
package
{
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.geom.Point;
import flash.geom.Rectangle;
public class DisapearringWall extends Sprite
{
private var mousePoint:Point;
private var rectBounds:Rectangle;
public function DisapearringWall()
{
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(e:Event):void
{
removeEventListener(Event.ADDED_TO_STAGE, init);
mouseEnabled = false;
rectBounds = this.getBounds(stage);
stage.addEventListener(MouseEvent.MOUSE_MOVE, moveHandler);
}
private function moveHandler(e:MouseEvent):void
{
mousePoint.x = e.stageX;
mousePoint.y = e.stageY;
if (rectBounds.containsPoint(mousePoint))
{
alpha = 0.8;
}
else
{
alpha = 1.0;
}
}
}
}
вместо stage можно использовать любой объект относительно которого координаты будут статичны. Или обновлять rectBounds.