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:
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
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: faultCode:Server.Error.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
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) <?php define('PHPWG_ROOT_PATH','./'); include_once(PHPWG_ROOT_PATH.'include/common.inc.php'); // Check Access and exit when user status is not ok [code]....
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", "http://mycorporatedomain.com/requestingpage.html");
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: http://example.com/somepath?data=1&data=2&data=3 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; [Code]..... 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 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
Flex :: Flash.media.Sound 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 flash.media.Sound object ignores the headers set in flash.net.URLRequest. Here's an example, URLRequest sndFile = new URLRequest("http://blah.com/media/load_sound.php"); sndFile.requestHeaders = new Array(new URLRequestHeader("req-orgin", "myflexapp")); Sound snd = new Sound(sndFile); snd.play(); 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
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
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 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
|