ActionScript 3.0 :: Wait For Data - Send A 3 Byte Message To The Server (C) And Have The Server Return A Response?

Dec 17, 2010

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 Replies


Similar Posts:


Flex4 - How To Send Byte Array To Server In Flash Builder (Flex 4)

Mar 24, 2011

I have a video file in my local system.I am using windows XP in my system. Now i want to send this video file byte array to server in Flash Builder (Flex 4). I am using PHP at server end.

View 5 Replies

Media Server :: Send Message To Direct Connected Users?

Jan 17, 2011

working on a text Chat application with FMS4 "RTMFP" connection and i am looking a functionality to send direct message to one to another peer

View 6 Replies

Flash :: Media Server - Send Video And Audio Data To A Media Server By Using RTMP Protocol

Jul 22, 2010

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.

View 12 Replies

Media Server :: FMIS 3.5 - No Response When Sending Seriel To Server For Approval?

May 6, 2010

I have upgraded from FMS2 > Flash Media Interactive Server 3.5 I added both the seriel number for FMS3 and FMS2 during the installation process.  When I logged onto the admin panel there was no licence listed, and a link saying "to upgrade to unlimited connections now, click here".
 
So, I checked the fms.ini and no seriel was there.  I put the seriel number in and restarted the server through the FMSadmin tool.  Still, no licence file was showing. I then added the licence file via the admin panel and got a dialogue saying "Seriel Key "blah" Sent To The Server for approval".  The seriel key now appears with a valid status of false.  And no further progress after that.   The documentation states that when you add the seriel key in this manner it should recognise it immediately.
 
Can anyone suggest what I might have done wrong?  I have trebble checked the seriel number, and copied and pasted it to make sure it is exactly right.

View 3 Replies

Flex :: RDS Server Connect Data Services Using Blazeds Get Error Message

Mar 2, 2011

When I connect data services using blazeds I get following error message.

[Code]...

Why am not able to connect? But when specify remoteObject in the declaration tags and call the methods it works fine.

View 1 Replies

Media Server :: Send HTML Data?

Oct 9, 2009

I 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 Replies

ActionScript 3.0 :: Send Post Data To A Server?

Sep 23, 2009

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

View 5 Replies

ActionScript 3.0 :: Send Binary Data To Server?

Oct 8, 2009

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 Replies

Media Server :: Call By 3 Buttons The Same Server Function And Return 3 Different URLs?

Dec 26, 2009

I have a question... Can I use the same server side function to send to all lients 3 different swfURL depending on which button pressed from one of them? If the answer is positive...how can I do it?

View 6 Replies

Media Server :: Xml.send() Sending Blank Data?

Sep 22, 2010

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

View 3 Replies

Flash :: Send/load Data To/from Server Side?

Mar 26, 2011

How many possible ways to send/load data to/from server side data sources and what are the conditions of using each method.

View 2 Replies

Media Server :: Using LoadVars In SSAS To Send Data To A Php File?

Mar 21, 2012

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?

View 2 Replies

Flex :: Adobe - Send/receive Data From/to Media Server

Oct 27, 2009

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

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

Sockets :: Write A Client In Order To Send Data To The Server?

Jun 19, 2011

I 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 Replies

ActionScript 2.0 :: URLRequest - Send The Xml Data To PHP / PERL Script (server)

Dec 13, 2006

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

View 1 Replies

Media Server :: Receive Stream.send Commands On Server-side?

Nov 12, 2010

I 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 Replies

Actionscript 3 :: Send Data In AMF Format From Flex To Java Socket Server?

May 19, 2011

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

View 2 Replies

ActionScript 3.0 :: Send Post Data And Receive Response From Https Url?

Jan 21, 2011

i am using flash cs5 with AS3 along with PHP 5, i am calling a https page and sending post data to it and retreiving the response, its working fine inside action script (FLASH CS5 IDE) but when i am embedded flash in html to use it from my web server (WAMP) then it is unable to send and receive data from https url.

i have turned on the mod_ssl module from php.ini for both php and apache.

but still there is no gain. can you advice me any method to control this thing with in action script 3, (i tried php curl but not useful) or the right way to do it, i want to post and receive data from https url from action script or php.

View 1 Replies

Actionscript 3 :: Server Library API To Send Request To Server From Flash

Jul 22, 2011

I want to write application for facebook and vkontakte, which will consist of such main blocks as: SocialNetworkAPI (which include all work dedicated to social networks: posting to wall, get all user's info) and ServerAPI (which will send HTTP POST requests to my Java based server and receive data from there in JSON).

I am looking now to Adobe flash URLLoader

is there any good ServerAPI libraries, which I can use or rework to prevent rewriting standart code lines.

View 2 Replies

Media Server :: Double Byte Stream Name

Feb 2, 2012

is it possible to play RTMP stream with double byte name like japanese korean etc.? I tried to with and without escape() stream name without success like [URL] doesn't work

View 1 Replies

Media Server :: XMLSocket NULL Byte Generation?

Mar 25, 2010

I'm trying to get an external script to communicate with an application instance running on my Flash Interactive Media Server installation. I've got the following server side actionscript in my AppStart():
 
[code]...
 
The connection to an open socket on the localhost, port 16005 works fine, but when I try to write some xml to the socket that I accepted the connection on (running on the localhost), I never seem to get the onXML or onData callbacks on the server application instance. One question that I had was regarding the NULL byte. If the FMS application doesn't not receive the NULL byte, does that mean the callback won't happen? If so, can someone tell me how to take something like a Python string and *add* a NULL byte so that the FMS will invoke the proper onXML or onData callback when this data is sent?

View 1 Replies

Flash :: Handle Server Response In AS3

Mar 9, 2010

I have an asp page that loads a response " user=exists " everytime I try to update a database record (when of course the record already exists!) How can I handle this response with AS3 in Flash?

View 1 Replies

ActionScript 3.0 :: Get Nodes Of An Xml Server Response?

Aug 3, 2010

I'm using the twilio API [URL] and AS3 to make a post to the server. The server responds with an xml, which you can see on the link above.

How can I access the individual blocks of the response? I currently get all the xml with the 'sendCompleteHandler' function.


The code:

ActionScript Code:
private function dial () : void
{
send_variables = new URLVariables();

[Code].....

View 0 Replies

Php :: Uploading Image To Server Using Byte Array To Upload In Flex 4.5 Air?

Jun 13, 2011

I'm using Flex 4.5 in a Mobile air for android application. So, Using the Camera/Camera roll [URL]I want to do a simple upload using amfphp Note: Since this is how you get pictures on devices, i cant use the filreference because it wants you to get the pictures using "browse" which cant be done on android or ios My plan is, after I select a picture or capture one with the camera, in the event I can get the local url to the picture that was taken like this:

[URL]

I'm putting this in the imageURL var (i'm assuming i should make it into a byte array to transfer it, im not exactly sure this is my first time making something like this)Here's how i'm taking that image, making it into a byte array, and using amfphp to send the upload to the server:

protected function upload_btn_clickHandler(event:MouseEvent):void
{
var request:URLRequest = new URLRequest(imageURL);
var urlLoader:URLLoader = new URLLoader(request);

[code]....

But i'm getting an error NetConnection.Call.BadVersion.This is the first time im trying something like this so im not even really sure if im going about it right. All the examples I find online go about using the fileReference class, but that seems to require me to use the "browse" method, and im on a mobile application that uses the camera and camera roll to grab pictures off the device, and im not sure how to incorporate that into the fileref class. I figured i could just get the byte array and send it to php myself and it should be just fine.

View 1 Replies

Delay Server Response In Multiplayer Game?

Apr 20, 2011

I'm making a multiplayer flash game where at a 'table' more than two players will be playing. Its turn based. Using zendAMF can the server response be made to wait till the player whose turn it is has made his move, so that it will appear to be real time?

I don't want to use polling since I read that it is not a very good practice. Instead can this method work? Lets say its player A's turn and the other players B,C,D are waiting. Their flash clients send a request to the server to get any updates. Instead of responding immediately can the server wait till player A has made his move and then send its response containing player A's move details to other players B,C,D?

Edit: Added image.Found the name of this method. Its called Long polling. So can Long polling be done with PHP webserver running apache and using a flash client which sends the requests?This is how the other players waiting players B,C,D are expected to be treated.

View 1 Replies

ActionScript 3.0 :: Response From Server Into Arraycollection Trauma?

Oct 27, 2010

I am developing an application that takes a variety of bits of info and displays them in pods within a page.

One of the bits of info takes ONE row from a database table and tries (currently) to put it into a datagrid. Now, I know Flex wont allow that, so I have tried all kinds of things to fix it - using the xml directly, trying to get the info into labels casting as an array, using xmlistcollections... so much time on Google but now I am stuck. I'm not precious about getting the info into a datagrid - in fact I'd rather put it into labels or text boxes so I can presents it in a more flexible way.

Looking in the debugger, it seems like I don't even have the data in my variable - I do have it in the event so it is there, but I can't for the life of me get it out...This obviously works fine for multiple rows of data in the array - not the single row. i'm trying to get the info into a var called _SystemStatus.

Overview of Code:I have a mxml but with all the presentation stuff in. I also have two actionscript modules with code in (you may have guessed that I am new to this, so I have found most of this great code on the internet)

The AS bits are sql.as - this basically is a load of functions called by the mxml which contain the sql to send to the database mssql.as - this does all the magic of getting the data from the db, and taking it from the event.

Code below:

CompletionTimes.mxml (note - its got errors in where i have tried things)

Code:
<?xml version="1.0" encoding="utf-8"?>
<PodContentBase
xmlns="dashboard.view.ActionScript.*"
xmlns:mx="adobe web (removed so i can post!"

[code]....

View 0 Replies

ActionScript 3.0 :: Uploaded To The Server Get No Kind Of Response?

Feb 16, 2011

I have been staring at this code for quite a while but can't find what's wrong. When uploaded to the server I get no kind of response. I have a class gameEventDB that through a php reads data from a database.

I get no kind of response not even an error. the 'path' variable is sent from the main class and looks something like

[Code]...

View 0 Replies

Media Server :: Fms Live Stream Server Stops Sending Data Around 4+hrs?

Mar 21, 2012

My rtmp client connects to the server ok and rtmp data flowing ok for about 4hours, in the wireshark trace I can see that the server just stops sending data roughly after 4hours. The server version is 3.5.1, and I also try it on a 4.0 server the data stops coming from the server as well after 5+hours. There are no errors or any indication of session disconneciton in the diagnostic logs. I have also looked thru the settings in applicaiton.xml and server.xml I just don't see any obviious reason for the issue. I do send rtmp Acknowledgement to server after the client receives "window size" bytes, and the client sends ping response to server.

View 1 Replies







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