Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash


ActionScript 3.0 :: Event Listener For HTTP Request?

I'm using an HTMLLoader object to create a simple browser in my AIR application. Is there a way to listen for Event.OPEN (or the equivalent) for when a user clicks a link that causes the HTMLLoader to initiate an HTTP request?For capturing the end of a load, Event.COMPLETE is working perfectly. I just can't find a way to capture the beginning of a load!

View 0 Replies (Posted: 02-08-2011, 04:40 AM)

Sponsored Links:

Related Forum Messages For Flash category:
Ajax :: Detect If HTTP Request Is From Browser / Flex Asynchronous Request?
When Flex application make an asynchronus HTTP request, does it add a special header to the request, like some JavaScript framework does? Something that indicates whether this request is an AJAX call/not.I just want my server side code to return different response format, depending on whether the request is made from browser/flex.

Posted: Jun 1 10 at 8:35

View 1 Replies!   View Related
Http :: Get The Http Request URL?
a.swf is loaded in a.html which is hostedI want to know, if user browses[URL]

Posted: Sep 22 10 at 5:35

View 1 Replies!   View Related
Flash Creating More Than One HTTP Request
We are facing one issue directly connected with our Flash API we've given to a 3rd party flash vendor. To make a long story short, our API basically wraps domain logic on client and creates a single POST request towards the server in JSON format. All will be ok except in combination MacOS + Safari we receive double requests on server (?).

Even more interesting, we are receiving different agent names - one is expected name/decriptor of the browser and system, other is "CFNetwork".
POST /RuntimeDelegate.ashx - 80 Mozilla/5.0+(Macintosh;+U;+Intel+Mac+OS+X+10_4_11;+fr)+AppleWebKit/531.22.7+(KHTML,+like+Gecko)+Version/4.0.5+Safari/531.22.7 200 0 0
POST /RuntimeDelegate.ashx - 80 CFNetwork/129.24 200 0 0
POST /RuntimeDelegate.ashx - 80 Mozilla/5.0+
[Code] .....

Posted: May 11 10 at 22:43

View 1 Replies!   View Related
Flash :: How To Make A Http Request
Is it possible to make a simple Http Request using as2 and get the redirected result?xample[URL]

Posted: Jul 22 11 at 23:13

View 1 Replies!   View Related
ActionScript 3.0 :: HTTP Request Header Authorization Cannot Be Set?
I get this error when I try to run my application as a standalone SWF. In case the application is run from the Flash IDE, the application works fine.

Posted: Aug 21, 2009 9:27 AM

View 5 Replies!   View Related
Actionscript 3 :: HTTP Request Error #2032?
In Flex 3 application I use HTTPService class to make requests to the server:

var http:HTTPService = new HTTPService();
http.method = 'POST';
http.url = hostUrl;[code]....

The application has Comet-architecture. So it makes long running requests. While waiting a response for this request, other requests can be made concurrently.The application works in most cases. But sometimes some clients get HTTP request error executing long running request:

faultString:'HTTP request error'
faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"].

Posted: Sep 29 09 at 11:08

View 8 Replies!   View Related
Filter Out HTTP Request For Redirecting To Another Domain?
I have a flash application that I need to debug and I need to filter out a GET request to redirect it to another domain because the file is not available on the domain that it's trying to get it from. I can not edit the source code until Monday and I need to figure out a way to redirect that request to the other domain that has the resource that is missing.

Posted: Apr 10 11 at 1:01

View 1 Replies!   View Related
Flex :: Get The Response From An HTTP Request On Error?
I tried using both HTTPService and URLRequest/URLLoader. But I can't figure out how to get either the response output or the response headers in case of a server error(like 500).

Posted: Jun 2 09 at 12:17

View 1 Replies!   View Related
ActionScript 3.0 :: HTTP 400 Bad Request / Webpage Cannot Be Found
Building a photo album / upload image page in my website.I have a page that�s giving me trouble� action.php Error when I test in browser: HTTP 400 Bad Request / webpage cannot be found (highlighted below)

// Check Access and exit when user status is not ok


Posted: February 23rd, 2012

View 1 Replies!   View Related
ActionScript 3.0 :: Submitting HTTP Header In Flvplayback Request?
I'm trying to insert a HTTP header into the request that is made when a .SWF requests a .FLV movie via the flvplayback object. Here's my scenario.

We are using Akamai to distribute our flash video so it loads faster. Our current set up involvels 4 primary components:

1. HTML sitting on our corporate webservers.
2. SWF being served by the Akamai servers.
3. FLV file being served by the Akamai servers.
4. flvplayback skin (SWF file) being hosted by the Akamai servers.

When the HTML file loads into the browser, it requests the SWF, which then loads the flvplayback skin and FLV video. This whole process works until you add security to the mix. We have referer security, which means that that Akamai-hosted files won't load unless the requesting domain is one of our corporate domains. The referer is usually passed over in the HTML header, so the HTML file can successfully request and load the SWF from the Akamai servers. However, when the SWF then requests the skin and FLV file, they don't load because the referer header isn't passed over in this request.

How do I insert the referer header into the SWF request for the FLV and flvplayback skin? I'm assuming this needs to be done from within the flvplayback instance in my SWF file, but I don't know how to reference that. I tried the following, but it didn't seem to work:

myFlvPlayback.URLRequestHeader("Referer", "");

Posted: Apr 21, 2010 9:11 AM

View 1 Replies!   View Related
Actionscript :: Sending HTTP Request With Multiple Parameters Having Same Name
I need to send a HTTP request (and get XML response) from Flash that looks similar to following:

I.e. having several parameters that share same name, but have different values.

Until now I used following code to make HTTP requests:

var resp:XML = new XML();
resp.onLoad = function(success:Boolean) {/*...*/};
resp.ignoreWhite = true;


But in that case I am loosing ability to do POST requests.

Posted: Dec 2 09 at 19:00

View 4 Replies!   View Related
ActionScript 3.0 :: Upload New Photo To Picasa By Http Request
I want to upload new photo to picasa using picasa API

My code:
ActionScript Code:
var _loader:URLLoader;
function uploadPhoto():void
_loader = new URLLoader();

Posted: 02-18-2011, 01:53 AM

View 0 Replies!   View Related
ActionScript 1/2 :: Send HTTP Request And Get The Response In JSON Format?
I am using ActionScript 2.0 for my app development. I have checked XML and LoadVars class. These classes by default send/receive data either in XML or name/value pair format. I want to send data in JSON format and receive the response in JSON format. How can I achieve this behavior using AS2.0. I have noticed that AS3.0 has the capabilities to do so. My client platform doesn't support AS3.0.

Posted: Aug 10, 2009 4:18 AM

View 3 Replies!   View Related
Python :: Retrieve HTTP POST Request Parameters (sent From Flex App)?
I am sending the parameters from flex application through HTTP POST request to Python/PSP script. I am able to call PSP script from flex app using HTTP POST request, but i am not able to use/retrieve these parameters in Python/PSP

Posted: Jan 25 11 at 15:26

View 1 Replies!   View Related
Flex :: Send HTTP POST Request With Binary Data In Body
I'm new to Flex and couldn't figure out yet how to send binary data to the server as the body of a POST request. The HTTPService component doesn't seem to support this. The FileReference doesn't seem to support setting the data via the Flex API.

Posted: Sep 17 09 at 9:20

View 4 Replies!   View Related
Flex :: Not Sending HTTP Request Headers?
I am using Flex 3 (ActionScript 3.0). I use the HTTP progressive download to play sound files. I want to secure the sound files, by only serving them when the request comes from my flex app. I chose the simplest solution of adding a HTTP header to each request send from the app. But object ignores the headers set in Here's an example,

URLRequest sndFile = new URLRequest("");
sndFile.requestHeaders = new Array(new URLRequestHeader("req-orgin", "myflexapp"));
Sound snd = new Sound(sndFile);;

The value of req-origin comes as null in load_sound.php. When i inspect the request using Firebug, the request headers to [URL] doesn't contain the header.

Posted: Feb 19 10 at 23:03

View 1 Replies!   View Related
Flex :: Application Throws Error When Making Http Call (GET Request)?
I get following error occasionally while running my flex application. I dont know what is wrong as it works intermittently.

Error occured (mx.messaging.messages::ErrorMessage)#0
body = ""
clientId = "DirectHTTPChannel0"


Posted: Jun 13 11 at 21:30

View 1 Replies!   View Related
Javascript :: Intercept The Response Of An Ajax Http Request Made By A Flash Object ?
I want want to intercept the response for an ajax request made inside a flash object via javascript.

Posted: Feb 24 at 20:41

View 3 Replies!   View Related
ActionScript 3.0 :: Loading The Image Binary (after HTTP Request Headers Are Removed) As A Bitmap In Flash?
I'm building an image viewer that has violent content (video games), and so it requires users to enter their birthdays. Problem is that because of company policy, I can't expose any of the source images being viewed in the event that someone might use their resources/net tabs (or just sniff the request) and get the direct link to the image. (I know that they could screenshot it, but that's out of anyone's control and not something I'm worried about.)Is there anyway to inherently mask loaded resources (images)? I've been using sockets, which is great, but there's also the problem of actually loading the image binary (after HTTP request headers are removed) as a Bitmap in Flash.

Posted: 09-11-2010, 06:37 PM

View 4 Replies!   View Related
ActionScript 3.0 :: Event Listener - Error #2007: Parameter Listener Must Be Non-null?
this is the error I am having:

TypeError: Error #2007: Parameter listener must be
at project1_fla::MainTimeline/btnName()

here is my code:

ActionScript Code:
import caurina.transitions.Tweener;

Posted: 02-04-2009, 02:48 AM

View 1 Replies!   View Related
Http :: Flash - Make A POST Request From Within Flash To Processing Php Page?
I basically have a form inside of Flash that I need to submit to a server-side processing page, which will then return either json or xml telling if it succeeded or not ( json, xml I suppose ). My version of Flash is CS4 and I'm wondering if there are any libraries or frameworks I can use to accomplish this.

Posted: Nov 6 09 at 19:40

View 2 Replies!   View Related
Ajax :: In Terms Of HTTP Request Performance Pick AJAX Or Flash?
In terms of HTTP request performance should I pick AJAX or Flash? To be more specific, I'm more into Flash than AJAX and I'm currently working on a wide scale web project. I wanted to try AJAX out for once and now it's getting too messy for me. Before it gets more complicated I thought may be I can run Flash on the background for HTTP Requests and use it with javascript. I couldn't find any benchmark on the Internet, but I think AJAX is faster than Flash. So what's your personal experience? Is there too much difference between Flash and AJAX?

Posted: Jul 19 11 at 16:02

View 4 Replies!   View Related
ActionScript :: Javascript - Event Listener To Listen "all The Time" Not Just Wait For Any Particular Instance (mouse Click - Keyboard Event) Of Event?
I am trying to learn JavaScript and I am wondering whether JavaScript has a event listener just like ActionScript's ENTER_FRAME. Basically, I want this event listener to listen "all the time" not just wait for any particular instance (mouse click, keyboard event) of event.

Posted: Jul 7 11 at 18:02

View 3 Replies!   View Related
ActionScript 3.0 :: Detect The Finished Event Listener And Fire Out Another Sets Of Event
if I have an event listerner (mouse, keyboard, enterframe,....event) that is being triggered, and when it finishes its event, something that is able to detect the finished event listener and fire out another sets of event.

It works more like MOTION_FINISH in TweenEvent, but it is only available for TweenEvent only, what if I want to detect a mousclick, keyboard, enterframe or even touch event?

Posted: Nov 17, 2011 10:06 AM

View 3 Replies!   View Related
Copyright 2005-08, All rights reserved