Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   ActionScript 1.0/2.0 (http://www.flasher.ru/forum/forumdisplay.php?f=93)
-   -   проблема подгрузки мувика (http://www.flasher.ru/forum/showthread.php?t=118595)

rem345690 28.11.2008 13:50

проблема подгрузки мувика
 
есть скрипт drag end drop // проблема в том чтобы при постановке "mc" в область "plase" должен играть мувик "this.ths["place"+this.num].frame;
this.ths["place"+this.num].gotoAndPlay(2);" почемуто этого непроисходит... прошу помощи

заранее благодарю.;)







Код:

// import mx.utils.Delegate;
var ths:MovieClip=this;
for (var i:Number = 1; i<=6;i++) {
        this["mc"+i].num=i;
        this["mc"+i].onPress=function () {
                this.startDrag();
               
        }
        this["mc"+i].onRelease=function () {
                this.stopDrag();
               
                if (this.hitTest(ths["place"+this.num])) {
                        this._x=ths["place"+this.num]._x+ths["place"+this.num]._width/2-10;
                        this._y=ths["place"+this.num]._y+ths["place"+this.num]._height/2-10;
                       
                        this.ths["place"+this.num].frame;
                        this.ths["place"+this.num].gotoAndPlay(2);
;
                       

               
                        delete this.onPress;
                        delete this.onRelease;
                }
        }
}

.

lexa2000lexa 28.11.2008 14:23

вот так напишите и будет вам счастье
Код AS1/AS2:

ths["place"+this.num].gotoAndPlay(2);


rem345690 28.11.2008 15:46

спасиииибо... всё заработало..... надо мне быть внимательнее.;)


Часовой пояс GMT +4, время: 15:53.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.