Показать сообщение отдельно
Старый 29.11.2005, 16:00
4thDimention вне форума Посмотреть профиль Отправить личное сообщение для 4thDimention Найти все сообщения от 4thDimention
  № 7  
Ответить с цитированием
4thDimention
 
Аватар для 4thDimention

Регистрация: Nov 2005
Адрес: PNZ
Сообщений: 30
Отправить сообщение для 4thDimention с помощью ICQ
пасибо! уже что-то... получился такой класс::
Код:
class ClassShop extends MovieClip
{
	var lib_name:String = "";
	var lib_name_tmp:String = "";
	var is_true:Boolean = false;
	var type_clothe:Number = 0;
	public function ClassShop()
	{
		var _alpha:Number = 90;
	}
	public function startDrag(tr:Boolean,sdleft:Number,sdtop:Number,sdright:Number,sdbot:Number)
	{
		this.startDrag = startDrag();
	}
	public function onRelease()
	{
		/*this._visible = false;
		Mouse.hide();*/
	}
	public function onRollOver()
	{
		this._alpha = 100;
	}
	public function onRollOut()
	{
		this._alpha = 90;
	}
	public function onPress()
	{
		this._visible = false;
		Mouse.hide();
		lib_name_tmp = lib_name+"_tmp";
		_root.attachMovie(lib_name, lib_name_tmp, _root.getNextHighestDepth());
		lib_name_tmp.startDrag(false, 0, 0, 800, 600);
	}
}
но при компиляции выдает ::Wrong number of parameters; startDrag requires between 1 and 6.
this.startDrag = startDrag();


а без определения startDrag :: There is no method with the name 'startDrag'.
lib_name_tmp.startDrag(false, 0, 0, 800, 600);


в чем косяк???