Форум 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)
-   -   MP3 preloader (http://www.flasher.ru/forum/showthread.php?t=112883)

andy7 10.06.2008 22:43

MP3 preloader
 
есть прелоадер грузт сам себя а как сдеать чтоб он также грузил 2 файла
1.pm3, 2mp3,то есть я хочу чтоб по окончанию процентa не тольо главный флеш но и 2 вншних mp3 были загруены спасибо!

Код:

// Initializations
loaded_bytes = _root.getBytesLoaded();  //Loaded Bytes already
total_bytes = _root.getBytesTotal();  // Get the total bytes of the swf
loadpercent = (loaded_bytes/total_bytes)*100; // The current exact percentage done

// Lets check if it reached 100..
if (loadpercent != 100) {
        // OPTIONAL: Place the percentage on some textfield
        preloaderText.text = int(loadpercent) + '%';
        // Goto respected load percentage since not done
        bar.gotoAndStop(int(loadpercent));
} else {
        // Goto the "Main" Scene since its done
        gotoAndPlay("start");
}



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

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