ActionScript 3.0 :: Socket Not Connecting Outside Of Flash?

Sep 12, 2009

I was just doing some testing using PHP sockets and Flash. I used several things, one thing is this tutorial:I have the server running, and when I run the swf via Flash it connects fine. But when I run it from the browser it can't connect.. Because that Tutorial is in AS2, I also wrote a quick client to connect with AS3, but I'm having the exact same problem.. it only connects if I run it through flash.Here's an example of the basic code:

Code:
var s:Socket = new Socket('my IP', 5445);
s.addEventListener(ProgressEvent.SOCKET_DATA, getData);

[code].....

View 11 Replies


Similar Posts:


Flash Not Connecting Via Open-socket

Jan 1, 2010

I have moved on now to where this is clearly a Flash security thing.I have a flash client that attempts to connect to an open socket on the same host as the one on which it lives.I am able to connect successfully from inside the Flash IDE, and when I run the swf movie locally on my machine, after granting it security clearance in the white list it connects as well. However, when I call the movie via the browser (URL...) it fails to connect.The socket reports that a connection attempt is made but immediately disconnects.I have a crossdomain policy file that looks like this: in the root directory of the host.[code]In the flash movie I have a line that looks like this: System. security. loadPolicyFile (URL...);And I'm thinking maybe that's where the problem is, but the documentation on how to use this method is not entirely clear. I'm in Flash CS3

View 1 Replies

ActionScript 2.0 :: Xml Socket Connecting To Ip Address?

Mar 16, 2007

Here's my code, shortened a lot:

Code:
var mySocket:XMLSocket = new XMLSocket();
mySocket.connect("<my ip address here>", 9999);
mySocket.onConnect = function(success) {

[Code]....

Alright, well this code works fine and dandy when I run the flash from my computer. But when I upload it on the internet it stops working.

View 1 Replies

Actionscript 3.0 :: Connecting To A Ftp Server With Binary Socket?

Dec 30, 2008

I'm trying to make a little ftp upload app - not a full FTP client, just something to enable image upload with decent performance. I basically took the approach Lee used in his POP3 socket tutorial. The problem I'm having is that I can connect to the FTP server and I can authenticate and log in but as soon as I try to enter passive mode for data transfer I get nothing- not even an error. From looking at the FTP RFCs, FTP requires two TCP connections - a command connection and a data connection - does this mean that I need to open a second socket for the data transfer? Another possible issue is the Flash Player security policy not allowing conection to ports under 1024 - I have not placed a policy file or policy server on the host running the FTP server but as I can successfully login, I appear to be able to connect to port 21 (standard FTP port) anyway. The code I'm using is:

Code: Select allvar s:Socket = new Socket("ftp.actechnology.co.uk",21);
var ftp_response:String;
s.addEventListener(ProgressEvent.SOCKET_DATA, receiveReply);
s.addEventListener(IOErrorEvent.IO_ERROR, showError);

[Code].....

why passive mode kills it or has successfully connected to a FTP server with the socket class

View 10 Replies

Flex :: Security Sandbox Violation When Connecting To Socket?

May 12, 2010

I am using a Socket (not xmlSocket) connection between flex applications and the server pushing messages.Now, when I connect from the local machine to the server everything is working file and running, connection is succesful and I get data back and forth.When I upload the application (flex) to the server and run it from there, I get a security sandBox violation message.Note:1. I do have a crossdomain file with * wildcard both on port and on domain.2. I created a Securiy.allowDomain("*") as well.Another thing.I also created another listener on that same server, listening to connections for port 843 (default) and this service just waited for a connection send policy file to the client and that's it.

View 3 Replies

Java :: Connecting Android App (with Flex) To Server Using Socket?

Apr 2, 2012

I'm trying to create an app that multiple users would log into a server hosted over the local network. When testing the app in Flash Builder it connects, but when I run it on my phone it does not. I'm using XMLSocket like so:

[Code]....

View 1 Replies

Actionscript 3 :: Socket.readInt() And C# Socket.Send() Different Values Of Int-variable?

Nov 19, 2011

When I send number (int)52 s.Send(BitConverter.GetBytes((int)872415232));, flash show me trace(socket.readInt()); 872415232 If i send 872415232, flash show 52.Why? And how it fix?

View 1 Replies

Javascript :: JavaScript Socket Vs Flash Socket?

Apr 30, 2010

Steve Jobs just posted this article on why Apple rejects Flash... [URL] I agree that javascript and css can be used to replicate some of Flash's animation, though Flash does all sorts of scaling and tweening that is incredibly powerful, and I'm not sure that there's anything comparable in javascript, if there is, I certainly haven't seen it.

However, my question is about the socket. Flash has an incredibly powerful openSocket class that allows you to connect to a server and have the server and the client talk back and forth to one another. As far as I know there is no equivalent class in Javascript. Am I mistaken? Is there some secret mystery Ajax class that replicates the openSocket? If not, then that feature alone makes Flash an invaluable tool.

View 1 Replies

Flash :: Interface Connecting To .NET, SQL??

Feb 19, 2007

I am an actionscript newbie but have been given the task of designing a navigation menu in flash that has to connect to a database - the menu items have to be marked - unread, mandatory etc. and have to pull back database information to display then be marked as read.

View 3 Replies

Flash Connecting To A WCF Service?

Oct 23, 2009

proper endpoint configuration for my WCF service to enable a Flash app to consume it.

View 1 Replies

Flash - Connecting To Kongregate Api?

Feb 6, 2010

When I connect to kongregate locally on debug mode it works fine. but when I upload the game to their servers, I get the following error.

TypeError: Error #1010: A term is undefined and has no properties.
at com.objects::Engine/GameMenu()
at Function/http://adobe.com/AS3/2006/builtin::apply()

Below is the code I use. and the class properties i set

// Kongregate API reference
private var kongregate:*;
public function Engine(sr:Stage):void

[code].....

View 1 Replies

Flash :: Error Connecting To URL

Jul 1, 2011

I am trying to connect to this service from my pc.[URL].. using the flex Webservice libs but I get this:

[Code]...

View 2 Replies

ActionScript 2.0 :: Flash MX - Connecting To Database

Apr 25, 2005

What is the best tool available in flash mx to connect to databases and do we have a tutorial for that.

View 1 Replies

ActionScript 3.0 :: Connecting To A Web Service Using Flash?

Sep 13, 2010

using kirupa's tutorial " Connecting to a Web Service using Flash" i have added Flash Builder's library into my flash project. I am using HTTPService class of Flex in my flash project. If I repeat this process in separate blank as3 file, its works perfectly fine. But when I only add the flex library in my working flash project, it stops working. No error, no warning. I am really confused. Where should i start troubleshooting? Just adding the library starts the problem, but when I add this in a new as3 flash file, it works fine. All settings are same in both files.

View 5 Replies

Flex :: Actionscript 3 - Flex Socket And Erlang Socket Communication

Jun 29, 2011

I'm creating a client-server game. My client is a flex based game, and my server is erlang server. At the beginning, when I test directly my flex client in flash player, I can establish a connection easily to my erlang server through socket connection. And both can exchange data with no problem. The problem rise when I deploy my flex app at Apache http server, and running it using a browser by calling [URL] my flex socket sends message requesting for a crossdomain policy to my erlang server. So I create an xml message that represent a crossdomain policy, and send it back to my flex app as a response for that request.

Yet still I can't establish any permanent socket connection between my flex client and my erlang server. I know this because I add listener on my flex socket that will modify its internal state to CONNECTED, if a connection between client-server has established.

View 2 Replies

Professional :: Connecting A Webpage With A Flash Movie?

Jun 2, 2010

I want to create a flash signature and I did it's just a normal text animation but I want to upload to my website and then create a webpage with a textbox Where a user writes his name in that text box and then the text in the swf movie gets replaced by his name I have seen it else where but I can't Recall

View 2 Replies

Professional :: Connecting Different Flash Slides Into Main One With MP3

Mar 2, 2012

I have downloaded a flash video from a website which was the combination of lots of flash slide and MP3. Now I want to join all those so that it look same as was displayed in website . [URL]. This is the link to the website and I got 15 flash slide from this on presentation and 10 mp3 files when I downloaded that .

View 8 Replies

Flash :: Client XMLSocket Not Connecting To Server

Jul 30, 2009

I have a Flash client that I want to connect to a server. Both are using localhost and port 50000 so there shouldn't be any cross-domain problems. I also set Access Network Only in the publishing settings. When I call the XMLSocket connect, the server seems to get a new connection. But, the XMLSocket.onConnect callback is not called with success=true.[code]...

View 2 Replies

Flash :: Adobe Flex And Air Connecting To A Network

Nov 26, 2009

What Approach can you use to Connect Adobe Air Application to a Local Network? Examples of function is send a message to other computer that is connected to a network, sending files or viewing their desktop.

View 1 Replies

Flex :: Connecting To Web Server Using Flash.net.NetConnection?

Nov 17, 2010

The ActionScript 3.0 Reference says the following about flash.net.NetConnection:

The NetConnection class creates a two-way connection between a client and a server. The client can be a Flash Player or AIR application. The server can be a web server, Flash Media Server, an application server running Flash Remoting, or the Adobe Stratus service. Call NetConnection.connect() to establish the connection.

Does this mean I make a regular HTTP connection to any web server using an NetConnection object? I am a little confused about this as further down the section on the connect() method says connect(): Creates a two-way connection to an application on Flash Media Server or to Flash Remoting, or creates a two-way network endpoint for RTMFP peer-to-peer group communication....Pass an "http" URL to connect to an application server running Flash Remoting.. So, the application server has to have Flash Remoting?

View 1 Replies

Iphone :: Connecting To The Internet With Flash IOS Development?

May 12, 2011

I was reading that certain API's are not available when making iPhone apps with flash, such as accessing the camera. Is it possible to still get information from the web and display it in the app using the flash method? The overall plan is to have it pull data from an SQL database using XML, and I was just wondering if that was possible still with flash.

View 1 Replies

ActionScript 3.0 :: Flash Connecting To SQL Database / ASP Page

Jan 21, 2011

What I am after is to be able to connect to a SQL database directly or via a ASP Page (whichever is easier) to pull out some variables and display them as text in a text field. Basically we have a news section on our intranet (stored in an sql) and I want to be able to pull these out and put them into flash. I have looked on the internet for examples, but everything that I do don't seem to work.

View 1 Replies

ActionScript 2.0 :: Flash Connecting To Database (SQL Server)?

Nov 30, 2005

This is what we have... a new Actionscript developer (Me) and a seasoned Visual Basic/ASP developer. We've also got some SQL Servers... We need to write a web application (Flash) that checks user authentication (User Name and Password) against a SQL Server database before allowing the user to continue through the program. After the user completes various components of the eLearning program, a brief quiz will follow. At the end of the whole eLearning program, a lengthy quiz will be given and those results will be scored and stored in a database.

I need to know what is required to do this... this being the database connectivity? I've been seeing PHP/MySQL tutorials but is there some way to hook up into ASP/SQL Server? Furthermore, how exactly does this work? I've read that with PHP, flash will write and store variables in PHP which is then used to get results from the database. I'm not exactly sure tho. If any one can point me to a great tutorial that explains everything about ASP/SQL Server..

View 5 Replies

ActionScript 3.0 :: Connecting To MySQL Database Using PHP In Flash

May 3, 2009

I am trying to connect to a MySQL database using PHP in Flash CS3 using Actionscript 3.I have written the PHP file and some AS3 code and it displays the information but for some reason it also displays the tags.[code]The picture below shows what happens when I test the movie.I also need to add buttons to move to the next and previous record and to add or edit the database via the Flash interface?

View 7 Replies

ActionScript 3.0 :: Connecting To HTTPS URL From Flash Application?

Jun 4, 2009

I have a standalone flash application which needs to access a https://.. url for authentication purpose. BUt I am not able to connect to the URL. What can be the reason?

View 1 Replies

ActionScript 3.0 :: Ways Of Connecting Flash To Facebook?

May 16, 2011

Just a curious question. Apart from Graph API, is there any other way of delivering data to facebook from flash(as3).

View 3 Replies

Flex :: Manually Connecting Flash Player (debug) To Flash Builder?

Sep 22, 2009

Is it at all possible to connect the Flash Player debug version to the debugger in Flex Builder using source code? I'm running an app which has no right click menu, and I therefore can't right click and select connect to debugger.

View 3 Replies

Data Integration :: Connecting To MSSql 2005 Using Flash?

May 22, 2008

Is there an easy way to connect to MS Sql 2005 using Flash 9?

View 1 Replies

Php :: Connecting Flash To PHPMyAdmin Database To DISPLAY Data?

Sep 9, 2010

I have a website in which the content on the index page is controlled by a PHPMyAdmin database. I want a a flash "movie" at the top, that can take the data from the site, and slide-show it until a user clicks on a specific link, in which the movie will direct itself to the clicked event.

The page is for a booking/promotion concert company. They want a "Featured Shows", "Calendar", and flash file that all are interconnected. One page. Does anyone know how to do this, where to find tutorials, or so on? Note, i'm not wanting to WRITE data to the database, I just want to GET data to post on the flash file.

View 3 Replies

Actionscript :: Connecting/Streaming To Flash Media Server From SWF?

Dec 1, 2010

I have access to a flash media server on a CDN.I want to allow people to easily connect to this server. Currenty, they need to an additional software to connect to the FMS.It would be nicer if they could just connect to the server with their browser.So I assume I need to create a SWF file and connect from this file to the FMS (with Actionscript).The end result would look like the demo of the jquery webcam plugin, only that the SWF file would establish a connection to the FMS and stream the video to the FMS

View 1 Replies







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