ActionScript 3.0 :: Feasibilty Of Using PHP > XML > Instant Messaging Program?

Aug 17, 2010

I'm developing a game which will feature a 'light' instant messaging system; 'light' in the sense that I want all logged-in players to receive a "new message!" notification if another player sends him/her a message. It doesn't have to be 'instant' like with a chat service, so I'm thinking about having the game check for 'new messages' every 20 seconds.Now, I'd prefer to use what I already know, which is using AS3 to call PHP pages, querying a database and receive a response in the form of XML which can be used in AS3.

So, my question is this: How feasible / stupid would it be to such a 'light' IM feature using this method: I call "checkForWaitingMessages.php" from my Flash game every 20th second, passing along the player's login id. The PHP page checks if there are any 'waiting messages' in my database under that player id, then returns all 'waiting messages' in XML form, which I use Actionscript to display to the player. This happens every 20 seconds.My main concerns are: - How much of a strain does it put on a nomal hosting service that I request an XML document every 20th second? - What if there are 100 players logged in, making it 100 requests every 20th second? What about a 1000? Is this all in the realm of trivialities, or will this become to cumbersome to realistically implement?

View 2 Replies


Similar Posts:


ActionScript 1/2 :: Instant Effects In OnEnterFrame?

Apr 23, 2009

I normally use onEnterFrame = function(){} when I want the program to check every frame for things like coordinates, collision detection, if I pushed  button, or clicked the mouse on a specific location.

Normally when I want to make a switch, I use a boolean statement, such as
if(conditionA == 0){effect;} or  if(conditionA == 1){effect;}
if(conditionB == true){effect;} or  if(conditionB == false){effect;}

[code]......

View 1 Replies

ActionScript 2.0 :: Making A Class And Creating An Instant Out Of It?

Oct 13, 2005

i was making a class and creating an instant out of it see how it works.Here's my human class (human.as)[code].....

View 1 Replies

ActionScript 2.0 :: Making A Flash Instant Message Application?

Feb 3, 2004

where i can get a simple tutorial for making a flash instant message application?

View 1 Replies

ActionScript 3.0 :: Add An Exit Button Onto Program So When Its Clicked It Exits The Program Completely

Nov 4, 2008

Im trying to add an exit button onto my program so when its clicked it exits the program completely.. I've tried some of the suggestions on the forums but they arnt working. what I have been using and its not working..

// CLICK to Exit
exit_Btn.addEventListener("mouseUp", goExit);
function goExit(evt:MouseEvent) {
fscommand("quit");
};

View 9 Replies

ActionScript 2.0 :: Start An Unrelated Program (such As Window's Media Player) From Inside Of A Flash Program?

Sep 29, 2010

Is there a way to start an unrelated program (such as Window's media player) from inside of a flash program?

View 2 Replies

Flex :: Client / Server Messaging (RPC Or Socket)

Apr 9, 2010

I'm building a Flex application, which is going to perform many server requests (let's say, that almost all interactions require an update from server). At the moment I'm using remote procedure calls for it. But I was wondering if using a socket would be better. In other terms, is maybe better to keep the connection alive rather then performing many calls in sequence? For my demo app I only have 1 client. Is the number of clients connecting to the server a factor for this choice?

View 1 Replies

Remoting / Messaging And Data Management In Flex?

Jun 8, 2009

Can anyone explain me the difference of all and also an another question does Zend AMF support all these.

View 1 Replies

Flex :: Remoting , Messaging And Data Management?

Jan 17, 2005

the difference of all and also an another question does Zend AMF support all these.

View 2 Replies

ActionScript 2.0 :: Program A Timer For A Typing Tutorial Program?

Mar 24, 2003

I need to program a timer for a typing tutorial program. It needs to go to 5 minutes. When the timer gets to 5 minutes the movie has to go to frame 13 which displays the results of the typing test.

View 1 Replies

ActionScript 3 - Using Real Time Messaging Protocol In Flash

Jan 27, 2010

Flash can use the RTMP protocol to exchange data between a server and a client. How do you typically access this functionality in AS2 or AS3/Flex? For example to use sockets you use the XMLSocket (AS2) or Socket (AS3) classes. Does the server-side RTMP software use Sockets under the covers? or is it HTTP with tunneling?

The Real-Time Messaging Protocol (RTMP) was designed for high-performance transmission of audio, video, and data between Adobe Flash and a server. RTMP is now available as an open specification to create products and technology that enable delivery of video, audio, and data in the open AMF, SWF, FLV, and F4V formats compatible with Adobe Flash Player.

View 1 Replies

Flex :: Messaging - Using HTTPService To Send Http POST To Webhook

Oct 19, 2010

I've used the Flex HTTPService to connect to a backend blazeDS service without any problems at all. The question I have is, can I also use HTTPService to send a HTTP POST message to a server (with basic authentication)?

Specifically I'd like to be able to interface Flex with Notifo [URL] and to interface with it you just need to send a http POST with authentication and some key:value strings for the message content. (I've done it from java and from the command line with curl and it all seemed pretty easy to set but I'm just not sure how to go about trying this with Flex).

How would this be done via the HTTPService (if at all) ?

Can anyone see how the mxml/as class would look like and what would be in the services-config file and what adapters need to be used etc etc ??

View 1 Replies

Java :: Spring/Flex/BlazeDS Messaging Service-adapter Not Called?

Nov 5, 2009

I have attached a service-adapter to a spring message-destination as follows:

<flex:message-destination
id="secured-chat"
send-security-constraint="trusted"

[code]....

View 2 Replies

Flex :: Messaging - Selective Server Data Push Using Spring Blazeds

Mar 1, 2011

I have a flex UI which communicates with server using spring blazeds. I have a very typical requirement of Live data streaming on a panel in UI. Requirement is like this, We have an object say, Person and server keeps pushing its data on blazeds message destination where UI panel consumer has subscribed and hence user can see this live data in a panel. User can open multiple panels in same browser to view data for different Persons at the same time (e.g id=1,2,3 respectively). There can be multiple UI users who may be viewing the same data for person id=1 at a given time, lets say.

Basically I want to separate data between UI panels. UI panel opened for person id=1 must not display data of that for person id=2. I am doing this using headers-selectors, but apparently I found out that the differentiation to select and display what data happens on UI which is causing performance issues. I learned that using subtopics may improve performance. But, before proceeding for it, I want to know, will UI browser end up in receiving data irrespective of subtopic assigned to data and then consumer will decide to accept it or not?

View 1 Replies

Media Server :: Any Flash Server For Instant Messages Only?

Jun 2, 2009

I am looking for a instant messages server only, no media....is there any server..

View 1 Replies

Flex :: TypeError: Error #1034: Type Coercion Failed: Cannot Convert Object@1456c7b9 To Mx.messaging.messages.IMessage

Nov 21, 2010

Im trying to connect a Flash client to BlazeDS. There has been some success with this from others using the vanilla BlazeDS setup. However I'm using the new Spring BlazeDS Integration from springsource and running aground. The flash client actually seems to be working in that I can see the correct data in the body of the returned object, but for some reason unknown it fails casting as an IMessage. It fails in PollingChannel.as on this line with the subject line error

var messageList:Array = msg.body as Array;
for each (var message:IMessage in messageList) <--

On application load I register a whole bunch of classes like so

registerClassAlias( "flex.messaging.messages.RemotingMessage", RemotingMessage );
registerClassAlias("mx.messaging.messages.IMessage", IMessage);
etc..

my code is basically

var channelSet:mx.messaging.ChannelSet = new mx.messaging.ChannelSet();
var channel:mx.messaging.channels.AMFChannel = new AMFChannel("my-amf", "http://localhost:8400/SpringA/messagebroker/amf");
channelSet.addChannel(channel);

[code]....

I have a flex client which works 100% with same destination/channel.

View 2 Replies

Actionscript :: Connection From Program To The Server Using XAMPP Server And Program In Flex?

Oct 26, 2010

i have the following code ]

[Code]...

but no connection established what is the reason behind not know help required and one more thing XAMPP is installed in D: drive.

View 1 Replies

Flex - Loading Of External SWF Results In A "Could Not Find Resource Bundle Messaging" Error

Mar 18, 2010

I'm using flash.display.Loader to load this example SWF as a use-case for loading SWFs that uses flex charting components in an application I'm working on.

[Code]...

View 1 Replies

Java :: Flex Error Flex.messaging.io.amf.ASObject Cannot Be Cast To

Sep 13, 2010

I have an action script Object that contains an array collection of other object, both objects are reflects of the Java Objects which are the database tables represented as beans, i am using blazeds spring hibernate... the regular configurations for flex RIA with java backend server language, all other objects work perfectly, but this time i needed to get this data from the client side and i do, but when i get into the Set represented as array collection in client side i get this error! both classes work for other situations, mapping is ok for these classes, i suspect that i need to convert the array collection on the server side.

View 1 Replies

Flash8 : Run A Flash Program From Another Flash Program?

Jan 29, 2010

I have created a flash program and I would like to run a second flash program from inside the first. To explain, say I am running a program that draws a circle and fills it with a color. Then, I have designed a second program that will divide a circle into sectors by entering percentages, to turn that circle into a pie chart. Is there a way to be running the "draw a circle" program and have a button that opens the "divide the circle into sectors" program in a new window and then passes information from that program to the first program. I am sure I will have to send the information from the second program to an XML file and then have the first program recieve it from the XML file (which I can do), but I don't know if I can run the second program from inside the first program.

View 1 Replies

ActionScript 3.0 :: Use A Web Program?

Dec 7, 2009

I am trying to make a tutorial on how to use a web program. I have some screens from the website and I need to animate some text and arrows to show up on Q once the voice over mentions them. I have set marker tracks on my MP3 files, to which I want certain action to happen when the player reaches each track.

View 5 Replies

C++ :: Program Interacting With Web

Jan 4, 2012

How or what do I need to know programming wise in order to interact with the web using c++. For instance i want to wrote a program that automatically sends invites to players on yahoo chess. How would i go about doing this?

View 2 Replies

ActionScript 3.0 :: Unable To Run The Program?

Aug 14, 2009

I have just moved to cs3 (AS3). I am unable to make some programs run. For example I have downloaded the photo viewer from actionscript.org V2/Page1.html but when I run this program, it shows just blank screen nothing else. Even SWF file is showing the same. And it shows the error, "A definition for the document class could not be found in the classpath, so one will be automatically generated in the swf file upon export." While classpath is the same as of .FLA file.

View 3 Replies

ActionScript 3.0 :: Zoom In Everything In Program?

Jun 21, 2009

i managed to zoom in 1 of my image instance when i click on it , and it can also be drag around.This image symbol will have a mask and action script is added in the symbol . However there are still other instances in my program which i do not know how to zoom . Is there any way to zoom in everything in my program?

View 1 Replies

Professional :: Exported Avi From 3D Program?

May 5, 2010

I have a small animation I need in a flv format.Here's what I did...

exported avi from 3D program

converted to flv and imported into flash CS4

embed into timeline, added a logo

I published it, but I need a .flv, not a .swf.

View 2 Replies

Flex :: Run Program With A Package?

Dec 2, 2010

If i run the program i get some errors.If we include a class in a package how should the program be run?[code]...

View 2 Replies

Java :: Developing GUI For Program?

Mar 19, 2011

I have developed a java program as a part of my homework and have to build "really good" GUI for it as is the demand.I would like to know if I can develop a flash based gui and then run my java code behind it since I have learnt flash before ??Since I have some time constraint I don't think I would be able to implement full dragabble features using swing and java applets.

View 1 Replies

ActionScript 2.0 :: Open .exe Or Any Program From Swf

Apr 4, 2005

how to open .exe file or run programm (pdf reader or ms word) from .swf file.

View 6 Replies

ActionScript 2.0 :: Put The Server Program On The Web?

May 27, 2005

I've been working on a silly little flash chat program, and was just wondering, how would I put the server program on the web?I mean, it has to be running to accept connections, and I don't have my own web server, just 10MB from my isp.The server uses crappy old java, so could i put it in an applet, and then when a user logs on, it runs.....But each time a user logs on, wouldn't that create a new server instance? Would I actually have to have access to the web server machine to run a chat server?

View 7 Replies

ActionScript 2.0 :: Convert A C++ Program?

Aug 12, 2006

Convert a C++ program?

View 14 Replies







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