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


Similar Posts:


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

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

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

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

ActionScript 1/2 :: Server Request Based On Time?

Feb 3, 2011

I am sending a request to a server. If i didn't get a response i need to send a request once again after 3sec. Like this i have to check for 3 times. If 3 rd time also it fails i need to terminate the request by prompting a msg to customer.

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

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

Flex :: Reduce The Time Request Between Producer (Java) And Consumer (Flex) With JMS Message?

Jul 12, 2010

I have implemented application client-server with spring blazeDs message services using JMS message destination. The idea is a producer declared in Java send message using activeMQ and consumer declared in Flex receives them. I have configured the AMFChannel with a polling interval 0, but I have seen when the consumer subscribes to the destination in Flex, the time request can be of up to 3 seconds.

[Code]....

View 1 Replies

Flash :: Data Integration - Xml.load() Failing - Passing All Of The Data Via A Query String Appended To The Movie's Url

Sep 5, 2006

We have implemented a Flash photo slideshow on our site and it works just fine for most of our users. Whenever the xml.load(success) returns false I have the Flash email me a debug report. For the life of me I can not find a common thread between all of these people having problems with the Flash. I don't think it's a cross-domain issue because it works for most people, and I have the crossdomain.xml files where they should be.

[Code]...

View 1 Replies

Data Integration :: Flash Movie To Enter Data Into Access?

Jul 17, 2009

I have a simple microsoft access database (table with a handful of fields).I want to make a flash form that operators can use on mac and pc to enter information into the database.I know little about databases and although I've worked as a designer with flash for years, i know little about the latest scripting too.

View 4 Replies

IDE :: URL Request - Load A DivX Movie Into A Swf Animation?

Nov 21, 2009

How do you load a DivX movie into a swf animation? I know this is how you load a swf.

[Code]...

View 2 Replies

Data Integration :: Set Time In Flash (ie) In Application

Jul 1, 2006

I had been using Flash Lite 2.0 for application.I need to set time in Flash (ie) In my application i have to set time to 60 secs. when i enter into application the time starts from zero and when it reaches 60 secs the application has to exit.

View 3 Replies

Data Integration :: Import XML Data Into A Flash Movie?

Oct 26, 2006

I have the Following requirement and I do not even know where to begin.I have created a map of a Country and on the map are several towns and cities, obviously easy enough so far.So, for example, say the XML data provides information of ten different pieces of information, one might be say Lightning Strikes.

I want to be able to create a dynamic map that adds a Red dot beside the City, that represents a record of the lightning strike. Or ,if required a larger dot might represent 10 lightning strikes if it is a very regular occurance.The main objective is to provide an up to date visual representation of which location is more active.I don't mind experimenting or following a link or guide to work it out,

View 1 Replies

ActionScript 3.0 :: Real-time Data Loading Flash?

Oct 16, 2009

I have created real-time data loading flash file. I'm loading realtime data in dynamic text filed using variable. From JavaScript, I'm pushing the data into those dynamic text fields with 10 seconds interval.

Now I want to animate the dynamic text fields when the new data load into the text filed.

View 5 Replies

PHP :: Flash Browser Game - Real Time Data Exchange

Feb 16, 2011

I am developing a non-real time browser RPG game (think Kingdom of Loathing) which would be played from within a Flash app. At first I just wanted to make the communication with server using simply URLLoader to tell PHP what I am doing, and using $_SESSION to store data needed in-between request. I wonder if it wouldn't be better to base it on a socket connection, an app residing on a server written in Java or Python.

The problem is I have never ever written such an app so I have no idea how much I'd have to "shift" my thoughts from simple responding do request (like PHP) to continuously working application. I won't hide I am also concerned about the memory and CPU usage of such Server app, when for example there would be hundreds of users connected. I've done some research. So, considering the fact I don't need real time data exchange, will it be wise to develop the server side part as socket server, not in plain ol' PHP?

View 1 Replies

ActionScript 3.0 :: Flash - Pulling Data From A Database In Real Time?

Aug 15, 2011

I am a pretty big newb- my challenge is get a flash page to look to a database and check for updates constantly (in the realm of 1update/second) then pull new data as it is added.

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 :: Programmatically Assign A Loader + URL Request To Each Of The Created Movie Clip Buttons

Jan 20, 2009

I know this should be do-able, but i am stumped... I created a row of movie clip buttons + eventListeners (CLICK) with a for-loop. i now want to take an array that consists of a list of swfs (i.e., var myArray:Array=new Array(); myArray=["thing.swf","dog.swf",more.swf",etc}--and programmatically assign a loader + URL request to each of the created movie clip buttons that will load the swfs on the button click.

View 1 Replies

Movie Clip Within Main Timeline Runs Slow/choppy First Time Around, But Not Second Time?

Dec 11, 2009

I have a fairly complex animation movie clip within my main timeline in a Flash file.  When you click a button, it plays the movie clip, then goes back out to the main timeline.  The first time the movie clip runs, it plays choppy and slow, but if I play it two or more times, it plays correctly (smoothly).  Is there some actionscript I need to preload the movie clip, or some other solution to the first-run slowness? 

View 2 Replies

Setting A Time Limit On Flash Movie?

Jul 20, 2009

I created a "movie" that is basically just several sentances fading in and out. I'd like it to stop eventually, so it's not annoying. I know with animated gifs you can tell it to "play" 5 times (or however many times you want). Is there a way to do this in Flash? Or would it be something I set on my html page?

View 1 Replies

Flash :: Datetime - Adding Time To Movie

Dec 24, 2010

i call a flash script from another flash script with the following code:

[Code]...

i need to change it so that it will call a different movie clip each time the clip is viewed, using the time (so that the movieclip will be a new one every time a user refreshes the page or sees the flash again).

View 1 Replies







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