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


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

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.0 :: Communicate With Server Through Binary Socket To The Server Through IP Address?

Oct 10, 2009

I am working on the web base flash application I am trying to communicate with server through binary socket to the server through IP Address and Port using Action script 3.0 at the server side we are using java. I will like to send binary data string to the server in a clubbed single packet. I dont know the Action Script 3.0 as much.for this We will have to communicate through IP and Port only

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

Get Logo To Appear Next To The Address When Website Address Is Typed In

Jul 14, 2009

how to get your logo to appear next to the address of your web site when your website address is typed in,
for example if you look at the website address at the top of the screen you see (logo) [URL]

View 1 Replies

ActionScript 1/2 :: Check If Email Address Is A Legitimate Email Address?

Nov 20, 2009

How do I check if email address is a legitimate email address? Is there any possibility in that?

View 7 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

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

Actionscript 3.0 :: Connecting With A C++ Backend?

Jan 28, 2010

I am curious to know if there is a way of connecting a flash front-end to a C++ driven backend? I'm not currently working on a project that involves this, but I found out about an application used in the gaming industry, called Scaleform, that requires knowledge on doing such things in order to create menus in games.

View 2 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

Flex :: Connecting To Mysql Using Php

Mar 8, 2011

I wanted to use flex line chart for displaying data stored in mysql table. Can anyone suggest me on how do I do this with flex as UI and mysql as db, I am not sure how to call .php file in flex to query from mysql. I wanted to show some data of time v/s temperature.I wrote a php file to query data from mysql, but my flex program is not able to connect to mysql, is there any configuration I need to update. I am using XAMPP

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

Asp.net :: Connecting Flex And Weborb?

Nov 3, 2011

I have

[Bindable]
private var model:AlgorithmModel = new AlgorithmModel();
private var serviceProxy:Algorithm = new Algorithm( model );

[Code]....

And when i call serviceProxy.Solve_Send(request); with request is array and i want use model.Solve_SendResult in my code flex to draw many cubes use papervison3d but in the first time i received model.Solve_SendResult = null . But when I click again then everything OK.

View 1 Replies

ActionScript 2.0 :: Fla Not Connecting To Database

Sep 5, 2007

[code]...

I got the script to work perfectly, even got to register a few hundred members to the site. However, my old host had a bandwidth limit of 400gb so I had to move to a new provider. I transferred all the files with no problems, and even setup the database properly. My new problem is registering... I can login just fine using an existing account I had made. But I go to try and make a new account and I get an "undefined" error.[code]...

View 1 Replies

ActionScript 3.0 :: Draggable MCs With Lines Connecting Them?

Feb 5, 2009

I want to create a movie that allows boxes to be dragged around, and for lines to be connecting each box, wherever they are dragged. I have made the boxes draggable with the attached code.

what I mean, here is an example FLA: boxes.fla

I have no idea where to start on this, because searching for things like AS3 draggable movie clip with lines attaching, etc isn't very helpful.

View 6 Replies

Actionscript :: Connecting 3 Symbol Instances In CS4?

Jul 24, 2009

I am trying to create a group from 3 movie clip symbol instances on the stage. The three movieclip symbols are; node1, node2 & link.
 
here is what i was trying without success...// Trying to create a Nodegroup movieclip by attaching "circle nodes" to a "link" to each end
 
var linklist = null;
linklist[1] = this.attachMovie(link, 100);
linklist[1].node1 = link.node1;
linklist[1].node2 = link.node2;
 
but get the compile errors...
 
TypeError: Error #1006: attachMovie is not a function.
at test_fla::MainTimeline/frame1()

The Actionscript is a separate timeline layer called "actions".

View 3 Replies

Media Server :: Connecting To FMS From Flex?

Jul 14, 2010

I'm trying to connect to an FMS server with a Flex application. I can throw the rtmp URL straight in as the source for a VideoPlayer and it will work, but can't figure out how to get it to work with a NetStream. The pure Flash Video element works as in the FMS Flash demos, but is extremely laggy and lacks all the nice functionality of the built VideoPlayer. Is there any documentation on working with FMS with Flex? We're at a point where we need to decide quickly if FMS will do what we need to do or if we should purse other technologies.

View 4 Replies

Display A Message To Client Connecting?

Sep 1, 2010

I am fairly new to FMS and really am trying to learn about it. My question is simple I hope;

I would like a message to pop up to a client when they connect that the max users has been reached. I have it set for 5 users and so I would like when the 6th user tries to connect to watch the video, a little box will pop up and say "Sorry, Max users has been reached. Please try again in a few minutes."

I was able to develop something and get it output through trace commands by following a tutorial I saw online, but I could never get any sort of message box I built to pop up.

View 9 Replies

AS3 :: Media Server - Error When Connecting To FMS

Jul 29, 2011

I'm trying to stream my webcam to my FMS Server, using AS3, but I get this error message:

[Code]...

View 2 Replies

Professional :: Connecting A Kiosk To Server

Jan 3, 2012

i am self-taught and i have pretty good as3 and mxml skills and have worked with Flash Pro and Flex, but only for my own stuff at home. i have only done local AIR stuff that don't require sending and getting data from a server now someone has asked if i could build him a kiosks/server system, and i want to dive into that the kiosks would be deployed in stores and have touchscreens displaying pictures, movies, banners and accept user control and data.i plan to build his remote controlling software in Flex and the kiosk AIR apps in Flex or Flash pro.the kiosks should periodically connect to the server to see if updates are available  and download swf, jpeg and movie (mp4? flv?) files to the local filesystem (no live streaming is needed)also, user created data (forms only) should be sent to the server - i guess xml.[code]can all this be in as3 alone or do i need stuff like php also?also, would i be able in the controlling flex app to determine if specific kiosks are offline?

View 1 Replies

ActionScript 3.0 :: Connecting 3 SWF Files Via Loader Possible?

Mar 1, 2012

I have 3 separate swf files which I would like to connect together via an swf loader. I've created an as3 loader before however it had buttons at the bottom of the page and just loaded the swfs at the top of the page. However this time I want a main page to load automatically in the loader and then when a button in that swf is clicked I want it to show another swf in the loader and then on click of the exit button in that swf it goes back to the original swf. Is this possible?

View 11 Replies

ActionScript 3.0 :: Connecting 2 SWF Files With A Button?

May 28, 2010

I am using AS3 and flash CS4. I want to link two SWF files with a button but I don't know how to do it. I have a file named A.swf which has a button named photoBttn. When people click on the button I want them to see the second SWF file named B.swf. I have built a web site made of 10 SWF files, there are buttons that connect all the files and now everything is done and ready to go online but I don't know how to connect the files using a button.

View 9 Replies

ActionScript 3.0 :: Connecting To A SQLite Database?

Aug 30, 2010

I'm developing a desktop application in Flash, but I can't seem to find any tutorials that aren't based on FLEX to connect my application to a database file.

Do I have to write my application in FLEX to use SQLite or can I create an AIR app in Flash and still use it?

View 0 Replies

ActionScript 3.0 :: Connecting Classes To A Symbol?

Jul 18, 2011

how to create a class and connect it to a symbol. I've been following a few [URL] videos to help me link a couple of classes to my Movieclip, but I'm still doing something wrong. I tried linking the Main.as in Properties of the Movieclip (assuming this is correct) and got an error Access if undefined property scrol. I tried linking SwipeEngine.as and got a whole bunch of complier errors, so that must not be it. Any partial success I do get, the swf just cycles through like it is ignoring the stops.

Could someone take a look at my fla and show me how to link the classes?

The goal is for all three sections (link1_Content_mc, link2_Content_mc, and link3_Content_mc to use the scroll functionality in the .as files. The .as files should be fine;

View 9 Replies







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