Error #2048 Urlrequest
ElementsAdobe Dreamweaver Adobe MuseAdobe Animate CCAdobe Premiere ProAdobe After EffectsAdobe IllustratorAdobe InDesignView all communitiesExplore Menu beginsMeet the expertsLearn our productsConnect with your peersError: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page. Please enter a title. You can not post a blank message. Please type your message and try again. More discussions in ActionScript 3 All CommunitiesAdobe Animate CC - HomeActionScript 3 11 Replies Latest reply on Jun 10, 2010 9:58 AM by kglad URLLoader generates error #2048 depending on file contents NDGriff Jun 6, 2010 11:56 PM Hi,I've come across an intriguing https://support.pearson.com/getsupport/s/article/XL-MyLab-Courses-URL-Request-Failed-Error-2048?language=en_US problem and would be interested to know if anyone else has experienced this before, or has any opinions or suggestions.I've developed a preloader for an ActionScript 3 application that uses URLLoader to load an encrypted swf. This has been tested on different OSs, Flash Players and browsers and everything works as expected except for a series of PCs being used by a colleague on a corporate network. The https://forums.adobe.com/thread/654365 PCs at fault use Flash Player 10.0.22.87 with IE6 on WinXP and get security sandbox error #2048 depending on the contents of the file being loaded! Some of the tests and results include:removing 99% of the contents but keeping first 6k (works)replacing contents with 4 bytes 00 (works)inserting 16 bytes: EF BB BF at beginning of file (works)inserting 16 0s at the beginning of the file (fails)xor FF all bytes (fails)I've tried other tests such as different file extensions, Security.allowDomain(“*"), crossdomain.xml, Security.loadPolicyFile(…), dataFormat = URLLoaderDataFormat.BINARY etc but I think these are all irrelevant due to the fact that the app sometimes works.The code is just the standard new URLLoader(), adding event listeners, then calling load(new URLRequest(…)). The test app doesn't include the loadBytes() so this isn't the issue either.The PC at fault could be behind a firewall or using a proxy. At this stage my only theory is that their antivirus, firewall or proxy is examining the contents and sometimes decides to “intervene", perhaps with a redirect. This would also explain why (according to the web server logs) the files are being requested even though the security sandbox error is generated. However, this does not explain why Flash ge
Error #2048 -- At a loss! If this is your first visit, be sure to check out the http://board.flashkit.com/board/showthread.php?775361-Error-2048-At-a-loss! FAQ by clicking the link above. You may have to register http://www.flasher.ru/forum/showthread.php?t=125411 before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 15 of 15 Thread: Error #2048 -- At a loss! Tweet Thread Tools error #2048 Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 08-21-2008,01:26 AM #1 erico564 View Profile View Forum Posts Visit Homepage Member Join Date Feb 2002 Posts 65 Error #2048 -- At a loss! I've got some strange stuff going on. I have error #2048 urlrequest a SWF that is hosted on server A. I have a php file on server B that processes forms. My SWF sends form information to server B and expects to get a set of variables returned (form processed successfully or not). The SWF is built in AS3. The code is written like this: Code: // SEND FORM INFO //-- collect variables var variables:URLVariables = new URLVariables(); variables.email = txtEmail.text; //-- set up request for URL var myRequest:URLRequest = new URLRequest(); myRequest.url = "https://services.processingserver.com/postdata/"; myRequest.method = URLRequestMethod.POST; myRequest.data = variables; //-- process loader var myLoader:URLLoader = new URLLoader(); //myLoader.dataFormat = URLLoaderDataFormat.VARIABLES; try { myLoader.load(myRequest); } catch (error:ArgumentError) { trace("An ArgumentError has occurred."); txtPrompt.text = "SERVER ARGUMENT ERROR"; } catch (error:SecurityError) { trace("A SecurityError has occurred."); txtPrompt.text = "SERVER SECURITY ERROR"; } myLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS,httpStatusHandler); myLoader.addEventListener(IOErrorEvent.IO_ERROR,errorHandler); myLoader.addEventListener(Event.OPEN, openHandler); myLoader.addEventListener(ProgressEvent.PROGRESS, progressHandler); myLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); myLoader.addEventListener(Event.COMPLETE,completeHandler); .... function securityErrorHandler(e:SecurityErrorEvent):void { txtPrompt.text = "SERVER SECURITY ERROR - "+e.text; } It works fine when I test it from a lo
тегу Расширенный поиск Поиск по блогам Расширенный поиск К странице... « Предыдущая тема|Следующая тема » Страница 1 из 2 1 2 > Опции темы Опции просмотра 23.05.2009, 17:01 № 1 smorodin Регистрация: May 2009 Сообщений: 6 Error #2048: Нарушение изолированной среды Здравствуйте! С флешем первый день, но столкнулся с проблемой. Мне нужно обратиться из AS3 к PHP-скрипту на другом сервере. Я пишу: Код AS3: req = new URLRequest("http://domain.net/test.php"); Вылетает ошибка нарушения изозированной среды. С сайта адобе узнал, что swf будет работать со скриптами, расположенными на этом сервере. А мне нужно обратиться к другому серверу. Куда копать? PS: при расположении на одном сервере все работает прекрасно. smorodin Посмотреть профиль Отправить личное сообщение для smorodin Найти все сообщения от smorodin 23.05.2009, 17:21 № 2 etc Et cetera Регистрация: Sep 2002 Сообщений: 30,775 На удаленном сервере (с которого запрашивают данные) необходимо разместить файл кроссдоменной политики, в котором явно указано разрешение на загрузку данных с другого домена. etc Посмотреть профиль Найти все сообщения от etc 23.05.2009, 17:37 № 3 smorodin Регистрация: May 2009 Сообщений: 6 Код AS3: package main { import flash.display.*; import flash.events.*; import flash.events.*; import flash.text.*; import flash.ui.*; import flash.net.*; import flash.utils.*; import flash.system.Security; import flash.system.SecurityPanel; public class Main extends MovieClip { public function Main() { Security.loadPolicyFile("http://domain.net/crossdomain.xml"); var loader:URLLoader; var req:URLRequest; loader = new URLLoader(); req = new URLRequest("http://domain.net/test.php"); loader.addEventListener(Event.COMPLETE, loadComplete); loader.load(req); function loadComplete(event:Event):void { text1.text = loader.data; } } } } Код: