Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-24-2001, 03:58 PM   #1
Registered User
Join Date: Jun 2001
Location: singapore
Posts: 7

Hi everyone,

i have just started making flash applications that interact with server daemons. i have a JAVA server running on port 9000 on my computer. However XMLSocket.connect("localhost",9000) or XMLSocket.connect("",9000) return a "false" value.

i read the flash help file and i believe i have entered the parameters to the connect method in accordance with the restrictions specifed in the help file.

can someone please help.

sanjubawa is offline   Reply With Quote
Old 07-03-2001, 12:13 AM   #2
Registered User
Join Date: Jul 2001
Posts: 7
Default Uhh...

So what exactly is the code you're using to connect?? I don't want to assume that you've created a new XMLSocket object....
VAYKENT is offline   Reply With Quote
Old 07-03-2001, 01:18 AM   #3
Registered User
Join Date: Jun 2001
Location: singapore
Posts: 7

i have used the following code for the Flash application and i am trying to connect to my java server app using the flash movie directly (not through a web server).

ColdSock.onConnect = myOnConnect;
ColdSock.onXML = myOnXML;
ColdSock.onClose = myOnClose;

//Bogus addie included free of charge!
ColdSock.connect("", 6758);

--------------------function myOnConnect (success) {
if (success) {
connected = true;
} else {
connected = false;

function myOnXML (xobj) {

function myOnClose () {
trace ("Oh ****! Connection closed!");
connected = false;

hope this clarifies my problem.
sanjubawa is offline   Reply With Quote
Old 07-04-2001, 01:14 AM   #4
ActionScript.org Founder
Jesse's Avatar
Join Date: Nov 2000
Location: New York
Posts: 8,736


Jesse Stratford
ActionScript.org Cofounder

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firewalls, real-time apps, http tunneling, and port 80 you_rock Server-Side Scripting 2 07-02-2009 02:00 AM
XMLSocket: connect to http server on port 80? laangen_lu Server-Side Scripting 0 01-04-2005 03:12 PM
Security policy file problem - code works in one swf but not another - port problem? elfranko Server-Side Scripting 0 09-23-2004 02:26 PM
Bar Code Readers, PDQs and Flash and ColdFusion niklas ActionScript 1.0 (and below) 5 04-09-2003 05:32 PM

All times are GMT. The time now is 11:17 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.