mre
07.02.2008, 14:39
Выполняю следующий код
container.DragListener = new Object();
container.onPress = function()
{
startDrag(this);
Mouse.addListener(this.DragListener);
}
container.onRelease = function()
{
stopDrag();
Mouse.removeListener(this.DragListener);
}
container.DragListener.onMouseMove = function()
{
_this = this._parent;
trace(_this._name);
}
trace(_this._name); - не могу получить доступ к container, как его можно получить внутри onMouseMove ?
container.DragListener = new Object();
container.onPress = function()
{
startDrag(this);
Mouse.addListener(this.DragListener);
}
container.onRelease = function()
{
stopDrag();
Mouse.removeListener(this.DragListener);
}
container.DragListener.onMouseMove = function()
{
_this = this._parent;
trace(_this._name);
}
trace(_this._name); - не могу получить доступ к container, как его можно получить внутри onMouseMove ?