Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 17th, 2011, 03:36 PM
GeoffTK GeoffTK is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2011
Posts: 18 GeoffTK User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 29 m 26 sec
Reputation Power: 0
Flash Remoting - Apache Server w/ XMLSocket Problem

Ok, I need some help here.
I have a perl socket on my apache server that correctly takes input from sockets and sends it back out to every socket connected to the perl socket. I have tested the perl socket, and it works correctly.
When I launch the Flash in the IDE, as a flash program, it functions correctly with the perl socket.
However, when I try to launch the Flash in a Browser on my apache server, it tells me it is unable to connect to the server.
However, I am seeing from feedback from my perl socket, the flash connects for about a half of a second, and thats it.

What could be the problem, do I have to include code in the flash to allow XMLSockets to connect in a browser as well?
Is there certain things I need to do with my apache server to make it work?

Also if I 'Preview as HTML' from Adobe Flash CS4, it does not connect.

Thanks Guys.

Reply With Quote
  #2  
Old August 17th, 2011, 05:02 PM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 6,663 Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)  Folding Points: 14767 Folding Title: Novice Folder
Time spent in forums: 1 Month 1 Week 3 Days 20 h 10 m
Reputation Power: 3163
Facebook MySpace
You might need to put a cross domain XML file on the server if it is a different domain than the Flash file. There's a ton of links on that via this search.
__________________
Quis custodiet ipsos custodes?

Reply With Quote
  #3  
Old August 17th, 2011, 05:06 PM
GeoffTK GeoffTK is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2011
Posts: 18 GeoffTK User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 29 m 26 sec
Reputation Power: 0
My Flash File is on the same server as the perl socket, so I am assuming this is not the issue.

Reply With Quote
  #4  
Old August 17th, 2011, 10:51 PM
GeoffTK GeoffTK is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2011
Posts: 18 GeoffTK User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 29 m 26 sec
Reputation Power: 0
Figured out the issue.

First when the XMLSocket tryies to connect, it sends <flash policy file /> and before you send anything back to it, or try to read from it you need to send a cross-domain-policy.

Code:
"<?xml version=\"1.0\"?><cross-domain-policy><allow-access-from domain=\"*\" to-ports=\"*\" /></cross-domain-policy>\0"


I was trying to read input instead of just sending it as soon as someone connected.

Thanks guys

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Flash Remoting - Apache Server w/ XMLSocket Problem

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap