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

Регистрация: Mar 2006
Сообщений: 182
перенес весь код из onClipEvent (load){} на кнопку "Сначала"
Код:
on (release)
{
    function MoveJ(j)
    {
        this._parent.JVal.val.text = "j=" + j;
        this._parent.JVal._x = ObjArray[j]._x;
        MovePointer(this._parent.for_j._y);
        if (j > 1)
        {
            moveJ = true;
        } // end if
    } // End of the function
    function MoveI(i)
    {
        this._parent.IVal.val.text = "i=" + i;
        this._parent.IVal._x = ObjArray[i]._x;
        MovePointer(this._parent.for_i._y);
        if (i > 0)
        {
            moveI = true;
        } // end if
    } // End of the function
////////////	

    ArrayToSort = new Array(5, 7, 2, 3, 0, 8, 5, 2);
    ObjArray = new Array(this._parent.obj1, this._parent.obj2, this._parent.obj3, this._parent.obj4, this._parent.obj5, this._parent.obj6, this._parent.obj7, this._parent.obj8);
    i = 0;
    j = 0;
    k = 0;
    l = 0;
    MoveJ(j);
    MoveI(i);
    timeToColor = 0;
    timeToColormax = 15;
    timeToMoving = 0;
    timeToMovingmax = 30;
    gotoAndPlay(nextFrame);
    standart = true;
    changePointer = false;
    goToR = false;
    goOutOfR = false;
    changePlace = false;
    counter = 0;
    playingVar = true;
    MovePointer = function (yPos)
    {
        this._parent.pointer._y = yPos;
        return(undefined);
    };
}
И теперь нажав кнопку "Сначала" для объявления всех переменных и после этого нажав кнопку "Control" ничего не происходит

И Как его теперь загрузить этот код при загрузке клипа (или можно как-то съэмитировать нажатие кнопки "Сначала")
Вложения
Тип файла: rar search.rar (19.0 Кб, 55 просмотров)