![]() |
Загрузка mp3-шки...
Хочу загрузить случайным образом MP3 файлик (музычку на фон),
Пишу в 1 кадре г_root-а: stop(); s=new Sound(); file=Math.floor(Math.random()*2+1) file=file+".mp3"; s.loadSound(file, false); И ничего... Файлы 1.mp3 и 2.mp3 в той-же папке ЧТо не так? |
а ты случаем не забыл
s.start(...); ?
|
т. е. я забыл его стартонуть? И что там в параметрах? (вместо ...)
|
Sound.start()
Availability Flash Player 5. Usage my_sound.start([secondOffset, loop]) Parameters secondOffset An optional parameter that lets you start playing the sound at a specific point. For example, if you have a 30-second sound and want the sound to start playing in the middle, specify 15 for the secondOffset parameter. The sound is not delayed 15 seconds, but rather starts playing at the 15-second mark. loop An optional parameter allowing you to specify the number of times the sound should play consecutively. Returns Nothing. Description Method; starts playing the last attached sound from the beginning if no parameter is specified, or starting at the point in the sound specified by the secondOffset parameter. ------------------------------------------------------------------- почаще см. хелп. Если нет такого - рекомендую как можно скорее качнуть с макромедии. |
Cпасибо за совет!
|
| Часовой пояс GMT +4, время: 14:58. |
Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.