Форум 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=80243)

ninja_127 24.05.2006 19:56

Проблемы с инициализацией объекта
 
код библиотеки:

function myControl(){
this.is_play=false;
this._construct();
}
myControl.prototype=new MovieClip();
myControl.prototype._construct=function(){
//this.createEmptyMovieClip("button",1);
this.attachMovie("mc_play", "button", 1);
}
myControl.prototype.onRelease=function(){
if (this.is_play){
this.is_play=false;
_root.MyPlayer.StopSound();
this.attachMovie("mc_play", "button", 1);
}
else{
this.is_play=true;
_root.MyPlayer.PlaySound();
this.attachMovie("mc_stop", "button", 1);
}
}
Object.registerClass("Control", myControl);

код вызова мувиклипа из библиотеки
this.attachMovie("Control", "mc_control", 2);

Вопрос: при запуске не появлется картинка mc_play. Что не так?

Nirth 24.05.2006 19:58

Просьба ознакомится с правилами раздела, и отредактировать свой пост.


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

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