Показать сообщение отдельно
Старый 29.12.2007, 16:43
yava вне форума Посмотреть профиль Отправить личное сообщение для yava Найти все сообщения от yava
  № 1  
Ответить с цитированием
yava

Регистрация: Jul 2007
Сообщений: 89
По умолчанию событие onRollOver

Привет, подскажите почему в данном коде uform["e2"].onRollOver не срабатывает, а uform["e2"].onMouseMove срабатывает

Код:
import mx.transitions.*;
import mx.transitions.easing.*;

_root.createEmptyMovieClip("uform",3001);
uform.attachMovie("frame","frame",10,{_x:120, _y:50});
uform.attachMovie("subframe","subframe",11,{_x:127, _y:81});
uform.attachMovie("e_in","e1",12,{_x:834, _y:53});
uform.attachMovie("e_out","e2",13,{_x:834, _y:53});
uform["frame"]._alpha = 90;
uform["subframe"]._alpha = 100;


uform.onRollOver = function()
{
	trace("1");
	var tween_xs1 = new Tween(this, "_xscale", Back.easeOut, this._xscale, 100, 1, true);
	var tween_ys1 = new Tween(this, "_yscale", Back.easeOut, this._yscale, 100, 1, true);	
	var tween_x = new Tween(this, "_x", Back.easeOut, this._x, this._x - (this._width*0.1/2), 1, true);
	var tween_y = new Tween(this, "_y", Back.easeOut, this._y, this._y - (this._height*0.1/2), 1, true);
	var tween_a = new Tween(this, "_alpha", Back.easeOut, this._alpha, 100, 1, true);

};

uform.onRollOut = function()
{
	
	var tween_xs1 = new Tween(this, "_xscale", Back.easeOut, this._xscale, 90, 1, true);
	var tween_ys1 = new Tween(this, "_yscale", Back.easeOut, this._yscale, 90, 1, true);
	var tween_x = new Tween(this, "_x", Back.easeOut, this._x, this._x + (this._width*0.1/2), 1, true);
	var tween_y = new Tween(this, "_y", Back.easeOut, this._y, this._y + (this._height*0.1/2), 1, true);
	var tween_a = new Tween(this, "_alpha", Back.easeOut, this._alpha, 0, 1, true);
};



uform["e2"].onMouseMove = function()
{
	trace("2");
	var tween_a = new Tween(this, "_alpha", Back.easeOut, this._alpha, 50, 1, true);

};

uform["e2"].onRollOver = function()
{
	trace("2_");
	var tween_a = new Tween(this, "_alpha", Back.easeOut, this._alpha, 50, 1, true);

};

uform["e2"].onRollOut = function()
{
	trace("3");
	var tween_a = new Tween(this, "_alpha", Back.easeOut, this._alpha, 100, 1, true);
};

uform["e2"].onPress = function()
{
	trace("4");
};