Sandcode
08-21-2011, 07:34 PM
Hello all
I am still learning a lot and I was looking for a good source to explain me my options for managing my communications with the server from actionscript.
I don't know much java or php or any other language then mostly actionscript3.0 .
Up to now I have been able to have direct access to MySQL db using simple php request but what if I want to notify all other clients connected of an action I made ? That process is still very obsucre to me and I was hopping to clarify this in my mind.
I have been trying to explore the avenues of amfphp 1.9 but I can't get my services to work properly (as easy as it seems in the tutorials I've tried, I'm having an error and I'm trying to figure this out with amfphp site forums) and have tried smartfox server and have runned it ok (with their exemples) but I can't get their red5 server working properly and so I can't use their redbox, not that it matters to me at the moment because I am still learning and so I don't even know what I am missing exactly :)
I would just like to know if the means I'm using right now are the right avenue for what I want to do.
I have made a little actionscript 3.0 app that will load my db (using a php request and returning an XML to my flash client) and present to us the list of items in my DB.
I simply don't know how to notify any other client connected when I modify an item by betting on it for exemple. The only way I can think of is with a refresh but this is not intuitive to the user nor is it practical (well, in my newbi opinion) because the client would either have to click a refresh button or have a timer ask for refresh on interval wich would certainly overload useless traffic.
Or is there another way ? I don't know java but I heard a bit about ajax. Is ajax the solution I am looking for ? Smart Fox seem to emphasis on the fact that it is a game server and an MMO server and I'm wondering if I'm not going for something just way to big for my little need.
Thank you in advance for any suggestion or opinion.
Have a good day =]
I am still learning a lot and I was looking for a good source to explain me my options for managing my communications with the server from actionscript.
I don't know much java or php or any other language then mostly actionscript3.0 .
Up to now I have been able to have direct access to MySQL db using simple php request but what if I want to notify all other clients connected of an action I made ? That process is still very obsucre to me and I was hopping to clarify this in my mind.
I have been trying to explore the avenues of amfphp 1.9 but I can't get my services to work properly (as easy as it seems in the tutorials I've tried, I'm having an error and I'm trying to figure this out with amfphp site forums) and have tried smartfox server and have runned it ok (with their exemples) but I can't get their red5 server working properly and so I can't use their redbox, not that it matters to me at the moment because I am still learning and so I don't even know what I am missing exactly :)
I would just like to know if the means I'm using right now are the right avenue for what I want to do.
I have made a little actionscript 3.0 app that will load my db (using a php request and returning an XML to my flash client) and present to us the list of items in my DB.
I simply don't know how to notify any other client connected when I modify an item by betting on it for exemple. The only way I can think of is with a refresh but this is not intuitive to the user nor is it practical (well, in my newbi opinion) because the client would either have to click a refresh button or have a timer ask for refresh on interval wich would certainly overload useless traffic.
Or is there another way ? I don't know java but I heard a bit about ajax. Is ajax the solution I am looking for ? Smart Fox seem to emphasis on the fact that it is a game server and an MMO server and I'm wondering if I'm not going for something just way to big for my little need.
Thank you in advance for any suggestion or opinion.
Have a good day =]