Flash :: Send/load Data To/from Server Side?
Mar 26, 2011How many possible ways to send/load data to/from server side data sources and what are the conditions of using each method.
View 2 RepliesHow many possible ways to send/load data to/from server side data sources and what are the conditions of using each method.
View 2 RepliesI am recording a video and while recording I issue some NetStream.send("doSomething", params) commands from client side. When I am playing back this video I receive the doSomething events on client side. No problems so far.Can I receive those events on server side? I want to handle those events on server side. Not client side.
View 2 RepliesMy .fla/.swf file is unable to load the data from server. Instead, it is displaying the below error: Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: [URL] cannot load data from [URL]. at MiniHumanAp_fla::MainTimeline/MiniHumanAp_fla::frame1() the reply for root-cause of this error...
View 4 RepliesMy .fla/.swf file is unable to load the data from server. Instead, it is displaying the below error:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://www.mymdworld.com:8082/MiniHumanAp.swf cannot load data from http://localhost:8082/getviews?category=OB%2FGYN. at MiniHumanAp_fla::MainTimeline/MiniHumanAp_fla::frame1()
I'm implementing a very simple audio-only RTMP server.I have my client code like this:
// get the default mic
var mic:Microphone= Microphone.getMicrophone();
// best quality (picks up all sounds, no transmission interruptions)[code].....
Then on the server, I keep receiving audio packets with size of either 43 bytes or 11 bytes (no other sizes found yet).My questions are:
Why do I get size of either 43 bytes or 11 bytes (from SPEEX encoding?)?
Is the 43 bytes = 1 head byte + 42 data bytes?
What is the size of 11 bytes?
How should I process or convert the SPEEX to raw data, so that my server side app can use this audio data? My current implementation:
I pick up all 43-byte packets (drop all 11-byte packets);
Skip the first 1 byte;
Decode the left 42 bytes using Speex library.
How should I convert the raw data back to SPEEX audio data?
I am trying to load the value of a php variable into a dynamic text field in flash mx. I am using the loadvars method, with "nameofPHPfile,"0","GET" etc. It doesn't seem to work, but then I am not sure if the php code is correct. A process of elimination is needed. Am I using the right method in flash???
View 14 RepliesI want to download files from the server side to client side without prompting a window to the user to download when any updates happen at server side.Right now I am using urlstream class but first file is downloading completely rest of the files contents downloading partially.
editCode sample taken from other post. Warning: it's a huuuge chunk o'code.
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:MyComp="client.components.*" layout="absolute" height="554" width="817"
[code]....
I'm trying to make a software which sends video and audio data to a flash media server by using RTMP protocol. Currently, my program can communicate with a flash media server correctly. RTMP specifications does not describe about the raw data in video/audio messages, so I muxed raw H.264 and AAC data into video/audio messages and sent to the server. The server seems to accept them, but a video player cannot playback the stream sending from the server. The player just says "Loading..." For a test purpose, I sniffed the network packets between Wirecast and the flash media server and ripped off only video and audio data. Then, I muxed those data into video/audio message and sent to the flash media server. In this case, the video player connected to the server can playback the stream correctly.
I checked the stream sent from Wirecast, the stream seems not to be H.264 raw data because those data are not started from 0x17 instead of H.264 start code. With those situation, I am wondering what kind of container format I should use for H.264/AAC data to the flash media server.
I made a server connection with AC3 and C, I need the client(AC3) to be able to send a 3 byte message to the server (C) and have the server return a resopnse. So far everything works except for the fact that the feedback isn't fast enough becuase AC3 just tests for data once and moves on instead of waiting like in C. I'm using a binary socket at the moment but I was wondering if there was any way to wait for new data before moving on
View 2 RepliesI want to create an application that has these features
- At client side: Display a list of images, when user click on one image, data will be stored in MySQL database.
- At server side: Manage images used in client side, I can delete, add new images.
Is this possible for me to achieve this using Flex? And if it is able, will my output be 2 separate SWF files? And where can I find the materials to read on writing such applications?
I am a Flex developer and now I have started learning the fundamentals of iOS, Objective-C, and accessing server-side data. Most of the Flex projects I do are mainly in accessing server-side data with Flex from .Net, Python, and Java since we all know data access in Flex is possible only via 3 ways: Http, Web-service, and Remote Object. Out of these 3, Remote Object is the most reliable, fast and handy.ion is, do we have remote object concept in iOS? I mean is there any interface (like blaze DS, weborb) available on the market forserializing/deserializing Objective-C object type to C#, Java, and python or vice versa?
View 57 RepliesI currently have a Flash app that gets populated by parsing data from an external XML file. However, I need to get the XML data into a (JSP) session and can't neccesarily have an external XML file--any suggestions? Can I put the XML string into a hidden input field in a form on the HTML? Can Flash communicate with that HTML? Or are one of the below methods recommended:
* FlashVars
* Flash Remoting
* Web services
* JavaScript - call JS function
* fscommand
* ExternalInterface
My problem is a little unusual. I have a perl script thatdoes this great job, but I want to make a flash interface for it.The thing is that I don't want the flash to load any new pages orpop-ups when executing the script and so looking as if the flash
View 2 Repliesi do not know how to write the server side .can someone tell me what should be the script?
View 1 RepliesI want to make a form on my site to collect users' names and emails, but the site is being hosted at an institution that has no back-ending server side stuff. Is there any way that i can collect simple data without the host server doing anything? with the getUrl command?
View 7 RepliesBelow is the code. When the swf is connected to FMS(the connection is successful) I use this application.user_so.send("enterContestGroup"); to call the client side mothed. You can see that in the client side I have defined the "enterContestGroup" mothed. However the fact is it doesn't call that mothed. Can anybody tell me what the error is
application.onAppStart = function(){ application.user_so = SharedObject.get("user_so", false); application.nextId = 0;}application.onConnect = function(newClient) application.acceptConnection(newClient);
[code]....
Is there anyway to export JSON data to CSV/Excel without any interaction with the server side? Using Javascript only? or Flash? I'm currently using ZeroClipboard to copy the value into the clipboard but I'd like to open directly the generated value into Excel from the browser (FF, Chrome, IE, etc...).
View 1 RepliesI am working in flash chat in that I need font type,size and color for typed text. how to send the html data from client to server and get back for client.
View 1 RepliesIs this the best way to send post data to a server?
[URL]
if not what is a better way? I don't want to open any web page windows (New Tabs).
I am working on the web base flash application I am trying to communicate with server through binary socket to the server IP Address and Port using Action script 3.0 at the server side we are using java. I will like to send binary data string to the server in a clubbed single packet.
View 1 RepliesI am attempting to send XML data to a PHP script from my server-side app using the following code:
var my_xml = new XML("<highscore><name>Ernie</name><score>13045</score></highscore>"); my_xml.contentType = "text/xml"; my_xml.send("http://www.server.com/temp/fms_post.php");
I am logging anything that the outside server receives at $_REQUEST, $_POST, $_GET. I can see that my server-side app is reaching out to the external server, but the data is always blank.
I am using FMS 4.5 and have a simple application which I want to use to send two strings to a php file. But I get a compilation error whenever I try to assign any value to these objects:
Here is main.asc:
<code>
var variables = new LoadVars();
variables.username = "uname";
variables.send(http://url.abc.com/test.php,POST)
</code>
I can't compile with the second line. FMS just says: Sending error message: Compilation error
How do I send variables to a HTTP URL?
i want to make a simple chat with flex as3 and red5 media server
my idea is that i send from the swf a message to the server and the server sends it to all the swfs (including the one that sent the message)
i just don't know how to to send and receive and how to receive from the server
send xml data to the server using HttpService request thr POST in Flex?
View 1 RepliesI have written an ActionScript 3 class that is a Server Socket and accepts connections.I want to write a client in order to send data to the server. The client will be a mobile browser. I think that i will use javascript. Is it possible to connect to the server from mobile environment?
View 1 RepliesI have XML object formed and data ready to write to the server by means of server-side script. The code used on the server-side script is testing code available from the ActionScript 3.0 cookbook examples (by Joey Lott). It basically takes the XML object, parses it and writes some of the text node values into a textfile. What i want to achieve send the xml data from AS3.0 to PHP/PERL script, parse these data, write some variables from the xml object into a textfile on the server.
[Code]...
I'm trying to load some binary data from server like this
var urlRequest:URLRequest = new URLRequest("http://localhost/test.php");
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
[code].....
i want to know how to send data using the AMF format from my flex AIR project to a socket written in Java. I am getting CorruptedStreamException when sending data using writeUTFBytes() methods. Has anyone experienced similar problems? Also can AMF be used only if i am using LCDS only?
private SimpleServer(int port)
{
System.out.println(">> Starting SimpleServer on port " + port);
[code].....
can you write and modify XML files using server-side Actionscript? I've been going through Adobe's Server-side Actionscript reference, reading up on the File class that lets you modify files on the server, and the server-side XML class that lets you read and 'understand' XML data, but can you put them together and essentially edit XML files on the server?
View 2 RepliesI can't use a proxy server. Can't use google app engine etc. I can't use server side code. No php or python. I need to be able to do logins to twitter and post status updates to twitter through an Actionscript 3 web application. The biggest thing is obviously getting around twitter's crossdomain. Is there a clean ajax version of this or something?
View 1 Replies