ActionScript 3.0 :: Peer To Peer In Flash, Is Java The Answer

Aug 31, 2011

One workaround for this seems to be very briefly using a server to authenticate and setup a peer to peer connection, such as Adobe Cirrus. Another workaround is simply not using peer-to-peer, and instead setting up a dedicated server using Java or PHP to communicate between users.

It seems to me, that if you can use Java on a server to communicate between two users, shouldn't you be able to use Java in your program to directly handle peer-to-peer communications, no server needed?

And, if it's at least theoretically possible, would someone mind pointing me to a good tutorial on integrating Flash and Java, and using Java to do peer-to-peer? The tutorials and examples I've managed to find so far on both subjects haven't been very illuminating.

View 10 Replies


Similar Posts:


P2p - Using Flash Peer To Peer To Share Files?

Apr 21, 2011

I am trying to implement the actionscript program described at this address. http://cookbooks.adobe.com/post_Create_a_P2P_file_sharing_application-16539.html. It lets two flash client connect to the cirrus service and share a file using the flash peer to peer facilities.

The problem is that I would like to display a progress bar to the downloading client for long files. There does not seem to be any progress-type event been triggered by data sent by NetStream.Send. This particular function appears to have been created by adobe to send tiny update and meta-data code.

Is there a way to display a progress bar of downloaded data when using a netstream object?

The alternative would be to break the data into small packets and send them individually; then increment the progress bar as they are received by the client. Unfortunately this creates a lot of overhead for the simple problem of displaying a progress bar.

View 2 Replies

Media Server :: Latency Is Coming In Fms4 Peer To Peer Communication

Nov 17, 2010

I am developing peer to peer video conference application with FMS4 but there is some latency problem.

View 1 Replies

Media Server :: Latency Coming On One Side In Peer To Peer Connection?

Dec 22, 2010

We developed one video chat application in which one user can chat communicate with anohter user. Latency is coming on one side in peer to peer connection.

View 2 Replies

Media Server :: What Determines When Peer Might Switch To Another Peer

Jan 30, 2012

When running a peer-assisted multicast video event, what determines when a peer might switch to another peer?What I'm asking is that a peer joins the group, is handed a few peers that may be decent cadidates to pull the video stream from.They start pulling that stream from peer1 and if they can't connect (or I assume if the connection is terrible) they will try the next peer.What if I want the peer to give up (and try another peer) if the quality of the stream coming from a peer is not terrible but is not great either.Is that configurable?

View 1 Replies

ActionScript 2.0 :: Possible To Create Peer To Peer Games

Sep 6, 2011

is it possible to create peer to peer games in Action script 2.0

View 1 Replies

Flex :: RTMFP Direct Peer-to-peer Connection Working On Windows XP / But Not On Windows 7

Mar 1, 2012

we're having a strange problem on a project here. When we use NetConnection in combination with a NetGroup to initiate communication between two local AIR applications on Windows XP, they always both connect to the NetGroup succesfully and detect each other as neighbors. However, on Windows 7 both applications connect succesfully to the NetConnection and NetGroup both don't detect each other as neighbors.To reproduce this problem, here are two AIR applications:[code]

These applications can connect and send message to each other without a problem on Windows XP. On Windows 7 however, they cannot.Does anyone know why this wouldn't work on Windows 7 and what steps can be taken to make it work? It's critical to our project that this works.In some cases, the applications take quite a long time to detect each other as neighbors (up to 15 seconds in some cases), in other cases they detect each other immediately. Does anyone know what could cause this delay?

View 1 Replies

Flash - Adobe Cirrus: Deliver A Chunk Of Data To A Single Peer With Known Id?

Jun 17, 2011

Adobe Cirrus offers a number of options for transferring data from peer to peer: Directed Routing, Object Replication and Multicasting to name a few.I just want to send the data to one specific peer, its fine for other peers to 'see' it in transit.

My experiments with Directed Routing (the obvious answer) have not gone well. all the sendto... methods fail, while NetGroup.post works fine on the same netgroup. I am concerned about using direct connections because of reliability.

Has anyone successfully implemented a one to one messaging strategy (not one to many), which can still message between non-connected peers - (Directed Routing) or solved this problem successfully?

I am considering various workarounds, but I am quite perplexed that these NetGroup methods: sendToNearest, sendToNeighbour & sendToAllNeighbours just seem to fail, for no apparent reason.

View 2 Replies

Media Server :: How To Know Disconnected Peer ID

May 6, 2011

I am developing a simple text chat application with fms4, for this application, i am using adobe stratus service for developing this application and i just want to know about disconnected peerID.

View 1 Replies

Flex :: Exchange User Names And Peer IDs Between All Connected Users?

Feb 13, 2012

I'm building a chat using Flex. The problem is how to do that new user get the list off all users online and added to the lists of all users. I try to put this information in DataGrid through dataProvider "callerns"[code]...Exchange user names and peer IDs between all connected users

View 1 Replies

Media Server :: Disable RTMFP Peer Introduction Services On FMDS4?

Oct 23, 2010

I've installed FLASH MEDIA DEVELOPMENT SERVER 4 for testing. I wonder if there is a way to disable Stratus/Cirrus peer introduction services included in this version of FMS, because I need to simulate Flash Media Interactive Server 4 (not the Enterprise version) to adjust my application properly for cheaper solution.I am using NetStream.DIRECT_CONNECTIONS and I want to test, what are the differences of usage and how to do it right, even implement a fallback, when no peer introduction services are working on the server.

View 5 Replies

Media Server :: About Peer - Assisted Network NetStream.MulticastStream.Reset

Dec 1, 2011

I am developing a video system using the peer-assisted networking of FMS. but when I have published video successed, I can't receive the video at some endpoint.

[Code]....

View 2 Replies

Media Server :: Errors When Attempting To Use BitmapData.draw() On A Peer-enabled Stream?

Sep 17, 2010

When attempting to take a screen capture using BitmapData.draw() on a Canvas containing a Video Component of an incoming stream, here is the error I encounter:

http://rd05.scs.mysite.com/samples/applications/LiveVideo/LiveVideord0 5.swf
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: http://rd05.scs.mysite.com/samples/applications/PeerVideo/PeerVideord0 5.swf cannot access

[code]....

View 3 Replies

ActionScript 3.0 :: Get An Answer From Input Text Field And Compare It To The Correct Answer?

Jul 8, 2010

I am trying to get an answer from Input text Field and compare it to the correct answer.here is how my code look like:

//I have a confirm button here
confirm_button.addEventListener(MouseEvent.CLICK, ConfirmFunction);
//I have a correct answer as a String here
var correctans:String = "July";

[code]....

This will check if correct answer contains words in the answer from input text field.But that will result on if I key in "July is great", it will still link to the correct answer frame instead of wrong answer frame.I want the answer to be exact same as the correct answer.

View 4 Replies

ActionScript 2.0 :: Button Is Pushed A Answer Is Displayed And On The Answer Frame?

Aug 27, 2010

I have a grid with 12 movieclip buttons. When a button is pushed a answer is displayed and on the answer frame, there's a button "click for more information".

That button points to information in a frame within the mc button. However, when I test it all the buttons on the root timeline appear on top of this information, covering it up.

Also, when you move the mouse while in this "further info" area, it disappears

View 1 Replies

Java :: Migrating Existing Java And Flash Applications To Android (Google TV)?

Aug 9, 2011

I have a client-server multigame suite for PC ("kind of" cross-platform using cygwin), which is developed in Java(game menus and database management), C++ (server side), and adobe Flash (game graphics & interaction).

I have never tried to develop for android, so i have no experience.I am thinking of migrating this suite to google TV. So i would like someone with android experience to give a clue on the following :

1) Is it going to be easy to migrate the Java application to an Android application?

2) What kind of Flash support does Android have? Can it load directly swf applications? Does it have to load swf's through browser?

3) Can i find any kind of performance indexes for google TV hardware?

View 1 Replies

Java :: Load External Page HTML Via Javascript Or Flash Or Java?

Nov 13, 2011

I need to load somehow the html code of a webpage A into a javascript string of another webpage B, on a different host. I know this is impossible to do with javascript alone because of the same origin policy, and I know I could do it loading the page via php on my server and then send results back to the user's client but I wouldn't be able to handle so many requests, so I need it to be done directly by the user's browser. I can use nearly whatever browser scripting language/applet framework common enough to be installed on the majority of my users' computers, like flash and java.On example, what if I use flash or java to load the external html code and then call a javascript callback function providing the source? Could this work?

View 2 Replies

Java :: Any Opensource Alternative To Squish To Test Flash / Silverlight / Java Applet Gui Objects?

Jun 3, 2011

If one doesn't have the source code, the only to test is to send keystroke and mouse move so I found this product but it's not free and opensource price is not even known :([URL] Squish supports automating interactions and testing non-HTML/DOM elements, that is, native objects, which are embedded in a web page. This is done at a fairly abstract level, which means that mouse and text input can be recorded and replayed.

In addition it is possible to inspect embedded native objects with the Spy tool and to insert verifications for these native objects. All of a native object's public properties can be accessed in test scripts.

View 2 Replies

Java :: Flash Is Java Needed To Use Red5

Jul 24, 2010

I'm working on a Flash project and someone recommended Red5 as a media streaming server. Do I need to know java to use build applications that use Red5 as their server?

View 2 Replies

ActionScript 1/2 :: Maht.tan In Flash Gives The Answer In Radians Or Degree?

Oct 9, 2009

I am not sure 1/maht.tan in flash gives the answer in radians or degree.
 
anyway, how cna i change? I mean, whats the code? (script)
 
1 last thing,
I wanna count cot(north / south)
does: 1/math.tan(north , south) does it?
I mean, what comma stands for? - + * / ??

View 1 Replies

ActionScript 3.0 :: Create Flash Quiz Based On Circling The Correct Answer?

Dec 27, 2010

I am quite new to actionscripting and need to create a flash based quiz.The user will have to circle the correct answer in the quiz.I do know of drag and drop function but didn't know how to create circling function.

View 11 Replies

ActionScript 2.0 :: Trivia Game - Flash Fade Out One Wrong Answer At A Time?

Mar 28, 2007

I am having a problem with a little trivia game that I am in the process of developing. What I am trying to do is have flash fade out one wrong answer at a time. All questions are being pulled from an XML file that has hundreds of questions. Keep in mind that the correct answer will not always be in the same spot. I also have it so that one question fades into another after a specific time. Here is the code

Code:
System.useCodepage = true;
//
function loadXML(loaded) {[code].....

View 8 Replies

Java :: Convert Byte Array From Action Script To Image In Java And Save It

Jun 25, 2010

I am a .NET Developer, but the question I am having is not related to .NETPlease keep this in mind even if my question sounds very trivial.This is my question:We have an swf in the browser, which communicates with a java extensionIts done using Smartfox Server(Used for MMO apllications)From the swf we are grabbing a portion of the screen as "Byte Array" in action script(3).And in Java, we are calling a function that converts the ByteArray to Image and then saves it.ur Java developer is encountering the errorSo basically, what I would like to know is this:How to accept the object type Byte Array from ActionScript in Java?Whats Java object type that is mapped to Byte Array in ActionScript?The conversion part is easy, I dare say. code in the ActionScript Section

public function savePhoto(uName:String, ba:ByteArray, descr:String):void{
var obj:Object = {};
obj.arr = ba;

[code]....

View 3 Replies

Java :: Flex - Max Upload File Size For Java Using Remote Object (BlazDS)?

Jul 16, 2010

I tried with flex and java in the backend. In this, I am able to upload files till 100 MB using remote object (blazeDs) where we will read the file as byte array and send it to the java method. If the file size exceeds after that, then I get the run time error in IE.

View 1 Replies

Java :: Flex - Unable To Send MIDI File Name To Java To Playback Music?

Oct 27, 2010

I could play MIDI file where "filename" is a String type with "asd.mid" value. However, I tried to sent AIR's nativeprocess command to Java, it shown "could not read" error.

[Code]...

View 1 Replies

Java :: Typical Development Workflow/process Developing With Weborb For Java With Flex?

Sep 15, 2011

Meaning specifically, what steps do you go through when creating a new application using these tools?

View 1 Replies

ActionScript :: Java - Flex ArrayCollection Of Number Objects To Java Collection<Long> Using BlazeDS

Mar 24, 2010

I am using Flex 3 and make a call through a RemoteObject to a Java 1.6 method and exposed with BlazeDS and Spring 2.5.5 Integration over a SecureAMFChannel. The ActionScript is as follows (this code is an example of the real thing which is on a separate dev network);

[Code]...

View 2 Replies

Java :: Web Multiplayer Game In FLEX And Java - Build The Server Clients Managing System?

Aug 4, 2011

I'm building a Facebook multiplayer game where the client side is in FLEX and the server side is in Java and I wanted to know if there is a guide on how to build the server clients managing system. When I say server clients managing system, I mean a server which many clients will connect to and will be able to choose between tables to join and play or to create their own table, same way as in texas holdem poker.

View 1 Replies

Java :: Performance - Code Doesnot(only Sometimes) Compiles In Java+flex (+ BlazeDS+Tomcat ) Combined Project.a

Aug 13, 2010

i am working on a flex+java combined project.My IDE and computer configuration is as follows:

[Code]...

When i make a small change in Flex code (eg, reposition of a button...anything), and run the project on server, it does make any change on output. Actually it depends on my luck... because it makes change in output randomly.what is is happening? tried rebuild, republish, clean , restart server, restarting the IDE, restarting the computer all available feature i could think. Also, i created a simple flex project on IDE and compiled it..... everything is compiled and displayed on output.

View 2 Replies

AS3.0 :: Java - Flex - ArrayList Of Custom Java Objects Over BlazeDS

Dec 7, 2010

Right away i just try to explain my problem: Using BlazeDS i got the following Javaclasses:

[Code]...

Then i got a Flex service class calling BlazeDS and executing the getCategories java method. Since Flash dosn't seem to understand typed arrays, the result from that method which i get back in flex is a simple array of untyped objects (the mapping dosn't seem to work here, even tought the class category exists in flex and has the same properties).
thats the first thing. but however, i'm converting the untyped objects manually into objects of the category.as class. the second thing is that categories have child-categories within the java object, which are also ArrayLists of the type category.java. the problem about that: my result event object only contains the first level of categories, looking into them the children are allways null. i dunno why they are empty, since they ARE part of the java object category.

and the third thing (the strangest by fast), you maybe noticed i named the properties of the category.java class strange, like idCat and nameTest instead of simply id and name. why that? because the property names of my flex result objects dont seem to change when i change the java objects properties names (result object properties are named "id" and "name" but the java class object properties are named "idCAT" and "nameTEST"). that it REALLY strange, since if i set the properties, like you see at nameTEST = "TESTNAME" it IS recogniced by flex, only the proertyNAMES dont seem to be recognized at all.

[Code]...

View 4 Replies







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