Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   Action script 2.0 (http://www.flasher.ru/forum/forumdisplay.php?f=49)
-   -   !!!???? компонент Loader и swf со звуком (http://www.flasher.ru/forum/showthread.php?t=50927)

dog5 03.11.2003 20:05

!!!???? компонент Loader и swf со звуком
 
привет
не подскажите, почему когда я гружу swf со звуком в компонент Loader, который находится в другом swf, то звук пропадает???

dog5 03.11.2003 20:35

звук гружу с помощью behavior - Load sound from library

if(_global.Behaviors == null)_global.Behaviors = {};
if(_global.Behaviors.Sound == null)_global.Behaviors.Sound = {};
if(typeof this.createEmptyMovieClip == 'undefined'){
this._parent.createEmptyMovieClip('BS_sound2',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.sound2 = new Sound(this._parent.BS_sound2);
} else {
this.createEmptyMovieClip('_sound2_',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.sound2 = new Sound(this.BS_sound2);
}
_global.Behaviors.Sound.sound2.attachSound("sound2");
if (true) {
_global.Behaviors.Sound.sound2.start(0,10000);
}


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

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