Actionscript 3 :: Socket Communication With Different Language?

Oct 27, 2011

when using Socket class to make connection with server, how actionscript transform data to server with different language implementation? The server may implement in .NET, ruby, or java, the following is the code example:

[Code]...

when I use java implements the server side, why and how actionscript "know" the way to communicate with java(what if using .NET implements the serverside), does it mean actionscript "clever enough to know the server side language?". what if write customer object to socket(and how), and server responds to actionscript. Could anyone explain the mechanism or recommend some material about these topic?

View 1 Replies


Similar Posts:


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

AS3 :: C# - Socket / Server MMO Communication

Nov 27, 2010

I'm working on a flash MMO with a c# server. I have a simple messaging protocol for the sockets. When a client joins he sends out this:

[Code]...

View 2 Replies

ActionScript 3.0 :: Socket Is Full-duplex Communication?

Dec 22, 2008

I wonder how can i flush the data to the server while somedata was downloading with a single socket instance

View 1 Replies

ActionScript 3.0 :: Flex Socket Communication With C# Produces

Jul 15, 2010

I use C# to read a string (BinaryReader.ReadString()) from the socket stream. But the problem is that flex doesn't writes the string in suitable format, so C# will be able to read that. C# reads a 7 bit encoded integer which indicates the length of the string, and just then reads the string. But flex doesn't writes a string in this format (I use socket.WriteUTF(), and even socket.WriteUTFBytes() didn't work), so C# can't read the string. Here's a little information of how C# reads/writes a string from a socket stream:
[URL]

View 1 Replies

Actionscript 3 :: Communication Between Flex And Java Socket?

May 19, 2011

I have a Flex AIR app, and i am trying to get data from a Java Server. Can some one tell me if this approach will work?

Start a ServerSocket in Java and wait for a connection. Use Flex to connect to the same port. Write some data to the socket from Java Server. Read the data at the Flex end and process it.

I think i am able to get this working, but the data that i read back at Flex end seems to be empty.

My server code is :

socket = new ServerSocket(port);
client = socket.accept();
InetAddress address = client.getInetAddress();

[Code].....

My current problem is socket.bytesAvailable becoming 0 and therefore obj is coming up as "". So how to read data sent from the server using a Socket in Flex?

View 1 Replies

ActionScript 3.0 :: Direct Communication Between Two Local Swfs ... Socket?

Mar 6, 2012

I have some software developed where I have setup good communcation between some VB software and flash software. Communication is done locally via socket connection. I was hoping I could do the same except with two swfs. Who acts as the host? do I need a host?

[Code]....

View 1 Replies

Actionscript 3 :: Flash / AIR Socket Communication WriteUTFBytes Only Works Once

May 12, 2011

I have a socket server listening on 2 ports, 1 port for the socket server and 1 port for the policy server. My code is below, in this scenario, data is sent and received perfectly fine. however, for example if I add a button with a simple:

socket.writeUTFBytes("Message");
socket.flush();

after the initial connection, it doesn't seem to send any data to my server (I have my server printing all data transmissions to the console for checking) Initial connections work fine, as seen below:

[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

Can't Edit Language Preference

Nov 25, 2009

I found a script I want to use, but it's written in AS2 and I'm authoring in AS3. So I grabbed the *.fla file and tried to ctr+shift+F12 to edit publish settings and change the language to AS3. But it's not available in the drop-down.

View 1 Replies

Java :: Programming Language For Web?

May 21, 2010

I haven't programmed in a while, and have kind of lost interest, but I want to get back, and I've enjoyed C# the most, a lot more than objective-c and visual basic. So I want to make some games that me and my friends will be able to play next school year. So basically something you can play on the web.

What programming languages deploy to the web?If c# is possible, and a mac with safari/firefox would be able to use it (I can't install plugins, and I don't want to get in trouble for making myself admin again)Flash, Java, etc. If java does, I'd like that most since it's most like c#. Then what libraries/engines would I use? I want to do 2d. And then what IDE would I use?

View 6 Replies

.net :: Use IDE Or Not While Learning A New Language And Framework

Dec 2, 2010

Sorry if this has been discussed somewhere else on stackoverflow (I could not find it), or if it is not a "programming" question (more like a discussion). Is it good to avoid using an IDE (Flash Builder, Visual Studio...) while first learning a new framework or language?

[Code]...

View 5 Replies

Flash :: Xml - Language Of The Font?

Dec 19, 2010

it doesn't display the necessary language, English only. after the encoding has been changed, it also doesn't work.probably the font should be changed into a standard one, but i don't know where to do it

View 1 Replies

Java :: Is There A Universal Language

Dec 8, 2011

We're designing an app that will run on Windows, OSX, iOS, and Androids. It would be really nice to at least have most of the code in a single language rather than having to use Objective C for the Apple versions, C# or C++ for Windows, and Java for Android.We were looking at Flex (with all of its problems) as a way to avoid having to use a different language for each version, but Adobe has thrown in the towel and in the long run that's not going to do the job. Java used to promise to be universal, but it looks like Apple no longer supports it as a part of the distributed OS, and as far as I can tell Microsoft never supported it. We don't want our users to have to download and install something just so they can use our app.Is there a solution? Or are we stuck with building the app in multiple languages?

View 9 Replies

Switch Language To English?

Jun 6, 2009

I installed the new Flash Builder.Does anybody know how to switch the language to english?Looks like the installer installs eclipse in the langauge of the os.in my case that was german.I know you can change the language for FlashBuilder in Windows by editing one of the dll's. How to get the same result on MacOs?

View 1 Replies

ActionScript 2.0 :: Code Has Been Replaced By Another Language?

Jun 22, 2009

I have been working on a script for weeks now and had a problem saving the file so i tried saving it to another location when i re-opened the file my actionscript code which was in english has gone and been replaced by what looks like is chinese or korean ??? is there anyway that could have happened and can i reverse it back??

View 1 Replies

ActionScript 3.0 :: Scripting Language In Flash?

Dec 2, 2009

I'm using Flash CS3 with Actionscript 3, and I need to have a scripting language that the user can use. If they could type in their own actionscript and have it evaluated, that would be perfect. Another scripting language such as Lua would be fine too. I looked into lua alchemy, but it seems poorly supported so I'd rather not use that. The Eval command from actionscript 2 isn't available in as3, and some of the things I've heard indicate that it's functionality is pretty limited, although I've never used it before.

View 1 Replies

ActionScript 3.0 :: Language Based Sub-Titles In FLV?

Sep 28, 2011

Actionscript 3 and am trying to make sub-titles for my video based application.I have managed to get the English subtitles for the same. However, I was wondering as to how the same could be implemented for other languages which do not have same font as English words?

View 1 Replies

ActionScript 1/2 :: Change The Language Of The Stage?

Nov 24, 2009

I have a new question.How do I change the language of the stage with AS 2.0?I am attaching the sample image of what I did.

View 4 Replies

ActionScript 3.0 :: PDF Version Of The Language Specification?

Jul 16, 2011

I'm new to ActionScript, but not to programming. I'd like to browse the language specification for ActionScript 3. It is accessible online at ActionScript 3.0 Language Specification. Is there a compiled PDF version of it somewhere? Or is there perhaps some PDF export button I'm missing? I prefer browsing big docs like that in book form--and to have it accessible offline and outside a browser.

View 1 Replies

ActionScript 3.0 :: Download Its Language Reference?

Sep 27, 2011

Where can I download the Actionscript 3.0 Language Reference?

View 4 Replies

Professional :: How To Manage Multi Language

Dec 24, 2011

I have swf file containing a game with english language. for question sake will call it mygame.swfNow what I want to do, is to take the fla file and translate it to french and german and save to differen swf files.So now i have:English - mygame.swfFrench - ygame_fr.swfGerman - mygame_gr.swfSame game, different language.My question is: what is the acceptible / good way to contain text in fla file so it will be in one place? like hashtable or some array?I am developer, just not flash developer this is why Im trying to consoult Im not interested in keeping data in external files (xml), I want everything to be keept within swf.

View 1 Replies

Professional :: Localize Flash CS5.5 IOS App To One Language?

Feb 6, 2012

What method or process do I use to set an iOS app to only one language?I recently had an iPad app written in Flash CS5.5 approved at the iTunes app store. I noticed at the iTunes store, it indicates that my app is localized in 14 different languages. I never set this up; it seems that there is a process that automatically adds several default language localizations to the ipa binary when the file is published. I tried the strings panel, used a var to set the localID, went into the SDK for flex and flash builder and deleted the locales (could not find anything similar for Flash itself), but none of this seems to prevent Flash from adding the language defaults. I have found many examples on how to localize my app for several languages, but nothing on how to set it to only one.

View 3 Replies

Flex :: 3 - Changing Components Language

Aug 11, 2009

When we are building a application in Flex the components that we add are in English. Lets say that i want to change then to French, Spanish or Portuguese. How could i do that?? I've google a bit about it, but nothing good. I didn't look too much, because you guys always now things, and here in SO its more faster to ask than search for it : I think i didn't expressed my self correctly.

[Code]...

View 2 Replies

Actionscript 3 :: AS3 XML Language File How Do I Use The Id Attribute?

Jun 15, 2011

Say I have the follwoing XML:

<?xml version="1.0" encoding="utf-8"?>
<language id="en" description="English">
<start>Start</start>
<instructions>some instructions</instructions>
</language>

[code]....

View 1 Replies

Java :: Which Is A Better Cross Platform Language

Sep 17, 2011

If you wanted to distribute a program to as many OS as much as possible what's the best language to use? I'm considering user's convenience here. For example, they don't need to download java run time, flash or .net framework if they don't have it. Also once they download it, they don't need to compile it themselves.

I'm also considering developer's convenience, in that on one compile, the program compiles different version of OS for you and you don't need to install different os to compile it. Here are the features of the program I'm thinking: Stores text and image to database Uses keywords Can browse information in the webserver via xml Can share(upload and download) information from the web server via xml Can compile and edit related articles via keywords It's something like a blog with advance features and can exist on and offline

View 5 Replies

Actionscript 3 :: Restrict Input To A Specified Language?

Sep 26, 2011

I use a TextInput component of Flex 4.5 to enter some text in English. I use the restrict attribute to ... restrict the keyboard input to characters a-zA-Z only. The problem is that if i copy/paste a word in another language, i can then paste it into the TextInput component. Is there a way to avoid that? If no, how can i validate the input against a specified language?I found out that the unicode set of Chinese+ language symbols is u4E00 to u9FFF. So i write the following:

var chRE:RegExp = new RegExp("[u4E00-u9FFF]", "g");
if (inputTI.text.match(chRE)) {
trace("chinese");[code].........

View 1 Replies

Actionscript 3 :: Set A Textfield To _sans If A Certain Language Is Used?

Jan 28, 2012

I need to set a textfield to _sans if a certain language is used. Usually it uses an embeded font. How can I set it to _sans through AS3?

View 3 Replies

Flash - Add A If Else Statement On The Capabilities For Language?

Feb 13, 2012

I have created a actionscript with Capabilities function It works good, but I want to ad a If else statement on the capabilities for language.I'm running in English so the capabilities shows " EN ", but I want the if else statement to change " EN " to = English, and if we are running in different language it would say " Other language"

This is what i have at the moment.

var versionString = Capabilities.language;
var label2:TextField = createCustomTextField(0, 60, 200, 20);
label2.text = "language: " + Capabilities.language;

how to use the if and else statement ?

View 1 Replies







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