ActionScript 3.0 :: Loading The Image Binary (after HTTP Request Headers Are Removed) As A Bitmap In Flash?

Sep 11, 2010

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.

View 4 Replies


Similar Posts:


Flex :: Flash.media.Sound Not Sending HTTP Request Headers?

Feb 19, 2010

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.

View 1 Replies

Flex :: Send HTTP POST Request With Binary Data In Body

Sep 17, 2009

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.

View 4 Replies

Ajax :: Detect If HTTP Request Is From Browser / Flex Asynchronous Request?

Jun 1, 2010

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.

View 1 Replies

FLASH :: Http Headers - Cannot See Component On The Page Instead There's A Blank White Region

Jul 4, 2011

from time to time I get feedback from my web portal customers that they cannot see Flash component on the page - instead there's a blank white region. When it happens I instruct them to clear browser cache, and it solves the issue. Is there any way to handle this differently, using HTTP headers etc.

View 1 Replies

Upload Binary (audio) Data From A Flash Client To .NET Server (WCF/REST/HTTP)?

May 5, 2010

I originally tried to capture, encode and upload the audio using Silverlight, but because of the lack of suitable client-side encoding options, I'm now giving Flash a shot (Flash has baked-in support for encoding to Speex).I think I've figured out how to capture and encode the audio... But now what was easy in Silverlight, is the challenge in Flash.My server-side is .NET: MVC2-I'm open to receiving the audio in whatever manner is best- REST, WCF..So that's my question: How could one upload binary data from Flash, to a .NET server-side endpoint

View 1 Replies

Flash Creating More Than One HTTP Request

May 11, 2010

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] .....

View 1 Replies

Flash :: How To Make A Http Request

Jul 22, 2011

Is it possible to make a simple Http Request using as2 and get the redirected result?xample[URL]

View 1 Replies

Actionscript 3 :: Read And Write Http Headers?

Jan 4, 2011

Is it even possible to both read and write http headers in actionscript?

View 1 Replies

ActionScript 3.0 :: Set Up Http Headers To Security.loadPolicyFile() Function?

Dec 8, 2010

Is there a way to set up Http headers to Security.loadPolicyFile() function ??

Other question: Is there any danger when loading an external swf?

View 1 Replies

Actionscript 3 :: Unable To Get HTTP Response Code/headers?

Feb 17, 2010

I'm using URLLoader to POST to a server. The xml response from the server can respond with a 404 or a 403 (forbidden) error. However I am unable to get the response codes.

Here is the code

var urlString:String = "some url";
var urlRequest:URLRequest = new URLRequest(urlString);
var loader:URLLoader = new URLLoader();

[Code]....

status is always 0 regardless whether i return 200, 400, 404, 301, 500, etc...

View 2 Replies

ActionScript 3.0 :: 302 Redirects / HTTP Response Headers And Flashvars In Chrome

Mar 7, 2012

We are working on a plugin for the JWPlayer and I noticed that in Chrome specifically, we are running into issues with the 302 redirect urls that we're using. The JWPlayer is not recognizing the redirect which contains url-based flashvars which we need. So here's my question(s):

1) Is there a way using AS3 to get the response headers from a url when NOT using AIR?

2) Is there any known issues with Chrome and 302 redirects that might be enough to trip up Flash?

3) What is the best method to handle a 302 redirect? The current issue is that there is a queue'd process and none of the other steps can continue without the first one and if the first one fails because it didn't get the proper flashvars, then the whole thing fails.

View 2 Replies

Javascript :: Intercept The Response Of An Ajax Http Request Made By A Flash Object ?

Feb 24, 2012

I want want to intercept the response for an ajax request made inside a flash object via javascript.

View 3 Replies

Http :: Flash - Make A POST Request From Within Flash To Processing Php Page?

Nov 6, 2009

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.

View 2 Replies

Actionscript 3 :: Binary Data Corrupted From Php To AS3 Via Http

Oct 27, 2011

I'm trying to retrieve binary data using AS3 from a PHP server via HTTP, but very often (~50%) a few bytes arrive corrupted.

PHP snippets:

header('Content-Type:binary/octet-stream;');
echo $this->page;

[Code].....

View 1 Replies

Flash :: Use The CS4 Tool's On A Bitmap Image After Tracing The Bitmap Image And Applying My Settings?

Aug 7, 2009

Use the flash CS4 tool's on a bitmap image after tracing the bitmap image and applying my settings?

View 10 Replies

Http :: Get The Http Request URL?

Sep 22, 2010

a.swf is loaded in a.html which is hostedI want to know, if user browses[URL]

View 1 Replies

ActionScript 3.0 :: HTTP Request Header Authorization Cannot Be Set?

Aug 21, 2009

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.

View 5 Replies

Actionscript 3 :: HTTP Request Error #2032?

Sep 29, 2009

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"].

View 8 Replies

Filter Out HTTP Request For Redirecting To Another Domain?

Apr 10, 2011

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.

View 1 Replies

Flex :: Get The Response From An HTTP Request On Error?

Jun 2, 2009

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).

View 1 Replies

ActionScript 3.0 :: Event Listener For HTTP Request?

Feb 8, 2011

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

ActionScript 3.0 :: HTTP 400 Bad Request / Webpage Cannot Be Found

Feb 23, 2012

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]....

View 1 Replies

Ajax :: In Terms Of HTTP Request Performance Pick AJAX Or Flash?

Jul 19, 2011

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?

View 4 Replies

Flex - Pass Authentication Headers Using Flex HTTP Service?

Sep 6, 2010

I am trying to access a .Net service which requires an authentication header. If WebService is used it works fine. But when it is accessed using HTTPService it throws error. The project is already done by somebody else using HTTPService. Now changing to webService requires some time since there needs to be modification in a lot of files.

Below is the SOAP envelop required by the service.

[Code]...

View 1 Replies

ActionScript 3.0 :: Submitting HTTP Header In Flvplayback Request?

Apr 21, 2010

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");

View 1 Replies

Actionscript :: Sending HTTP Request With Multiple Parameters Having Same Name

Dec 2, 2009

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.

View 4 Replies

ActionScript 3.0 :: Upload New Photo To Picasa By Http Request

Feb 18, 2011

I want to upload new photo to picasa using picasa API

My code:
ActionScript Code:
var _loader:URLLoader;
function uploadPhoto():void
{
_loader = new URLLoader();
_loader.addEventListener(Event.COMPLETE,startUpload);
[Code]...

View 0 Replies

ActionScript 1/2 :: Send HTTP Request And Get The Response In JSON Format?

Aug 10, 2009

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.

View 3 Replies

Python :: Retrieve HTTP POST Request Parameters (sent From Flex App)?

Jan 25, 2011

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

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved