![]() |
|
||||||||||
|
|||||
|
Хочу загрузить случайным образом 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 в той-же папке ЧТо не так?
__________________
Инвестируем в развитие молодежи: http://plati.ru/asp/seller_goods.asp?id_s=5145 Создам сайт на PHP&MySQL Портфолио и резюме: http://taras.boyarka.biz ICQ: 274206900 |
|
|||||
|
s.start(...); ?
|
|
|||||
|
т. е. я забыл его стартонуть? И что там в параметрах? (вместо ...)
__________________
Инвестируем в развитие молодежи: http://plati.ru/asp/seller_goods.asp?id_s=5145 Создам сайт на PHP&MySQL Портфолио и резюме: http://taras.boyarka.biz ICQ: 274206900 |
|
|||||
|
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пасибо за совет!
__________________
Инвестируем в развитие молодежи: http://plati.ru/asp/seller_goods.asp?id_s=5145 Создам сайт на PHP&MySQL Портфолио и резюме: http://taras.boyarka.biz ICQ: 274206900 |
![]() |
Часовой пояс GMT +4, время: 14:15. |
|
|
« Предыдущая тема | Следующая тема » |
|
|