ActionScript 3.0 :: Communication With A Server - Upload Game To The Web
Nov 17, 2010
i've recently created a demo of a flash game(AS3) for a client, in which the user hears a word and has to spell it correctly. the client wants the game uploaed to the web, where it will have to communicate with the server. the client's web developers outlined their desired flow for the process: users will go through a log in screen (html page), and fill in their username and password. after signing in, their details will be added to the url in which the flash movie is loaded.
flash has to be able to read the url and identifiy the user through it. additionally, flash has to recieve an xml with the current words the user will be played. finally, flash has to send the user's score back to the server. i've been developing flash bit by bit for about a year now, but this will be my first web project.
View 1 Replies
Similar Posts:
Jul 6, 2011
We're currently working on a small scale indie card game for Facebook, which we hope will reach hundreds of thousands of players (eventually). We have most of the issues figured out (scalability, server-side architecture, etc) - however one question - communication between client & server.
We have the following requirements:
Server side push messages (no client message request) High scalability (should support at first hundreds and later hopefully thousands of CCUs) Secure, reliable layer Work well with most computers, routers & browsers Works with Adobe Flash/AS3
First thing that came to mind was socket connections, but I was wondering, is there a better solution that answers our needs?
View 2 Replies
Jun 8, 2010
I can't find free version FCS distrib for Linux
View 3 Replies
Jul 22, 2010
the chat client application is created using adobe AIR, the application should be able to do communication sims like Google Talk and AIM does. If it is impossible is there any other solution to do that?
View 2 Replies
Nov 16, 2010
I'm currently developing a Flex game which is a kind of table and cards game. Thinking about developing other games using entities from this one, I chose for creating my entities decoupled from the game and even from other game entities. As a result, I'm currently using events for communication between my game entities.
Game entities, in my case, refers for example a player hand component which can receive a card, or send a card to another unknown component by a custom requesting and dealing events. For instance, the same can happens to a deck of cards holder component. This approach appeared to be a good designer in the beginning, but after some time, my game controller class has a lot of event handler functions which started looking bad for me.
My current idea is to create a game event manager coupled with my game controller for handling events and cleaning the controllers code. Finally, I'm not sure about my design decision exposed above, so I would like to know about you folks which communication design would be indicated for this kind of a game.
View 1 Replies
Nov 8, 2011
I am using a PHP upload to upload files to server. I have a loop for the 5 files to upload....
ActionScript Code:
if (PDFFiles[i] != false){
PDFFiles[i].upload(uploadPHP);
}
As the loop runs quicker than PHP can upload, the success of....
ActionScript Code:
function fileUploaded(e:DataEvent):void {
trace "Success"}
....can get out of synch. It doesn't cause me any real problems but is this bad form? Or am I better to upload one file the wait for the PHP to return success before uploading the next one?
View 6 Replies
Nov 27, 2010
I'm working on a flash MMO with a c# server. I have a simple messaging protocol for the sockets. When a client joins he sends out this:
[Code]...
View 2 Replies
Jul 15, 2010
i have used the following code to upload file which works in php4 server but dont work inphp 5 server.The flash code is as follows:
import flash.net.FileReference;
import gs.TransformManager;
//Allow this domain[code]....
i am uploading the php file.
View 1 Replies
Mar 11, 2010
I now have a Windows PC and I purchase Adobe Flash Media Server 3.5 software and install.I but server space on a managed server arrangement.I upload my pre recorded Flash clips to the server and my website and playlist to my host. Basically the website is channelled via http and the clips via RTMP. The key question that no one inside Adobe seems to be able to grasp (or answer) is ~ will it work if I stream my own clips?! or is it inferior to say that of a professional streaming company.The streaming companies charge anything from $125 to $250 a month, a big cost for someone like me, streaming around 1000mb a month. So does anyone out there have direct knowledge of this software and can you stream via rented server space without using a streaming company?
View 1 Replies
Dec 17, 2010
Can i record audio without using a communication server in flash?
View 1 Replies
Jun 1, 2011
For example, Flash records voice and sends it to the server where Java or C# apps can proccess it and return back some data (or write it to db). How this communication possible, which protocols sould be used and etc.
View 2 Replies
Apr 15, 2010
connect to online web service to retrieve data using as2. while I am able to connect and send data successfully, I don't see the response. This is what I am trying to do:
[Code]...
View 0 Replies
Jul 19, 2011
Need to find a way for Flash to talk to an ASP.NET server-side script and save some product information directly from Flash into a customer shopping cart...but, how are people handling this communication between Flash and the server-side C#? I want my Flash .swf to browse products and add them to the cart from within' Flash securely. Currently people can browse / Sort the products, but how are people passing information to the Flash movie securely? How are people handling information like session variables? What are people using to use Flash as their only interface tool for logging in, or accessing their account information through a Flash interface?
View 6 Replies
Oct 1, 2010
I have 12 display monitors installed in different floors in a building. These monitors display announcements that will be update once in a day. I'm retrieving these announcements from db and storing in an array and displaying it all day long. In addition to this, I have a requirement to display emergency alert messages on the monitors. My Server is a windows 2000 server. I'm using asp for creating the JSON object.
For the emergency alert I am thinking of doing this:
Create a page in asp that lets user to enter emergency msg and save to db.
Create a page in asp that will check if there an emergency msg in db and show it in a asp page in json.
Create a timer that pings this json page every 1 second. If it's available then show it.
Is there any other sophisticated method available to poll the server or to send messages from server to client?
View 1 Replies
Aug 19, 2011
We want to build the web-based softphone using SIP technology And we want to use the Asterisk as the Communication server and Java as primary technology in building the system so we have got following flash based softphone using Adobe Flash,FMG,FMS flex based softphone using Flex , Red5 Server we are also reseraching into MjSIP and PjSIP
[Code]....
View 2 Replies
Sep 24, 2011
I only started coding Actionscript about two weeks ago and I really need help on this, I am seriously considering just coding an if statement for each value if I can't figure this out. Sorry if my code is terrible formatted, I am self taught using Adobe Help.This is what I need help on.I have a program installed on a game server (CoD4) that outputs the server information including player(s) info and would like to be able to make it so that there is a flash document on the website displaying the information for each player. I wanted the program to build the information automatically and so far I have been able to make it work but the formatting of the output is terrible.To make things simple, the only real information I need from each player is their name and guid. Hopefully each player's info is on a new line.This is the xml document the server is outputting:HTML Code:[URL]
Code:
import flash.net.URLRequest;
import flash.net.URLLoader;
import flash.events.*;
[code]....
View 4 Replies
Mar 8, 2012
I have a website which is a html file which loads a swf. This swf is an image gallery controlled by an xml file. If I update the xml file and upload it onto my server, will the swf automatically update. Or will I need to open the fla, compile a new swf with the updated xml, and also upload the new swf to my server?
View 1 Replies
Oct 24, 2008
I'm using Dreamweaver CS3. I'm new to Flash and It seems that every time I take 3 steps forward I have to take one back. I've inserted the .swf into the html page, where it resides inside a cell within a table. It plays there, and in Preview In Browser.I've uploaded the .html page to the server but the movie (and all the code relating to it) will not go along with the rest of the page contents. There is no trace of any movie coding anywhere on that .html page on the server.I have three other Flash movies on this site, all on different .html pages. All the elements of all the Flash movies are in their own folders, all of which reside in one single Flash folder. The other three movies play successfully on the server.
And on my computer, in Dreamweaver Code View, the correct path to the .swf file is present.But, only for that one movie, none of the Flash movie code will upload to the server. I'd like to supply a web address, but this forum does not allow the inclusion of URLs. To bad, it would certainly clarify the problem.
View 5 Replies
Aug 1, 2011
my baner is considered unsafe because of fileHandler.upload function which uploads selected image to server. Is there any other function I can use to replace fileHandler.upload ?
View 1 Replies
Aug 18, 2009
How to upload an image to the server using php code in actionscript 2.0?
View 2 Replies
Apr 16, 2010
I am unable to uploade the file "expressInstall.swf" generated by Flash CS4 AS2.0. DreamWeaver displays the following error message:
"Scripts:expressInstall.swf - error occurred - An FTP error occurred - cannot put expressInstall.swf. Access denied. The file may not exist, or there could be a permission problem."
View 1 Replies
Sep 30, 2010
I am working on a mac but my question is what files do I need to export out of CS5 to include in my upload besides the index SWF and index html? Do I have to export each individual page? Each individual photo? each individual button, ect? Or is there a main folder I can export and up load to my server. Also for all the photos I have put into the project, do I need to upload them as a seperate folder, if so, is there a specific name I should label it so it registers?
View 1 Replies
Mar 30, 2011
Am developing an app on which a user can record from their webcam or upload videos to the fms. Is it possible to upload video to fms using php or flash?
View 2 Replies
Apr 27, 2011
I need to upload a csv file from local directory to tomcat server using actionscript and Flex as frontend. The uploaded file should be queried which i have done in java using csv database driver.
View 3 Replies
Nov 2, 2011
Is it possible to upload files to a server, with flash only? I'm looking for a SWF file that's able to do this task.is it possible to upload a file with flash alone (no PHP or ASP)in case this is possible: is there a simple SWF-file to do this task which I could use?
View 1 Replies
Jan 13, 2012
I have bitmapData. I want to upload it to a server using URLLoader. I tried many ways, but with no result.This is my current code in ActionScript 3:
import flash.net.URLLoader;
import flash.net.URLRequest;
import mx.graphics.codec.JPEGEncoder;
[code].....
View 3 Replies
Jan 25, 2009
how exactly would i go about to upload an image to my server with AS3 and php and have the filename always be different so it doesn't overwrite another uploaded image.
View 1 Replies
Apr 21, 2010
I am trying to upload a pdf file to a server but I am not having any results. Here is my actionscript code:
ActionScript Code:
var fileTypesV:Array = new Array();
var pdfTypes:Object = new Object ();
pdfTypes.description = "pdf (*.pdf)";
[Code]....
View 6 Replies
Sep 17, 2005
I am having a bit of problem uploading bitmapdata which i have taken with my webcam onto my php server..the code i have so far:
public function browse(event:MouseEvent) {
var header:URLRequestHeader=new URLRequestHeader("Content-type","application/octet-stream");
var jpgURLRequest:URLRequest=new URLRequest("url");
[code]....
Im getting this error:
ArgumentError: Error #2127: FileReference POST data cannot be type ByteArray.
at flash.net::FileReference/upload()
at Source/browse()
View 1 Replies
Aug 9, 2006
I need to have a photo upload option on a form i am creating in flash. I would like to do this with PHP and Flash 8.I am creating a form, where people can enter information, then include a photo which needs to be saved in a folder specified by a entry on the form.
View 3 Replies