Показать сообщение отдельно
Старый 15.03.2008, 18:38
54321go вне форума Посмотреть профиль Отправить личное сообщение для 54321go Найти все сообщения от 54321go
  № 1  
Ответить с цитированием
54321go

Регистрация: Sep 2006
Сообщений: 453
По умолчанию ошибка swapDepths

флеш выдаёт ошибку
Код:
TypeError: Error #1006: swapDepths is not a function.
	at d___fla::od_1/d___fla::frame1()

swapDepths используется только здесь
Код:
var myArray:Array = Array("hair1", "hair2", "hair3", "hair4", "hair5", "bag1", "bag2", "bag3", "bag4", "kur1", "kur2", "kur3", "kur4", "kur5", "kur6", "kur7", "kur8", "kur9", "kur10", "kur11", "uob1", "uob2", "uob3", "uob4", "uob5", "shtan1", "shtan2", "shtan3", "shtan4", "shtan5", "bot1", "bot2", "bot3", "bot4", "bot5", "bot6", "og1", "og2", "og3", "og4", "og5", "og6", "og7", "og8");
nn=myArray.length;
trace(myArray.length)
for (var i:Number = 0; i < nn; i++) {
this[myArray[i]].swapDepths(i);

this[myArray[i]].onPress = function() {
 startDrag(this);
 nn++
 this.swapDepths(nn);
 };
this[myArray[i]].onRelease = function() {
 stopDrag();
 };
}