Форум 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)
-   -   Загрузка звука по HTTP! (http://www.flasher.ru/forum/showthread.php?t=77023)

Artyom from Kiev 16.03.2006 20:53

Загрузка звука по HTTP!
 
Пмогите пожалуйста, кто с таким сталкивался
загружаю во флеш *.mp3
примерно таким образом:
var my_sound:Sound = new Sound();
my_sound.loadSound("http://192.0.0.40:8080/mus_shop/music_rep/1142288276773_5127373179318972910.mp3", true);

локально работает, а по HTTP не хочет..
помогите кто знает в чём проблема.. и вообще возможно ли это

может дело в настройках 8-го плэера? поделитесь как это побороть..

заранее благодарен.

PIRIS 16.03.2006 22:44

изучи allowDomain

Antares 17.03.2006 03:02

Цитата:

Сообщение от PIRIS
изучи allowDomain

Изучаем:
Цитата:

allowDomain (security.allowDomain method)
public static allowDomain(domain1:String) : Void

Lets SWF files and HTML files in the identified domains access objects and variables in the SWF file that contains the allowDomain() call.

If two SWF files are served from the same domain -- for example, http://mysite.com/movieA.swf and http://mysite.com/movieB.swf -- then movieA.swf can examine and modify variables, objects, properties, methods, and so on in movieB.swf, and movieB.swf can do the same for movieA.swf. This is called cross-movie scripting or simply cross-scripting.

If two SWF files are served from different domains -- for example, http://mysite.com/movieA.swf and http://othersite.com/movieB.swf -- then, by default, Flash Player does not allow movieA.swf to script movieB.swf, nor movieB.swf to script movieA.swf. A SWF file gives SWF files from other domains permission to script it by calling System.security.allowDomain(). This is called cross-domain scripting. By calling System.security.allowDomain("mysite.com"), movieB.swf gives movieA.swf permission to script movieB.swf.
И ни слова -- про обычную загрузку данных. Это к слову. При 8м плеере я бы советовал посмотреть, под сетевой сэндбокс ( Publish Settings > Access Network Only ) ли происходит публикация.


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

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