How To Deploy An XML Socket
Hi All,
I'm trying to deploy a flash + xml socket connection on a network but am stuck on how to do it ..i.e... how to deploy the java file and all.
Can anyone brief me on this ...step by step ..please
Regards,
Bala K J
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 08-14-2006, 01:48 PM
View Complete Forum Thread with Replies
Sponsored Links:
Deploy Application With Flv Files
Hi to All,
I'm quite new in Flash Media Server. I installed the media server on my PC this morning and I'm going around to try to make it works with some flv files. The server is working and also the fms2 console. Now I'm trying to deploy an application to stream some flv files but the result are not good ;-(. below I post the steps that I did but for sure I'm missing something, it doesn't work :-)
-create a directory named "first_application" in "C:ProgrammiMacromediaFlash Media Server 2applications"
-create a subdirectory in "first_application" named "streams"
-put my flv file in the subdirectory "streams", test.flv
-now I have my flv file in "C:ProgrammiMacromediaFlash Media Server 2applicationsfirst_applicationstreams"
-open the fms2 console and go in the "view application"
-create a new instance for the "first_application" named "_definst_"
now I think that I should have my flv file in the list of the streams available for the "first_application", but it isn't: Why?
I hope my english is clear enough and that someone can help me ....
thanks a lot to all in advance
View Replies !
View Related
Standalone Deploy Issue
Hi there
I wanted to ask if somebody knows, how can make my download flashfile.exe (made in standalone) to be deployed from the internet to a local computer, in a professional way. I mean like extract it, add it to start menu, add a shortcut to desktop and more????
Cheers
KGtrip
View Replies !
View Related
Deploy An Asp.Net + Flash Remoting Application
Hi!
I've developed web application with Asp .Net and Flash 8 with Flash Remoting. In my computer the connection works ok, but when i install the web in another server the connection between asp.net and Flash does not works. I have to make something more besides add the key:
"<httpModules><add name="GatewayController" Type="FlashGateway.Controller.GatewayController,flashgateway" /></httpModules>"
And copy the flashgateway.dll into the bin directory of the web?
Thanks
Edited: 02/23/2007 at 02:36:57 PM by JonathanXm
View Replies !
View Related
Network Deploy Flash Player 7?
I have created a new Intranet site for my company that is ready to go live except for one problem. On the site there are some flash buttons that I would really like to use. The problem is that most users on our network do not have flash player installed on their computers. Also most users have restricted rights on their workstations and they can't install programs such as the flash player. I have downloaded the stand alone .exe and .msi flash player 7 setup files. Is there a way that I can deploy the flash player with a group policy or login script? The Macromedia site doesn't tell me much about this topic. I don't want to use any third party software like script logic to get the job done. Any ideas would be great. Thanks.
View Replies !
View Related
XML Socket Not Connecting To IRC Socket
I'm running an IRCd and I want to use XML Sockets to connect to the server.
So far I have this piece of code:
Code:
server= "127.0.0.1";
port= 6665;
function connect() {
trace("Trying to connect to server...");
sock = new XMLSocket();
sock.connect(server, Number(port));
sock.onData = function (strData) {
trace("Data has arrived");
}
sock.onConnect = function (bSucc) {
if (bSucc) {
trace("Connected");
} else {
trace("Connection Failed");
}
sock.send("NICK MrKibblewhite
USER ApRoXiTy "kibble" "127.0.0.1" :ApRoXiTy
");
}
sock.onClose = function () {
trace("Socket Closed");
}
}
I have a button on the scene which calls the function connect, and that's about it. Here's the trace output:
Code:
Trying to connect to server...
Connected
Also I have a logger which logs the raw data sent to and from the irc server, here it is:
Code:
(Client)
NICK MrKibblewhite
USER ApRoXiTy "kibble" "127.0.0.1" :ApRoXiTy
(Server)
:irc.host.com NOTICE AUTH :*** Looking up your hostname...
:irc.host.com NOTICE AUTH :*** Checking ident...
(Server)
:irc.host.com NOTICE AUTH :*** Couldn't resolve your hostname; using your IP address instead
:irc.host.com NOTICE AUTH :*** No ident response; username prefixed with ~
:irc.host.com NOTICE MrKibblewhite :*** If you are having problems connecting due to ping timeouts, please type /quote pong C00EF524 or /raw pong C00EF524 now.
PING :C00EF524
As you can see the (server) is sending data back to the client.... now why does'nt # sock.onData = function (strData) # work ?? Shouldn't it output # Data has arrived # everytime a new line is returned from the IRC server !!? As you can see there are 6 lines returned from the server... shouldn't that mean I will have six line of Data Has Arrived appear in my output ? I'm really stuck and I do not understand why this XMLSocket.onData will not work .... !!
Please help !!
Thanks in advance.
kibbles...
View Replies !
View Related
XML Socket
Ok now I need help. I want to make a game and transfer data via XML socket. I read a little stuff and parts are confusing. I just need help if any of you can help tell me plz!
Thanx!!
View Replies !
View Related
XML Socket Help
this is the code I wrote. I kept getting both connected and failed. Where did I went wrong???
Code:
socket = new XMLSocket();
socket.onConnect = checkConnection;
if (!socket.connect("127.0.0.1", "55555")){
trace("connection failed");
}else{
trace("connected");
}
function checkConnection(success){
if(success){
trace("successful");
}
else{
trace("failed");
}
}
View Replies !
View Related
XML Socket
hi,
I have downloaded a flash program from http://www.michael-thomas.com/flash/Flash5Socket/ that uses XML Socket to send and recieve data.
However this program does not work on the machintosh operating system. It says "Maybe trying to connect across hosts". In short it does not connect to the socket.
Can anybody please help !
View Replies !
View Related
XML Socket
Is it possible for Flash (well, the socket) to receive data that is not ended with a null character? The language I'm using as the server puts a carriage return at the end of every outputted string, so I'd like to know if this completely prevents me from using this language to communicate with the Flash client?
View Replies !
View Related
XML Socket
Can computers communicate with each other by using XML Socket?
How can a computer act as a host?
(Please give a site about this if anyone having it)
Moreover, I have a problem about XML.
How to delete a extra attribute in a XML Node?
Please help
View Replies !
View Related
XML Socket
i intend to send 3 data in one time through XML socket to Java, the 3 data i dun wan to join them.
for example, i wan to send IP add, id, and amount..how to write the action script??
View Replies !
View Related
Socket Help
Hi guys i'm hoping someone here can help me or at least point me in the right direction. Basically i'm trying to create a flash irc client using binary sockets. When i test my project within the flash ide, I can connect to the irc server i want, however when i publish it as a swf i get nothing at all.
I created a crossdomain.xml security policy file in the hope that at the very least i can reach the server, but still i get nothing. I would rather do the whole project in AS3 rather than using an intermediate server-side script.
I have set the security policy file to allow only the irc server i want to connect to plus the ports it uses.
If anyone out there has any suggestions or advice I would be very greatful.
View Replies !
View Related
New Socket()
prolly a dumb question....
... can i send stuff with new Socket() from a swf to an AIR Application on the server???
then get the swf to read data from the AIR Apllication on the server.
i want to do a project that communicates with the server all in as3... but i've never used the socket thing and don't have a clue what i'm doing.
smartfox is out of my reach... and i don't want to write it in java if AS3 is an option
View Replies !
View Related
Socket And SSL
If you have a flash application which is hosted on an https server A and inside flash you use Socket to connect to another external server B. Will the connection still be encrypted when sending via Sockets?
View Replies !
View Related
SSl Via Socket
Hello all,
I'm developing a flash client which replaces a C++ GUI communicating with server through SSL Socket.
I was hoping that Flash CS3 will enable me to use something equivalent, yet I found no solution, so I though it's the right place to ask if Adobe will release a class to support SSL ?
Thanks in advance,
me.
View Replies !
View Related
FTP Socket?
Hi all,
I spent the weekend working on an FTP Socket based on AS3's cool new Binary Sockets and was wondering if anyone else has done anything similar?
It was prompted from gotoAndLearns binary socket tutorial http://www.gotoandlearn.com/player.php?id=69 he was using a binary socket to connect to a POP3 mail server, so I decided to get a binary socket connecting to an FTP server.
I can connect, even pass my username and password and log in, but it doesn't seem to return the active connection response?
Has anyone on kirupa built or seen tutorial on creating a basic ftp program using the basic protocols? I'm actually at work and I could post my current FTPSocket class on this post tonight if anyone things that would help to look over?
View Replies !
View Related
Socket.send
Howdi
Here is, I think, the problem...
I'm connection to a socket that only takes hex code. I try sending 0xf6 (request) and nothing comes back. The I though socket.send could be send ASCII code instead of the hex. Is this the case. If so, how do I get around it?
Thanks
Christopher
View Replies !
View Related
XML Socket Capabilities
I have to write an app that listens in on an xmlsocket for 1-4 events a second with close to 400,000 events per day.
Each event represents a city in the world. Every event detection will trigger a blip on a global map.
Is flash capable of handling something like this?
ren
View Replies !
View Related
Xml Socket Problem
hey guys,
i hate socket problem... my socket works when i do a test movie or when i run the swf from my local machine... now i also have apache running and if i run it from localhost it wouldn't work...
example...
C:Program FilesApache GroupApache2htdocsaimindex.html - work
http://localhost/aim/transparentLayer.swf - break
i dont understand whats the difference.. can i only run a socket locally?
thanx in advance
justin
View Replies !
View Related
Xml Socket & Web Server
Hi.
I am trying to publish a flash page in IIS to the local network on the same subnet and then use the xml socket function to connect to a winsock server on the same machine as IIS resides, on that machine i can do this by using 'localhost' but i cant seem to connect from the remote machine. This is some of the code I am using: -
serverip = "192.168.0.2";
serverskt = 10101;
sock = new XMLSocket();
sock.onConnect = onSockConnect;
sock.onXML = myOnXML;
sock.connect(serverip, serverskt);
I have tried various ways of doin this, like:-
serverip = "http://flashserver/";
serverip = "http://192.168.0.2/";
But none of these work, as anyone any suggestions?
Thanks
Mark
View Replies !
View Related
Socket Connection ?
Hello, I need to create a network connection between two networked pcs, preferably with a constant data stream connection - it has to be fast enough to send/recieve constantly updated keystrokes using flash.
weve had a look around and seen the xml socket but it doesnt appear to be fast enough. Any ideas infomation or alternatives are appreiciated. thanks
Skipp
View Replies !
View Related
Php Socket Connection
greetings to all!
I'm writing in need of help here:
I'm trying to build a chat application in flash, having a php socket listening on a port on my server.
Question is, how do I make an swf file that will connect to the socket?
thank you in advance,
View Replies !
View Related
Secure Socket
Does anyone know if Flash can be plugged into a SecureSocket to encrypt data to a server. i know that an XML socket can be used but i'm not sure if that is secure.
View Replies !
View Related
XML Socket Not Responding
I created a chat application that resides on one domain and connects to a socket server on different domain. Client is residing on www.foo.com and connects to www.bar.com:1234 through socket. There is a http server on www.bar.com:80 that sends crossdomain.xml.
When attempting to connect client requests crossdomain.xml on www.bar.com:80 .Correctly configured xml file is sent to client that alowes connection to www.bar.com:1234. I know that, because if I replace crossdomain.xml with an incorrect one, nothing happens. So, flash player establishes connection with www.bar.com:1234, but then everything stops. It works fine when i run .swf file in a standalone player (it sends a login request to a socket server), but in html it just reports that connection is established (socket connection is alive also on socket server), but it doesnt do anything after that.
Any ideas?
View Replies !
View Related
Eventdispatcher With Xml Socket
Hi, I have developed this class which is basically a wrapper of the xmlsocket class. I had to develop this for some developers who need not to be worried about the xmlscoket in detail and are supposed to use just the send and receive data through my methods which in turn use the xmlsocket class "send" and "ondata" methods.
PHP Code:
class CIS {
var mySocket:XMLSocket;
public function CIS(ipA:String, portA:Number) {
var ip:String;
var port:Number;
mySocket = new XMLSocket();
ip = ipA;
port = portA;
mySocket.connect(ip, port);
mySocket.onConnect = function(success) {
if (success) {
trace("Connected to "+ip);
} else {
trace("Cannot connect to "+ip);
}
};
}
public function sockOnClose():Void {
mySocket.onClose = function() {
trace("Connection closed");
};
}
public function sockClose():Void {
trace("Closing connection..................");
mySocket.close();
trace("Closing Closed");
}
// Data to Send
public function sendData(aData:String):Void {
trace(aData);
mySocket.send(aData+"
");
}
// Data to receive
public function recData():String {
var someStr:String;
mySocket.onData = function(msg) {
trace(msg+"
");
someStr = msg+"
";
_level0.ecData=someStr;
};
return someStr;
}
}
I use this class in a fla like this
PHP Code:
var mySocket:CIS = new CIS("localhost", PORT);
var vRecData;
vRecData =mySocket.recData();
this.onEnterFrame = function() {
vRecData = mySocket.recData();
};
mySocket.sockOnClose();
my problems is that I am not able to invoke my custom method "recData" when the system invoked event onData takes place.
send, close , connect happen sweetly, but I cant detect the onData method being invoked in my class.
I tried use onEnterFrame where I constantly keep calling the recData function and when the onData is invoked I get appropriate response. But I dont want to use enterframe coz its a waste consuming so much of memory for a task liek this. I want something like this to work
PHP Code:
var mySocket:CIS = new CIS("localhost", PORT);
mySocket.sendData();// Works nice as I send the data with user interaction
vRecData = mySocket.recData();// HELP, I want the variable vRecData to take up the newly arrived value from the onData method.
mySocket.sockOnClose();// works fine.
Hope I am clear in my explanation.
Thx
View Replies !
View Related
Socket Server .NET
Ive been trying to get sockets working in flash and have been having lots of problems connecting to the socket server.
Ive used a couple in C#.NET and VB.NET using AcceptTcpClient() and a Bind Listen way.
In flash when I call socket.connect it returns true but it never calls onConnect. The server gets the connection but then just says it disconnected.
Any ideas?
View Replies !
View Related
XML Socket Question
Have a socket connection from flash to patServer on local machine.......when a response is sent it displays ok only in the tt textfield....the msgArea will not sho anything if I clear the field before displaying the new text......why this be so huh ???????
Code:
mySocket.onData = function(msg)
{
trace("MSG: " + msg)
msgArea.text = "..."+msg;
tt.text += "..."+msg;
}
View Replies !
View Related
XML Socket Servers
Anyone have any advise on a good reliable socket server?
I want to build chat rooms, and eventually multiplayer games.
Electro Tank seems like the standard but it so expensive. Has anyone any feedback?
View Replies !
View Related
PHP + XML Socket Server
Hey everyone,
I'm looking for either a tutorial or a completely done server. Here's what I have so far: I have over 100 different "worlds" on my website that each need to have a subdirectory of chat rooms.
IE:
Quote:
PHP DEVELOPMENT (category)
--->Socket Servers(room)
--->MySQL Integration(room)
--->Random Talk(room)
AJAX DEVELOPMENT(category)
--->Nifty XML(room)
--->Not detergent(room)
TK DEVELOPMENT(category)
--->What you can do to help(room)
--->TK is an endangered species(room)
--->Save the TK Fund(room)
--->That guy is weird(room)
--->Open Discussion or something like that(room)
The categories are predefined by a database I've got. Users need to be able to create a chat room in a category, and I need to be able to list all rooms out in a category so users can chat in rooms relevant to their subject. The engine needs to interpret the messages and send the messages to the right chat rooms and categories. I'm assuming that I'll be needing to print out XML so that flash can interpret it or the like. Each user will be carrying a variable that determines what category they are browsing so when they come to my chat 'page' they'll see all the open chats running in their current subject as well as all the categories so they can change to a different category if need be.
I also need certain functionality. Users need to be able to whisper to one another, and there will be a host (chat-starter) for each room. The host will have the ability to boot members that are being stupid and the ability to transfer host control to another leader.
This system needs to kick major butt: stable and powerful. I'll be running it on a pretty powerful server (2 Clovertowns ) so my application server should be able to handle this. I'm looking at having upwards of 2000 chats running at the same time. Sounds ambitious, but I'm a worst-case-scenario kind of guy.
I've run through multiple tutorials (esp. the one on Kirupa.com) and this is the code I've come up with. It works but it has absolutely no user-login or tracking. It works fine on my localhost server, if I pull up two flash windows, it communicates just fine. Here is my php and chat codes, I don't think I need to attach the .bat file:
PHP CODE:
Code:
#!/usr/bin/php -q
<?php
//#!/usr/bin/php -q = SUPRESSES HTTP HEADERS AND DEFINES THIS AS A SOCKET
error_reporting(E_ALL);
set_time_limit(0);
ob_implicit_flush();
$address = '127.0.0.1';
$port = 9999;
//---- Function to Send out Messages to Everyone Connected ----------------------------------------
function send_Message($allclient, $socket, $buf) {
foreach($allclient as $client) {
$buf.substr_replace("tk","/me",0);
socket_write($client, "$socket wrote: ".$buf);
}
}
//---- Start Socket creation for PHP 5 Socket Server -------------------------------------
if (($master = socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) < 0) {
echo "socket_create() failed, reason: " . socket_strerror($master) . "
";
}
socket_set_option($master, SOL_SOCKET, SO_REUSEADDR, 1);
if (($ret = socket_bind($master, $address, $port)) < 0) {
echo "socket_bind() failed, reason: " . socket_strerror($ret) . "
";
}
if (($ret = socket_listen($master, 5)) < 0) {
echo "socket_listen() failed, reason: " . socket_strerror($ret) . "
";
}
$read_sockets = array($master);
//---- Create Persistent Loop to continuously handle incoming socket messages ---------------------
while (true) {
$changed_sockets = $read_sockets;
$num_changed_sockets = socket_select($changed_sockets, $write = NULL, $except = NULL, NULL);
foreach($changed_sockets as $socket) {
if ($socket == $master) {
if (($client = socket_accept($master)) < 0) {
echo "socket_accept() failed: reason: " . socket_strerror($msgsock) . "
";
continue;
} else {
array_push($read_sockets, $client);
}
} else {
$bytes = socket_recv($socket, $buffer, 2048, 0);
if ($bytes == 0) {
$index = array_search($socket, $read_sockets);
unset($read_sockets[$index]);
socket_close($socket);
}else{
$allclients = $read_sockets;
array_shift($allclients);
send_Message($allclients, $socket, $buffer);
}
}
}
}
?>
*Note, I haven't run through this code and learned all of it yet. I'll get to that ASAP.
AS3 Code:
Code:
//REQUIRES TWO TEXTFIELDS ON THE STAGE, 'inputMsg' and 'msgArea', AND A BUTTON 'pushMsg'
package {
import flash.display.Sprite;
import flash.events.DataEvent;
import flash.events.Event;
import flash.events.IEventDispatcher;
import flash.events.IOErrorEvent;
import flash.events.MouseEvent;
import flash.events.ProgressEvent;
import flash.events.SecurityErrorEvent;
import flash.net.XMLSocket;
import flash.text.TextField;
import flash.xml.XMLDocument;
public class SocketTest extends Sprite
{
private var XMLS:XMLSocket;
private var TextF:TextField;
public function SocketTest()
{
XMLS = new XMLSocket();
ConfigureListeners(XMLS);
XMLS.connect("localhost", 9999);
pushMsg.addEventListener(MouseEvent.CLICK, pushMessage);
msgArea.htmlText = "Flash is trying to connect...";
}
private function ConfigureListeners(dispatcher:IEventDispatcher):void {
dispatcher.addEventListener(Event.CONNECT, SOCK_Connect);
dispatcher.addEventListener(Event.CLOSE, SOCK_Close);
dispatcher.addEventListener(DataEvent.DATA, SOCK_Data);
dispatcher.addEventListener(IOErrorEvent.IO_ERROR, SOCK_IOError);
dispatcher.addEventListener(ProgressEvent.PROGRESS, SOCK_Progress);
dispatcher.addEventListener(SecurityErrorEvent.SECURITY_ERROR, SOCK_SError);
}
private function pushMessage(e:MouseEvent):void {
if(inputMsg.text != "") {
var xml:XMLDocument = new XMLDocument();
XMLS.send(obj.message);
inputMsg.htmlText = "";
}
}
private function SOCK_Connect(e:Event):void {
msgArea.appendText("
FLASH HAS SUCCESSFULLY CONNECTED TO THE SERVER");
}
private function SOCK_Close(e:Event):void {
msgArea.appendText("
THE SERVER CONNECTION HAS BEEN LOST");
}
private function SOCK_Data(e:DataEvent):void {
msgArea.htmlText += e.data;
}
private function SOCK_IOError(e:IOErrorEvent):void {
trace("IO Error Event");
msgArea.appendText("<b>FLASH HAS ENCOUNTERED AN ERROR</b>");
}
private function SOCK_Progress(e:ProgressEvent):void {
}
private function SOCK_SError(e:SecurityErrorEvent):void {
trace("Security Error");
msgArea.appendText("<b>FLASH HAS ENCOUNTERED A SECURITY ERROR.</b>");
}
}
}
Now I don't know what the best thing to do would be... either have one centralized server that rocks the world or have a server for every category ( I don't want to rebuild a server 100+ times... please don't make me do that...). However, I'm pretty sure that xml and php would be the best way to go for me. And yes, I HAVE looked into Unity and Parsley, though I'm still a bit unclear on how to use Parsley.
So basically what I need is a solution to all of this. Has anyone developed a chat system that accommodates all of this and is easily modifyable by a Flash and PHP Developer? I've looked into so many different engines, from FlashChat to FlashPioneer. They all suck and are made for Joe Average user who wants a nifty application on his site. Does anyone know of any tutorials or solutions to what I'm talking about? I'm pretty good in PHP and I have no problem with AS3 and Flash at all.
What should I do? I'm limited on time and I need to get this sucker running ASAP. Anyone?
- TK
View Replies !
View Related
Socket Communication
For socket communication, I better use an external script instead of adding the script to the 1st frame in the movie??
since otherwise, if the movie keep looping, I will try to open many many socket then?
from what version of flash support external script? (.as)
import ftk.net.BufferedSocket;
BufferedSocketExample();
function BufferedSocketExample() {
trace('start...');
var socket:BufferedSocket = new BufferedSocket('127.0.0.1', 12345);
socket.onConnect = function() {
trace('connected');
};
socket.onFailure = function() {
trace('failure');
};
socket.onTimeout = function() {
trace('timeout');
};
socket.onClose = function() {
trace('close');
};
socket.onData = function(d) {
trace('data: '+d);
};
socket.connect();
for (var i:Number = 0; i<10; i++) {
socket.send('msg-'+i);
}//~ socket.close();
}
View Replies !
View Related
Help:Socket Problem
Hello all
I try to make live chat in flash but I can not connect to the server
do need any server setting ??
this is the code
Code:
var mySocket:XMLSocket = new XMLSocket();
connect_btn.onRelease = function() {
mySocket.connect( 64.71.229.126,8888));
}
send_btn.onRelease = function() {
var sendTxt:String = textToSend_txt.text;
var screenName:String = screenName_txt.text;
var xmlStr:String = "<comm from='" + screenName + "' msg='" + sendTxt + "' />";
mySocket.send(new XML(xmlStr));
}
mySocket.onXML = function(inXML:XML) {
received_txt.text += inXML.firstChild.attributes.from + ": " + inXML.firstChild.attributes.msg + chr(13);
}
mySocket.onConnect = function(success:Boolean) {
if (success) {
received_txt.text += "Connection Successful!" + chr(13);
mySocket.send(new XML("<comm from='" + screenName_txt.text + "' msg='has joined the Chat Room!' />"));
} else {
received_txt.text += "Connection Failed!" + chr(13);
}
}
any help please??
View Replies !
View Related
XML Socket. Getting Vars In And Out. Help
Ok I have messed with this all day and I need help!
I currently have a socket server simply echoing everything back to me.
First, I make the xml I want to send over an xml socket and then send it.
Code:
var users_xml:XML = new XML();
users_xml.parseXML('<user><name value="Jojo" /><cats value="3" /><city value="Tyler" /></user>');
mySocket.send(users_xml);
Is this correct?
Data is returned and I can see it all if I trace the input var.
Here is what I am using to get the data back:
Code:
XMLSocket.prototype.onData = function(msg) {
trace(msg); //This shows me all my data
var xml:XML = new XML();
xml=this.onXML(new XML(msg));
trace(xml); // this says its undefined
trace("Length: "+msg.firstChild.childNodes.length);
for (var i = 0; i<xml.firstChild.childNodes.length; i++) {
var thisNode:XMLNode = xml.firstChild.childNodes[i];
trace("node "+i+" ("+thisNode.nodeName+"):"+thisNode.attributes.value);
}
};
Can anyone please tell me how to receive my data? That is, how to get my data parsed out into vars so I can use them?
View Replies !
View Related
Socket To Transfer AMF?
Hey,
I don't really know anything about binary sockets, but I was wondering if the AS3 Socket class could be used to transfer native AS data between clients? Obviously, unless the server could read AMF, it wouldn't be able to do anything with the data other than broadcast it back out to connected clients, but that's all I really want.
Possible?
View Replies !
View Related
Socket Connection
Hi,
I want to connect swf file running in www.xxx.com via socket to www.xxx.com:25
My crossdomain.xml looks like:
<?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="www.xxx.com/*" to-ports="25" />
</cross-domain-policy>
But when i do remote debug i see this error:
Se ha detenido la conexión con www.vescovoweb.com:25 - no se permite desde http://www.xxx.com/ct.swf
securityErrorHandler: [SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2048: Violación de la seguridad Sandbox: http://www.xxx.com/ct.swf no puede cargar datos desde www.xxx.com:25."]
Anyone can help me?
View Replies !
View Related
Socket Question.
Hi.
I would like to ask question about working with Sockets from CS3.
If create standard socket
ActionScript Code:
socket = new Socket();
How can I connect through this socket to the web server from what I see flash movie.
I mean If I upload my flash movie to some web server and then I open this movie using web browser.
If I type
ActionScript Code:
socket.connect('localhost', 80);
I connect to my computer.
View Replies !
View Related
Socket Problem..
ok so like.. here's my actionscript 3.0 code:
ActionScript Code:
var sock:Socket = new Socket("24.188.191.35",8997);
var EI = ExternalInterface;
sock.addEventListener(Event.CLOSE, errz);
sock.addEventListener(Event.CONNECT, sss);
sock.addEventListener(IOErrorEvent.IO_ERROR, errz);
sock.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errz);
sock.addEventListener(ProgressEvent.SOCKET_DATA, sockread);
function errz(e:*):void {
EI.call("alert",e.type);
}
function sockread(e:Event):void {
EI.call("alert",sock.readUTF());
}
function ss(e:Event):void {
EI.call("alert",e.type);
}
function sss(e:Event):void {
EI.call("alert","CONNECTED");
}
now on my end (YES that is my IP) I have a php script which handles connections, and it does aknowledge that the connection establishes.. but when the php script sends data to the flash application.. it alerts (since I have the handlers) securtyError.. now, I made a crossdomain.xml file.. and everything, included my IP in the allowed thingy lol. Here:
HTML Code:
<?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="lovinglori.com" />
<allow-access-from domain="ws.lovinglori.com" />
<allow-access-from domain="worldswitcher.lovinglori.com" />
<allow-access-from domain="www.lovinglori.com" />
<allow-access-from domain="myspacechickz.com" />
<allow-access-from domain="www.myspacechickz.com" />
<allow-access-from domain="24.188.191.35" />
</cross-domain-policy>
now, with that said, I don't know where else to try.. It works server side, client side gets the security error.. any help is greatly appreciated..
View Replies !
View Related
Socket Problem
hello every one this my first post at your forum and also my first flash project,
i am working on multiplayer game that is supposed to work on a server,
after i finished the game it seems i caould not make the multiplayer part work, but i am not sure where is the problem i suspict that a socket may be the problem, but the thing that bothers me most is that i can access the multiplayer from my machin but no one else can from anther machins.
note : i have tested multiplayer part locally several times and i worked.
please can u help me
thanks alot
View Replies !
View Related
XML Socket Server
I need a XML socket server program (just like the title says) for serving dynamic information to Flash clients. The program must be able to sustain a load of over 500 (1000 or above prefered) continous connections. The flash application is a online multiplayer RPG. The program must be free as my group is a non profit organization.
Thanks for your time
View Replies !
View Related
Socket Connection
Is it possible to make a regular socket connection with flash communication server. My php scripts have to be able to connect to flash communication server through a socket connection, or the other way arround.
Is it possible to make a netconnection from FCS to a http server and retreive data from it?
Or do I really need Flash remoting server to fix this?
Another question: does FCS has an interval timer?
Sincerely,
Eelco van de Wiel
View Replies !
View Related
|