Actionscript 3 :: Flash / App Engine Request Data Encoding

Nov 12, 2010

I'm new to Flash and trying to communicate with an app engine server but I'm having some encoding problems. [code]This does not work, gives me some encoding errors on the server side. But if I switch POST to GET it automagically works.

View 1 Replies


Similar Posts:


AS3 :: Flash - How To Perform Encoding Of A Wave File Into Base64 Encoding

Aug 1, 2011

I need to perform encoding of a wav file into base64...

View 2 Replies

Php :: Request Data In A Flash Movie At Run-time

Jun 9, 2009

Is it possible to request some data in a Flash movie from PHP at run-time? Maybe my real-world implementation can clarify some things:

I use a Flash movie to store a Local Shared Object (because for some reason I need LSO's instead or regular PHP cookies). Now, when I load up a PHP file I want to somehow retrieve the data from the LSO at runtime, assign it to some variables, and use the variables through the rest of the script.

View 4 Replies

Php :: Reading RAW Data From A Flash POST Request ( Images )?

Dec 8, 2009

I'm basically interacting with a third party API flash file to send HTTP POST requests to my server. know I'm on somewhat the right path because it requires a crossdomain.xml file, and before I added that part nothing in the POST variables was showing up, however since I added that file there are 4 variables that are set, these POST variables are sent by the application to give me basic information about the file.. but I actually need to read the RAW POST data to actually save the image being sent by the Flash.I'm aware there are 3 ways...$GLOBALS['HTTP_RAW_POST_DATA'] $HTTP_RAW_POST_DATA which is probably the same as the firstfile_get_contents('php://input')For whatever reason, neither of these "work". By "work" I mean they're not being set, when I var dump them I get nothing.

Could it be that there's a setting in php.ini that I need to set, or perhaps the Flash application is truly not sending the actual image? I think it's doing the right thing, because it's a semi popular API and it's used by a couple other sites so I'm pretty sure it's right on their end.

View 1 Replies

Flex :: URL Encoding - Posting Data On Server

May 27, 2009

I want to post data to a URL on my server from a Flex app. I am using the following
UrlParam = UrlParam + '&name='+ name.text + '&business=' + buisness.text; navigateToURL(new URLRequest(UrlParams),'_self');
The problem I am having however is that if I enter a business with an ampersand ("A&b.com") then the name does not send. Does Flex have anything out of the box to do the encoding from & to %26?

View 2 Replies

ActionScript 3.0 :: Encoding Image Data Into Binary Strings?

Jul 1, 2009

I'm trying to write a flash program that will import JPEG's and embed them into an XML string for storage. However, i'm having some trouble with casting them back into Bitmap objects, after encoding and decoding the strings in Base64.

I've used the external Base64 encoding class created by Steve Webster, which seems to work great in encoding and decoding the files, but i'm clearly doing something wrong in my code. I'm not sure how exactly I should be converting the decoded bytecode back into an image object, and get flash to display it. Should it be a bitmapData? do I have to code it via setting the pixels manually? Or can I simply just cast it as a Bitmap object?

here's a snippet of my code to show what I mean - At the moment this will return an error. Other things i've tried seem to return the object as a memory reference, rather than it's actual data.

(trace statement)
decoded.readObject() = ����
Error: Error #2030: End of file was encountered.
at flash.utils::ByteArray/readObject()"

[Code].....

View 5 Replies

Php :: Send POST Request With X-amf (Flash) Request Header?

Apr 13, 2011

I'm trying to reproduce a POST request that was captured from WireShark using PHP. This POST request was sent by a Flash (.swf) object, so it's a little bit complicated in configuring the header.It does not print out anything in the end, so there must be something wrong with PHP code that I could not see.Here is what WireShark captured:

POST /engine/ HTTP/1.1

Host: abcdef.com

User-Agent: Mozilla/5.0 (X11; Linux i686; rv:2.0) Gecko/20100101 Firefox/4.0

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8[code]....

The result is a blank page instead of response from server.

View 1 Replies

AS2 :: Post JSON Data From Flash With The JSON As The Body Of The Request?

Nov 5, 2010

I'm working on a Flash AS2 application that needs to post JSON data to a web service.In previous projects, I've used LoadVars.send() or LoadVars.sendAndLoad() successfully to manage this:

var send_lv:LoadVars = new LoadVars();
send_lv.data = JSON.stringify({some json object});
var response_lv:LoadVars = new LoadVars();
response_lv.onData = function(rawdata) {

[code]....

In somepage.php, I can grab that JSON data using $_POST['data'].However, on this project, the developer of the web service requires the JSON content to be the BODY of the request (i.e., not a name/value pair). Is this possible with LoadVars?

View 1 Replies

PHP :: How To Load SWF And Some Extra Data In Same Request

Oct 6, 2011

I'm loading a Flex 4.5 module (it's a SWF file) using a PHP code like this:
$module = 'modules/'.$_GET['module'].'.swf';
if(!file_exists($module)) {
$module = 'error.swf';
} $size = filesize($module);
$contents = file_get_contents($module);
header('Content-Type: application/x-shockwave-flash');
header('Accept-Ranges: bytes');
header('Content-Length: '.$size);
echo $contents;
And it works very well.

Now I want to get some extra data to load and populate the module with that data in just one request handler, something like:
private function requestHandler(response:???):void {
var data:Array = response as Array;
mySparkModuleLoader.load("", data[0] as ByteArray);
myController.load(data[1]);
}

I was trying to do it with AMFPHP but the ByteArray seems to be broken or something because it doesn't show up, but the rest of the data is fine:
return array(
'hello world!',
new Amfphp_Core_Amf_Types_ByteArray(file_get_contents($module))
);
Maybe creating a multipart response like [URL] and handling it?

View 1 Replies

Limit Illegal Unusual Request For Data?

Jan 26, 2012

[code]...

The RD is just a number, but it was a malicious transfer up to 10GB of data, or very large data.

View 4 Replies

Flex :: Pass Request Data With URL Fragments?

Sep 1, 2009

I'm passing the following parameter as an url fragment to flex. (#groupID=2385)

This works great on the development box, but when I put it on the production server.. nothing.

Do you think this is a server configuration issue. I presume that flex is talking to the javascript file 'AC_OETags.js' to make this all happen.

View 1 Replies

Data Integration :: Sending XML Request To A Secure Server (https)?

Aug 30, 2006

am having this problem of sending XML request to an addresswhich starts with "https". The problem is I always get the errormessage "Error opening URL "https:......."", instead of the actualresponse which should be in XML format as well.The function I am using is "sendAndLoad()"requestXML and responseXML are objects of XML class . Whatfunction "sendAndLoad" above does is to post variables in the"requestXML" object to the specified URL "servelet_address". Theserver response is downloaded, parsed as variable data, and theresulting variables are placed in the responseXML object.However, as I stated above, I always get the error message.

View 2 Replies

Send Xml Data To The Server Using HttpService Request Thr POST In Flex?

Dec 12, 2009

send xml data to the server using HttpService request thr POST in Flex?

View 1 Replies

Data Integration :: Read XML File Encoding="windows-1256"?

Feb 16, 2007

i made a simple project reads XML file and it works good when the file is encoded with UTF-8 (the file contains arabic text) but flash can't read XML encoded with windows-1256 ?

View 2 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

Flex :: Access Data Field Of A JSON Request Send By Client In JAX-RS?

Feb 2, 2012

I have the following JAX-RS service.[code]...

The JAX-RS service receives the request and respond successfully with some dummy response, but I have no access to the request.data field.

How do I access the data of the request message (which is {"type":"get_configuration","data":"some data"} in this particular example)? I think that I'm supposed to add some parameters to the handleMessage method like

public SomeResponse handleMessage(Object message) {...

but this does not work at all. The request got 415 response.

View 1 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

Data Integration :: SendAndLoad XML Request That Works Perfectly But Inside Of Any Browser It Stops ?

Sep 20, 2006

I have a simple sendAndLoad XML request that works perfectly on 95% of the computers I have used. I have check crosssite stuff and everything i can think of. Its not browser specific ,os specific, or flash version specific. On these computers I can run the same flash file on a standalone player and everything works flawlessly but inside of any browser it makes the request for the XML file and stops right there. After a while like 10 minutes flash gets tired of waiting and returns not found. I can navigate to the xml file via the same browser. Upgrading Flash doesn't help.The only thing consistent is it only happens to windows computers. The requested URL is the complete URL. I have changed this and still the same.IE or Firefox still the same. Version 9 player in both. I have montiored network traffic and see the request made and maybe a response but flash has moved.

View 1 Replies

ActionScript 3.0 :: Make A New Request To The Server If The Seconds Parameter Specifies A Time Outside Of The Currently Buffered Video Data

Jul 14, 2011

when uing netsream.seek(), how can i make a new request to the server if the seconds parameter specifies a time outside of the currently buffered video data. I want to seek unloaded time

View 3 Replies

Python :: Pass Data From Google App Engine(Python) To Flex 4 Application?

Feb 22, 2010

I am using python and webapp framework in app engine for backend and flex 4 for front end.I would like to pass a string form backend to front end, so i write the following code in the main.py:

[Code]...

View 3 Replies

Encoding Flash From Wmv Crashing

Apr 23, 2008

I've been using Flash Video Encoder for quite a while now and never had a problem encoding flash from wmv. But in the last week suddenly encoding crashes on ever attempt. At first I thought it was a change in the format of the video that was being introduced, but then I tired videos that I know that I've converted previously. They crash too. I've also tried on 3 different computers, that have all had success in the past.

View 6 Replies

Xml :: Character Encoding In Flash?

Mar 31, 2011

I have some German content which contains an umlaut (ü). This content is being built into an XML file. I then have a flash file which uses the xml to build a coverflow. My problem is that the 'ü' character is not being displayed in the coverflow. I've made sure the xml is encoded correctly, as you can see from the snippet below:

<?xml version="1.0" encoding="UTF-8"?>
<artworkinfo>
<albuminfo>

[code]....

As you can see, the umlaut is in the albumName element, but when that text displays it simply misses out the 'ü'. I've added a bunch of encoding groups to the text element in the coverflow file, as well as specifically adding the 'ü' in the 'Include these characters' element. I'm stuck for how to get this to display.

View 1 Replies

ActionScript 1/2 :: "POST" JSON Data In The Body Of A Request With LoadVars?

Mar 10, 2009

Is it possible to "POST" JSON data in the body of a request with LoadVars? I understand LoadVars sends data as name>value pairs. How can I send the data in the body instead?

View 1 Replies

ActionScript 3.0 :: URL Encoding Within Flash And Passing Variable

Oct 14, 2010

I am trying to send a twitter update when I press a button in flash. I get the twitter page to open from the flash file but when it passes the variables, it is passing it as the following into the browser address bar [URL] and on the twitter page text box it shows [URL]. The browser is rendering the percent sign and the number 20 as actual text and not as the space that I need it to.

Here is my code
function onTwitterButtonClick(evt:MouseEvent):void{
trace("Twitter button clicked");
var twitterShareURLPart1:String = "[URL]"
var shareUrl:String = "[URL]"+youtubeVidID;
var twitterShareURLPart2:String = "&text="
var escapedText1:String = encodeURIComponent("Check out this latest video from Me");
var gotoURL:URLRequest = new URLRequest (twitterShareURLPart1 + shareUrl + twitterShareURLPart2+escapedText1);
navigateToURL(gotoURL,"_blank");
trace(twitterShareURLPart1 + shareUrl + twitterShareURLPart2 + escapedText1);
}

View 1 Replies

Flash :: Standard Practices For Video Encoding?

Feb 22, 2010

Are there any standard practices for Video encoding, streaming, etc?

View 1 Replies

Flex :: URL Encoding When Downloading A File In Flash?

Aug 25, 2010

I have a flash app that needs to download a file, whose name contains UTF-8 characters.

Internally, the filename is read from a UTF-8 XML file, e.g. "my filé.pdf". The code goes something like this:

url = get_filename_from_XML();
req = new URLRequest( url );
ref = new FileReference();
ref.download( req );

The problem is that the URL is encoded in Latin1, i.e. the é is encoded as %E9 instead of %C3%A9 (according to FireBug). How can I get Flash to encode the URL correctly?

View 2 Replies

Read Flex / Flash URL Which Has Transfer-Encoding

Aug 25, 2010

I have a problem reading from Flex a url which has Transfer-Encoding: chunked because the FLex waits for the server to send terminate signal which in chunked transfer isn't sent...

View 2 Replies

Flash :: Detect File Encoding In Flex / Actionscript?

Feb 8, 2011

is there method/algo to detect universal file encodings ?

View 1 Replies

Flash :: Custom DEFLATE Implementation To Speed Up PNG Encoding

Jun 13, 2011

I'm optimizing a PNG encoder for use within Flash SWFs (but I'm writing it in HaXe).I've so far managed to speed things up a fair bit, mostly by using speedy memory read/writes.While profiling my code, I noticed that about 75% of the time is spent in a single call to Flash's built-in compress() method, which uses the zlib algorithm (which uses DEFLATE in turn).I'm not too fussy about compression ratio, but faster compression would be awesome. So, I was wondering if it's worthwhile to try to implement zlib/DEFLATE myself. A little searching has turned up the zlibC.implementation source, but it's not exactly light reading (or easy to port!).Are there any simple implementations of zlib/DEFLATE that I could use as a starting point? I'd rather not have to wade through the two specs, especially since I don't know whether an implementation running in AVM2 could even perform as fast as the native Flash one in the first place.

View 3 Replies

Flash :: Encoding Speex Into A SWF Version 10 Sound Stream

Mar 1, 2012

Adobe's "SWF File Format Specification v10" says that Speex encoded data can be used for streaming sound (a little clarification of the "streaming sound" definition here: "The SWF file format supports a streaming sound mode where sound data is played and downloaded in tight synchronization with the timeline. In this mode, sound packets are stored with each frame." - this has nothing to do with any FMS streaming, no ActionScript needed - just plain SWF).This should be accomplished by using a single SoundStreamHead2 tag with StreamSoundCompression set to 11 (which means "Speex", as stated in the abovementioned Specification) and then N pairs of ShowFrame and SoundStreamBlock tags. However, this does not work - Flash Player plays no sound when playing the SWF generated by me this way. Please note, that I am capable of generating such SWFs containing streamed MP3 or PCM data, which then play perfectly. Just not Speex...

I strictly conform to the Specification:URL...I tried the streaming sound approach as well as the event sound - both do not work.Moreover, I was not able to find (anywhere on the Internet) any sample SWF with streaming sound (nor event sound) encoded in Speex. Do they even exist? Anyway, Flash CS5.5 is not capable of generating them.I would just like to know whether Speex support for SWF streaming sound can be found anywhere else than in the Specification. (I know that FLV can contain Speex and that Flash Player can stream Speex from a microphone and that FMS can stream Speex to its clients, but this is not what I am asking for)

View 1 Replies







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