Проблемы с инициализацией объекта
код библиотеки:
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. Что не так? |
Просьба ознакомится с правилами раздела, и отредактировать свой пост.
|
Часовой пояс GMT +4, время: 17:51. |
Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.