FLASH :: PHP - Persistent Connection (data Streaming)

Mar 11, 2012

The idea behind is a multiplayer browser game which interacts with a PHP server. Right now it works like this: Every second the browser is doing an ajax call to the php script which checks everything and returns the response. All in all it runs fine, but the problem is that the browser gets overloaded (because of thousands of ajax requests) after a while and it becomes impossible to play anymore. Also the delay of 1+ second is pretty much. My idea is to have a simple flash pixel which will have a 2-way communication with the server. For example:

[Code]...

View 2 Replies


Similar Posts:


ActionScript 1/2 :: XML.load Making Persistent Connection?

Mar 17, 2010

When we do XML.load on flash application, then we do netstat on the server-side it opens a persistent connection. Im finding out the reason why its doing that, it should be close right away when the xml loading has finished. problem is the connection remains open.

View 5 Replies

Flash - Persistent Data In Actionscript 3?

Nov 24, 2010

What packages and/or classes do I want to look into when I'm trying to make a Flash program that will run on multiple desktop and mobile platforms and I want to use persistent data?

Edit:I am working on a program that will allow people to study certain texts following a daily study program. The text is different every day, and I want every person to be studying the same thing. I intend to export this to Projectors for Mac/Windows and I would like to allow people to use it on mobile devices as well. Preferably, the program should not require internet connectivity.

View 5 Replies

Data Integration :: Flash Form Data Connection Offline?

Jul 25, 2007

I want to create a flash form and be able to collect the dataoffline. The company I work for has a e-newsletter, and we wouldlike to set a lab top up (outdoors w/ no interenet connection) atan event and have the people sign up for the newsletter on thisflash form and collect the data in some kind of database (excel orwhatever). We had used paper in the past, but taking the names andemail addresses from the paper is time consuming and sometimes very

View 1 Replies

Actionscript 3 :: Red5 Streaming Connection To Flex?

Feb 7, 2012

I installed red5 successfully, but when I try to connect to red5 to stream a video, the connection fails. If I use netstreaming(null), it works, but when I use red5, it doesn't.

[Code]...

View 1 Replies

Media Server :: Streaming Loaded Video - Connection Error

Mar 10, 2010

I have installed a FMS to a CentOS server. I created an application here but I cannot connect to it raising a "Connection Error". I tried testing it by streaming some videos on the samples on vod. I used the "../samples/videoPlayer/videoplayer.htm" which is locally found on my computer that was included when I installed a FMS too on my local computer (Windows). When I try to load a video from my computer's FMS samples it usually works. I used the following Stream URL here:
rtmp://[MY-IP]/vod/sample.flv

But when I try to load a sample vido from the server I still get "Connection Error". I used the following URL
rtmp://[server-ip]/vod/media/mp4:sample.f4v
The file is located at /applications/vod/media/ which is as far as I know, the vod is the application's name and media is an instance name. Is there a sample working Stream URL on the internet that I can use to test?

View 41 Replies

ActionScript 3.0 :: Html5 - Flash - Making Data Connection

Nov 8, 2010

I dont know a lot about html5 but is this expetced to compete with Flash/AS3 with regards to game making, data connection etc? It hard to image OOP with html as some games take thousands of lines to do.

View 2 Replies

Properties :: Flash HTTPService : Reading The Connection Data From Property File?

Dec 19, 2011

i have my HTTPService, it looks like this :

<s:HTTPService
id="setCustomerInstalledPackageService"
url="http://localhost:8090/myapp/servletName"

[code]......

View 1 Replies

Media Server :: Secure Flash Media Streaming Server 3.5 (live Stream Connection)

Aug 23, 2010

I have Flash Media Streaming Server 3.5 (not Interactive) running on RHEL5.5 x86_64 Linux.All is working well, however how do I prevent unauthorized access to connecting to the live stream and streaming content?How can I setup the server to require a user and password to stream live media to the server?I am new to this product and I have been reading some documentation but I have not found a clear cut answer on how to force a username and password to connect to the server to stream live content only.I am using the Adobe FMS Apache install, what files need changing?[code]I want to lock down a person from connecting to the server on the public internet and starting a live stream?Can this be done with a user name and password?

View 13 Replies

Actionscript 3 :: Streaming Large Amounts Of Data From Flash?

Nov 2, 2010

I'm currently working on a project where I generate a large amount of audio data to be stored on a users machine.

It works fine for small amounts of data but as the memory usage grows the flash application begins to struggle and eventually dies.

I've been thinking about possible ways to overcome this problem and I was thinking instead of storing all the data in memory (sometimes up to 100mb) a possible solution may be to stream the data to a server (44100 float numbers per second) as it is is being generated then once the accumulation of data has ended sending it back to the client.

1) can you see any problem with this idea and if so could you offer a better alternative?
2) could you reccommend a good server technology to achieve this?

Edit 1

To add more detail.

I am generating audio on the client using the sound.extract method. As the audio is being sent to the speaker I also send it to a byte array.

Once the user has hit a stop button I prepend a wav header to the audio data in the bytearray and allow the user to download a wav of the audio they have just being listening to.

Ideally I didnt want to impose a limit of how much data the user could save. This may not be possible.Storing all this audio data in memory was causing severe performance problems in flash. I don't know of any way to incrementally store this data on the client machines so I was thinking a solution may be to incrementally stream the data to a server somewhere to reduce the memory load.

View 2 Replies

Flash :: Persistent MP3 Player Using SharedObject?

Jul 2, 2009

I'm trying to create a persistent MP3 player using SharedObject. Initially I tried using frames and while it worked, frames suck so I continued looking into it.I came to find out about Flash's SharedObject. It seems easy enough but I can't nail down the logic correctly. I've attached a sample .fla for anyone interested to look at. I need the song progress to be stored and retrieved when necessary to keep the same song playing whenever links are clicked within the HTML page.

View 3 Replies

Flash - Creating Persistent MP3 Player Using SharedObject

Oct 8, 2010

I'm trying to create a persistent MP3 player using SharedObject. Initially I tried using frames and while it worked, frames suck so I continued looking into it. I came to find out about Flash's SharedObject. It seems easy enough but I can't nail down the logic correctly. I've attached a sample .fla for anyone interested to look at. I need the song progress to be stored and retrieved when necessary to keep the same song playing whenever links are clicked within the HTML page.
Here's a link to the .FLA - [URL]

View 1 Replies

Silverlight :: Get Video Streaming Data From Flash Player To View On Phone?

Jan 30, 2012

Is it possible to investigate an html page that views a video streaming data using flash, and then use these data to view it on the phone? For example Al Jazeera website has a streaming service. I've looked through the html page and other resources using chrome developers tools. I found a lot of data, but couldnt figure it out which data I need.

View 1 Replies

Media Server :: Make A Local Streaming (connection) To The Server,by Seting The FME?

Jul 21, 2011

I managed to make a local streaming (connection) to the server,by seting the FME at rtmp://localhost(or my IP)/live.But now i want to make a non local streaming.

View 2 Replies

Data Integration :: Embed Live Streaming Windows Media In Flash Website

Feb 3, 2007

I am new with Flash, and still trying to learn. There is one thing I can't find information about. How do I embed a Windows Media stream on a flash web site? If possible at all.

View 1 Replies

Iphone :: Flex - RIA Flash Apps On The IPhone Store Persist Data Until An Internet Connection Is Available?

Oct 8, 2009

I'm interested in building a thick client application for my existing web services that will run on the IPhone. Flash finally seems to be an option, so I thought about using Flex for client side development.

However, since flash apps are not natively supported by the IPhone, but only through a wrapper, I was wondering if these apps can persist any data. Data entered by the user should eventually be transmitted to the web service, but until then I want it to persist even if the Iphone should run out of power.

Is this possible? Or does the Iphone flash wrapper make it impossible to access the hard disk?

View 2 Replies

ActionScript 3.0 :: Socket Connection - Sending Data Without Any Errors?

Mar 18, 2009

I use a socket connection to share data between flash and VB. I check the connection in VB and send a message when my flash is connected. My VB tool then sends the data continuesly (about every 40 milliseconds or slower) to flash. Works fine. Now I have to send some data back from flash to VB. I can send the data without any errors in Flash but it never arrives in VB.

View 3 Replies

Data Integration :: Securely Sending Connection String To Swf?

Oct 15, 2006

ok so when i need to connect a swf to some sort of data source on the server be it XML, a .NET DLL, a CFC or what ever so that i can load data from a database or what ever, everyone is always saying that i shouldn't hard code the connection string into my actionscript as anyone can get it and do malicious things with it. So how should i load the connection string into flash. if i put them on the server in an XML file or somthing like that then i still need to put a connection string into the actionscript in order to load in my main connection strings into the actionscript.

Basically i need to know how to load an external string into a swf without anyone else being able to get hold of that string for them selves. i am developing an app for somone and i need it to connect to a database and i need it to be secure. i have everything sorted except making the connection string to the database unstealable.

View 1 Replies

ActionScript 3.0 :: Establishing Connection To Php And Mysql Data Base?

Sep 11, 2009

i have been trying to execute a simple flash program that communicates with a php page which is linked to a mysql database.somehow the php is not returning any data to flash , and even falsh is not sending any data to php.. I am using wamp server on win7.Heres my actionscript code:

stop();var variables:URLVariables = new URLVariables();var varSend:URLRequest = new URLRequest("php.php");
varSend.method = URLRequestMethod.POST;varSend.data = variables;

[code].....

View 5 Replies

Media Server :: Bad Network Data; Terminating Connection

Aug 13, 2010

Many times, each day, a notice this error in the event log :

[Code]....

each time after this error, the netconnection between the publisher and the server close. I have some log in my app who check the connectivity between the publisher and the server:

[Code]....

I just want to confirm if it's the real issue of this problem or if other thing can provide this result and how can I prevent the deconnection of the publisher if this append again?

View 5 Replies

ActionScript 3.0 :: Using A Local Connection To Share Data Between 2 Apps?

Jun 23, 2011

I am using a local connection to share data between 2 apps. The receiver has a function that runs every time new data is sent. I need to run another function every time that function runs, how can i do this?

View 2 Replies

ActionScript 3.0 :: Sockets Not Closing Data Connection On Windows

Nov 10, 2009

I've written a basic FTP client to allow me to upload files through the browser without using the FileReference.upload() func (because it's damn slow). I've got all the socket logic worked out and it works for one upload. When the upload is completed, the FTP data socket is closed by the socket.close() func which triggers a response from the command socket and starts the whole process over again. This logic works perfectly on my Mac in both Safari and FF.

I can upload files and cancel uploads and it all works as I want. When I test it on Windows (IE 8, FF 3.5, Safari 4 on WinXP and Win7) it is busted. I've tracked down the problem to the fact that on Windows, the socket.close() function is not causing the server to close the connection. I don't know if this is because it's not sending a proper command or what... but that's where it's at.

View 4 Replies

Python :: Make A Flex Application Where It Gets Data From A Telnet Connection?

Feb 7, 2010

I am trying to make a flex application where it gets data from a telnet connection and I am running into a weird problem.To give a brief introduction, i want to read data from a process that exposes it through a socket. So if in the shell i type telnet localhost 8651i receive the xml and then the connection is closed (I get the following Connection closed by foreign host.)

Anyway i found a simple tutorial online for flex that essentially is a telnet client and one would expect it to work but everything follows Murphy's laws and nothing ever works.Now i have messages being printed in every event handler and all places that i can think off. When i connect to the socket nothing happens, no event handler is triggered even the connect or close handler and if i do the following the socket.connected returns false! I get no errors, try catch raises no exception. I am at a loss as to whats going wrong?

socket.connect(serverURL, portNumber);
msg(socket.connected.toString());

Is there something about telnet that i do not know and its causing this to not work. Whats more interesting is why none of the events get fired.The following is the python code that works!

def getStats(host, port):
sock = socket.socket()
sock.connect((host, port))[code]....

View 2 Replies

Asp.net :: Xcelsius XML Data Connection Using .aspx Page Error #2032

Mar 21, 2012

Because of my version of Xcelsius I'm limited to 2 web service connections so I tried using XML Data connection and aspx page to bring data from database to Xcelsius.I have an ASPX page that outputs an xml file with the format

<data><variable name=""><row><column></column>...</row></variable>...</data>

In Xcelsius I made a XML Data connection having the XML URL pointing to the .aspx page that should output an xml. Then I have the Enable Load checked and I have selected the proper # of cells and rows . If I try preview I get

"An error has occurred. For more information, contact the file creator or yoursystem administrator. Error: Error #2032 Connection Type: XML Data".

I have the crossdomain.xml file on both the application folder and IIS wwwroot folder that looks like this:

<?xml version="1.0" ?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain- policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" secure="false" />

[code].....

If I put in the XML URL in Xcelsius, the url to the xml file directly without using .aspx to write it to the output of the page it works. The xml is in the same application folder as .aspx page.My scope is to use the .aspx page to write query on the database and output back an xml with the table in the correct xml format so I can then consume the data in Xcelsius.

View 2 Replies

Flash :: Streaming Large Files (streaming Media Server)

Jul 2, 2009

We are streaming a one hour F4V from streaming media server 3.5.2 and for some reason it is seeing our one hour video as being 10 hours long. We have tons of other videos and never ran into this problem in any of the other files. This is the only file that exceeds one hour. This occurs in the default player from the streaming server.

View 1 Replies

Flash :: Flex - Using Media Gateway Application - Status Is Not Getting Update Like: "Connection Failed" Or "Connection Success"

Dec 17, 2010

I got a IP Communications new account having following paramters:

[Code]...

Its showing me connecting ... Status is not getting update like: "Connection Failed" or "Connection Success". how to use the above information in this app,

View 1 Replies

Java :: Flex To Failed Connection, Scrapbook Successful Connection?

Sep 13, 2011

Im trying to make connection from flex to java and from java to mysql. I managed to connect to java, but having error that class not found: com.mysql.jdbc.Driver. But i downloaded mysql.jar, included it added to library, and connection works when i testing it from clipse scrapbook. Dont know what to do, i spend last couple days on this.

Class.forName("com.mysql.jdbc.Driver");
String username = "username";
String password = "password";

[code]....

Basically the solution was simple. Everybody keeps saying to put jar into lib folder, so i done it, but i wasnt realised that i have to put into my servers lib directory, not app lib directory and this miserable mistake cost so much. Anyway i hope this will help for some newbie like me.In this particular situation im using red5, so i putted it into my red5 dist/lib directory and "surprisingly" its started to work.

View 1 Replies

Media Server :: End A Connection - Use To Add A Function That Kills The Connection?

Mar 16, 2010

we have a two way webcam + mic connection set up using FMIS. we use to add a function that kills the connection?

View 2 Replies

Flex :: Streaming - Access Raw Outgoing NetStream Data In AIR?

Jun 29, 2011

I have a Flex/AIR desktop application that connects a local camera and microphone to a NetStream for delivery to a Flash media server.However, I would also like to archive a copy of the outgoing stream locally on the filesystem. Is there any access to the actual bytestream of a NetStream object (even in the dreaded mx.internal namespace) that I could turn around and feed to a FileStream for the local archive?

View 1 Replies

Flex :: Error : Unable To Contact The RDS Server "data Services On Tomcat (localhost) Connection Refused: Connect

Dec 5, 2011

I'm making a program in flash builder 4.5 using WebOrb 4 (which is fantastic, I might add). When I go to deploy, however, it gives me this error:

>There was an error during model deployment for xxxxProgram.
>
>The server returned the following message:
>
>Unable to contact the RDS Server "Data Services on Tomcat (localhost)."
>
>Connection refused: connect
>
>Do you want to continue launching your Flex application?

I've poked around online for a solution, but for the most part I either don't understand them (forum grammar can be somewhat obtuse) or the answer in the post doesn't apply.

View 1 Replies







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