Questions tagged [urlrequest]

247 questions
0
votes
1 answer

URLRequest gives stream error (403 Forbidden)

I'm trying to make a http request with the urlloader and urlrequest in as3. This gives an error of stream error 2032 and that is because the website doesnt allow urlrequests from Flash? Anyway, why do this happend? How can I "fool" the website to…
0
votes
1 answer

External files wont load on site

I am having trouble figuring out how fix a URLRequest loading problem. When I test my flash swf, the URLRequest works and loads a text file in a textfield that I have. The problem is when I upload the swf to a swfhost site or any site, the textfield…
0
votes
1 answer

Changing the UrlLoader.load

package { import flash.display.MovieClip; import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; import flash.events.TimerEvent; import flash.utils.Timer; import flash.text.StyleSheet;…
0
votes
1 answer

How can I get the content of a url-request into a String in java flash-actionscript

How can I get the content of a requested url, that returns an html-page, passed into a string, with java in flash actionscript. ?! I have this for now var req:URLRequest = new URLRequest("http://somedomain.com/index.php"); var loader:URLLoader = new…
H.A.
  • 350
  • 5
  • 14
0
votes
1 answer

clipboard fill url request

What line of code I need for my URLRequest to be automatically filled by clipboard or an extern *.txt file? This is the as3 script and where is XXXXXX I need script to take automatically text from clipboard and put there before execute, OR take text…
Ius Mob
  • 3
  • 2
0
votes
0 answers

as3 URLRequest lost connection - phone App

I am using as3 and the Flash Professional IDE to code an app for Droid and IOS. I have noticed a few times when downloading a file nearly 100 megs that it sometimes stops for both android and IOS. It will stay at a certain percentage and I have to…
Papa De Beau
  • 3,744
  • 18
  • 79
  • 137
0
votes
2 answers

How to specify the location of a remote machine's file in the URLRequest parameter? - Edited

Hi now I have found how to give a relative path in URLRequest paramate and download that file. I found it from this particular stack overflow post . Thanks to Christian Nunciato and heri0n. so now if If give my machine's relative path,…
Angeline
  • 2,369
  • 22
  • 68
  • 107
0
votes
1 answer

URLRequest fails to load .png when moved from the directory it was compiled in

I'm building an AS3 project in FlashDevelop where I use a URLRequest to load external .pngs from an assets folder in the bin/ directory. It works great when run from FlashDevelop or when run from the bin/ folder (which makes sense since as I…
Mike Ball
  • 68
  • 7
0
votes
1 answer

url request application storage directory AS3 Air

I have an application prepared in Action Script 3. There is a part related to requesting a file from application storage directory. However when I use following codes (xmlLoader part), program looks into app directory. How can I make it look into…
M. Ö.
  • 61
  • 4
  • 12
0
votes
2 answers

is it possible to send 0x00 in GET request?

I want to send hex data as GET request like somesite.com/page.php?test=hex_string. The data is generated data in hardware and then a GET request is send to a php file. But when I have 0x00 (NULL) character in the request, it fails with 400 bad…
user427969
  • 3,836
  • 6
  • 50
  • 75
0
votes
1 answer

Actionscript help : 1084: Syntax error: expecting rightparen before abc

I was workin on a project, and i need to put a variable, between the text in URLRequest url4 = new URLRequest("text/"abc"/text.png"); Any help?? Btw let's say abc is the variable i want to put
Igli Kadija
  • 113
  • 2
  • 11
0
votes
1 answer

loading sound in as3

i am trying to load a sound and play it when two nape bodies collide i have the collision detection working but cant play the sound the error is coming from the following code: var collisionSound:Sound; collisionSound = new…
Lonergan6275
  • 1,938
  • 6
  • 32
  • 63
0
votes
2 answers

AS3 MouseEvent.CLICK not working in browser

The ActionScript 3.0 code below works when tested in Adobe Flash CS6, however when tested in a browser the code does not work. Any ideas why this is happening? buttonInstance.addEventListener(MouseEvent.CLICK,function(e:MouseEvent){ …
user1584751
0
votes
1 answer

useProxy on URLLoader? similar to that of the httpservice?

Loading Https images over untrusted servers have limitations. We have decided to load images over from the proxyservice rather than let the air do it itself form several domains. When I checked blazeds document, httpservice has useproxy property to…
Zeus
  • 6,386
  • 6
  • 54
  • 89
0
votes
2 answers

Air iOS Flash, what is the included folder path?

This is kinda silly but I can't seem to find the directory path for the included folder. In Flash Cs6 publish setting, I included a folder which is located at c:\abc\def\ghi/xxx. In this case, the path in iOS will be app://xxx? To access a flle in…
Elonoa
  • 467
  • 7
  • 19