Flex :: Parallel Calls To Remote Objects

Nov 29, 2009

I have the following application in flex. I want to call two different remote objects in parallel.

[Code]...

Now what the methods do is to print sth. when they are called, then wait 8 secs and print sth. after that. When clicking each button seperatly, it works, both methods are started in parallel. However, calling both method the same time, leaves one service to wait with its call while until the other is executing. How can I avoid that?

View 2 Replies


Similar Posts:


Flex :: Remote Object Multiple Parallel Calls?

Sep 7, 2010

I'm on Flash Builder 4.5 and I'm using remote object with amfphp and when I call two method (method1 and method2) at the same time the response of method2 always arrives after method1's response even though method2 is much more faster to return the result.re's the scenario:I set a remote object which refers to a remote php class "Newletter" which contains the sendNewsletter and getProgress methods.Here's the code:-sendNewsletter() reads the email archive and send the newsletter. After each email has sent it writes a log into the database.-getProgress() reads the log wrote by sendNewsletter, counts how many email have been sent, compares it with the total number of the email that have to be sent and return the progress percentageFrom the flex interface the users select a Newsletter to be sent and click on a "send" button which calls a function that calls the sendNewsletter() and then instantiate a loop of calls to getProgress (as you can see when getProgress returns something it calls the setProgress which updates a progress bar and calls getProgress again until the progress percentage reach 100%.

So right after I call sendNewsletter() I call getProgress() on the same remoteClass().sendNewsletter() can take several minutes to complete (in my tests for sending 4 email it takes about 4 seconds so I think that sending thousands of email will take much more!!) and the trouble I'm encountering here is that getProgress() result arrives only after sendNewsletter() concludes its execution while what I would like to achieve is:

View 6 Replies

Professional :: When Using IE7 For Parallel Https Calls Across Two Servers

Jan 6, 2012

Weeks back I faced a wierd issue in the behaviour of flashplayer running on IE7 which is invoking parallel https calls. I have two SSL enabled servers one is listening on port 443 and the other is listening on port 8443 but both running in the same domain. I developed a flex client (using httpservice class) which sends parallel https requests to these two servers. When the number of parallel requests increases say more than 5 requests to each server, the fault handler was encountered with the error message:[code]After breaking my head for a long days, I got one solution which would work. This issue is happening only if we are sending https requests to different ports in the same domain. So rather than moving one among the two servers to a new domain, I got a new DNS name for the same destination. So presently I got two DNS names pointing to the same machine in which both the servers are mounted.Now that I am using a separate DNS name for the server listening on port 8443 and the old DNS name is used to hit the server listening on 443.

View 1 Replies

Flex :: Animate Multiple Objects Within The Same Parallel?

Jul 20, 2010

I have multiple spinning balls that I want to animate altogether. Here's what I have so far but when I play the parallel (spinning.play()), nothing happens.Where am I going wrong?

<fx:Declarations>
<fx:Vector id="kfP1" type="spark.effects.animation.MotionPath">
<s:MotionPath property="baseColor">

[code].....

View 1 Replies

Flex :: Handle Remote Method Calls Via AsyncToken?

May 25, 2011

So here is the mxml i would like to get working:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code]....

View 2 Replies

Flex :: Understanding Remote Shared Objects?

Oct 20, 2009

I have 2 questions about remote shared objects in Flex/ActionScript3:1) If I connect to a remote shared objects, but do not handle the SYNC event, will the shared object still receive data from the server? ie. will the server still broadcast data to this client ? This is what I expect

View 2 Replies

Flex :: What AMF Servers Support Remote Shared Objects

Mar 29, 2010

I'm planning on building a Flex based multiplayer game, and I'm researching what will be required for the server end. I have PHP experience, so I started looking at ZendAMF.

Now in this game, I'll need the concept of rooms, and real time updates to clients in those rooms, so it looks like I'll be using remote shared objects (correct, yes?). I'm not seeing where ZendAMF can support this.It seems to indicate that ZendAMF isn't going to do what I want. WebORB for PHP seems to be the only PHP based solution that does messaging, but on that page it doesn't mention "real-time" next to it like the Java based ones below it do.

View 3 Replies

Java :: Remote Object(flex) And ArrayList Of Custom Objects?

Jan 24, 2012

I have a custom java class which has an ArrayList and corresponding to it have a custom vo class which has ArrayCollection (in Flex).I want to return data from Java to flex.Every variable in java is getting mapped to vo perfectly except for ArrayList.When trying to retrive When trying to retrive exposureUSDList (which is an arrayList) in flex I am getting empty ArrayCollection. It is not getting mapped properlyPlease find my code below:

Flex Code:
package com.example.vo
{

[code].....

View 1 Replies

Flex :: Develop The HTTPS Application Using Java - Remote Objects Or HTTPServices

Feb 8, 2010

I need to develop the HTTPS application using Flex and Java. But i have idea about remote objects or HTTPServices. which one is the best for developing HTTPS application.

View 1 Replies

Flex :: Use DTOs Or Domain Objects When Connecting To Blazeds/java/jpa Using Remote-services?

Jul 24, 2011

I am working on an Adobe Flex front-end with a Java back-end using JPA for persistence. he protocol I am using is remote objects (AMF) implemented with BlazeDS.I started out with a service-facade and entity DAOs, but without any specific DTOs. The same POJOs, the domain objects, were passed in the service-facade as those used as DTOs passed to the Hibernate DAOs.However, the latest few days I have been thinking whether this is a good approach or not. The latest article on the subject I read was this one:Interesting JPA Pattern blogThe situation:Say I have POJO Book with a unidirection ManyToOne relation with the POJO Category (i.e. each book may only be associated with one category, but the same category may be associated with many books). I see some alternatives:Alternative 1:I expose a method/operation addUpdateBook(Book book). In the implementation of this operation I add/update both the book and the referenced category.

View 1 Replies

Flex :: Could Not Play The Parallel Effect

May 10, 2011

I could not play the parallel effect which is defined by the following code:

var parallel:Parallel=new Parallel();
var E1:WipeDown=new WipeDown();
var E2:WipeLeft=new WipeLeft();
parallel.addChild(E2);
parallel.addChild(E1);
parallel.duration=2000;
parallel.target=this;
parallel.play();

On playin the effect by calling effect() function only the effect E1 is getting played. If the code was:

[Code]....

View 1 Replies

.net :: Reduce Number Of Remote Objects?

May 4, 2011

I am making a flex application with .NET at back end (connection using WebORB and remote objects). I have five drop-down boxes in Flex component, each having unique values from different tables (e.g. city name, county name, user name, etc.).On page load (or can say creation create) I need to display these values so that users can select from the list. I was trying to get data using five remote objects (one for each drop down box.). I am wondering if there is way to get all data in one remote call.

View 1 Replies

Performance :: Multiple Remote Objects - Best Practices

Oct 3, 2011

I have an application with about 20 models and controllers and am not using any particular framework. What is the best practice for using multiple remote objects in Flex performance-wise?

1) Method 1 - One per Component - Each component instantiates a RemoteObject for itself
2) Method 2 - Multiple in Application Root - Each controller is handled by a RemoteObject in the root
3) Method 3 - One in Application Root - Combine all controllers into one class and handle them with one RemoteObject

I'm guessing 3 will have the best performance but will be too messy to maintain and 1 would be the cleanest but would take a performance hit.

View 3 Replies

ActionScript 2.0 :: Remote Access Of Functions & Objects?

Sep 18, 2009

How do I access actionscript programs, such as functions, from remote as files without using the #include command?

View 0 Replies

Media Server :: Stream Priorities - Live Audio And Video / Remote Objects

Jul 14, 2010

I currently have two connections with two separate streams. They both hit the same fms 3.5 server. One connection transfers live audio and video. The other one is used for remote objects. Sometimes when viewing the audio and video stream with a slower internet connection, the stream for the shared objects disconnects. I think it is a bandwidth issue. Is there any way to set the priority of the streams? I think this should allow me to set a higher priority for the shared object connection so it won't disconnect.

View 3 Replies

Flex :: Order Of Calls To Set Functions When Invoking A Flex Component

Apr 14, 2010

I have a component called a TableDataViewer that contains the following pieces of data and their associated set functions:[code]This component is nested in another component as follows:[code]Looking at the trace in the logs, the call to set table is coming before the call to set dataSetLoader. Which is a real shame because set table() needs dataSetLoader to already be set in order to call its load() function.So my question is, is there a way to enforce an order on the calls to the set functions when declaring a component?

View 1 Replies

Actionscript 3 :: Code Parallel Sequencial Program?

Aug 9, 2011

I want to develop the following program in AS3

main -> Async call A -----> join
|- Async call B ->|
|- Async call C ->|

[Code]...

View 1 Replies

Java :: Fetching Remote Objects Add "_$$_javassist_x" To Type?

Jan 5, 2010

we have a client/server app (Flex and Java) that uses BlazeDS to do remoting. This allows us to exchange and map types between client and server. For some reason a User type we are retrieving from the server is not sent as "User", but as "User_$$_javassist_x", where x is an integer.

The other types we are sending over all work fine, even the User type used in a different service class.

View 1 Replies

Flex :: Capture The RawResult For Calls ?

Oct 15, 2009

I am using Flex and with the AS3 libraries.I can make calls etc but when i get values returned in the event,they are in RawResult. I am not sure how to turn that into an arraycollection etc so i can make use of it in flex, or if there is a better way of accessing the data, generally speaking.

var friendsDoc : XMLDocument = new XMLDocument(e.data.rawResult);
var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(true);[code]....

View 1 Replies

Flex :: Sychronous Web Service Calls

Sep 10, 2010

Does adobe flex supports sychronous web service calls justify your answer???

View 1 Replies

Flex :: Synchronous Calls Using RemoteObject?

Apr 2, 2009

Is there a way to make synchronous calls using RemoteObject in Flex?

Solution: Add the second call to the result handler of the first call, having a token check for multiple originating calls.

View 9 Replies

Flex :: Connect It With Symfony 2 For Amf Calls?

Mar 6, 2012

I have to use flex 4 for the front end and php with Symfony 2 as backend. I want to use amf to call remote methods on the php. I have known that Symfony 2 does not have plugin for amf communications with Flex. In this case how can I connect them? or I have to use httpservice/webservices which is slow in performance.

View 1 Replies

AS3 :: Parallel Image Loading In A Single Class Instance

Jun 13, 2011

My problem occurs when I try to load multiple images in one class in AS3.[code]My problem with this is, that every complete-method receives the same image. Sometimes they all get img1.jpg, sometimes they all get img3.jpg....I don't have any clue why this is happening.[code]Now the different Bitmaps and Loaders have distinct names and are called within the same method call. The event handlers now are inline.

View 2 Replies

Flex :: Programming Synchronous Web Service Calls

Aug 19, 2009

Web service calls are asynchronous in flex, but I wanted to wrap a web service call in a class to provide synchronous encapsulation. Something like the below - the user could call getMyMethodResult and get the result returned by the web service. I expected the thread that recieved the soap response would populate the variable _result and mean that getMyMethod would, after a time, find _result is not longer null. But it doesn't! Can anyone explain why this does not work?[code]

View 1 Replies

Actionscript 3 :: Cach Webservice Calls On Flex 3?

Feb 8, 2010

I have a Flex 3 application that makes a call to a webservice. That webservice calls returns a 2 Mb file that flex reads and parses. The problem is that it takes sometimes 45 seconds. I was wondering if there is a way to cache the response form the webservice? So the next time I load the flash movie it doesn't have to re-download the full file but just the updated data.

View 2 Replies

Actionscript 3 :: Do Lightweight REST Calls In Flex

Dec 19, 2010

We are converting a Flex application to use some REST APIs.

When adding the mx.rpc.http.HTTPService class to the code, the SWF binary output grew from 175KB to 260KB. This is an unacceptable hit.

Is there any better way to do lightweight REST calls from a Flex app? Are we better off using an external interface JS just to make the calls from there?

View 2 Replies

Flex :: Using HTTPService In Consecutive Function Calls

Mar 15, 2011

I have this button:
<s:Button includeIn="MeniuPrincipal" label="Descarcare Date" click="downloadLmData(event)"/>
And this click event handler:
protected function downloadLmData(event:MouseEvent):void {
downloadData('competenta', 'competente');
downloadData('localitate', 'localitati');
}

The downloadData function looks like this:
private function downloadData(item:String, items:String):void {
try {
var colVar:String = 'col' + cappitalize(items);
this.status = "Descarcare date in curs...";
this[colVar] = null;
[Code].....

The problem is, all calls are ignored, except for the first one. Is there any "queuing" mechanism which would allow all calls to be made?

View 2 Replies

Actionscript 3 :: Caching Webservice Calls On Flex 3?

Jun 22, 2007

I have a Flex 3 application that makes a call to a webservice. That webservice calls returns a 2 Mb file that flex reads and parses. The problem is that it takes sometimes 45 seconds. I was wondering if there is a way to cache the response form the webservice? So the next time I load the flash movie it doesn't have to re-download the full file but just the updated data.

View 1 Replies

ActionScript 3.0 :: Parallel Loaders Fail To Fire Some Event.COMPLETE

Oct 19, 2011

I want to dynamically load several png images from 6K to 2,5M. I create the loaders in a for loop and start them all at the same time, and listen Progress, Complete, IOError and SecurityError on each loader. The problem is the COMPLETE events are not always fired, even if Progress events show all images are fully downloaded.
 
I tested with Firefox and Chrome, I load 4 images 2.5M, 2M, 1M, and 6K, then I just get 2 or 3 COMPLETE events, sometimes the 4 are fired with Chrome. Did not find any workaround. I tried to listen ProgressEvent and call the completeHandler when bytesLoaded == bytesTotal but the loaderInfo.content is null (and bytesAvailable =0) so I can't get the Bitmap.
 
1) Is there a known limitation in the number of simultaneous loaders, from flash player or browsers ? Does Adobe recommend to have queued loaders instead of simultaneous ?

2) Is there a way to get the loaded Bitmap when COMPLETE is not fired ?

3) I don't keep the loaders in a property of my class, and use weakReference for the listeners : the issue can come from my code ? (but the ProgressEvents are received until the download is complete)

View 4 Replies

Flex - Limit To Number Of HTTPService Calls That Can Be Made At Once?

Aug 27, 2010

I have 5 Cairngorm Events that I am dispatching at the same time(one right after the other) - all of which call a separate HTTP Service. This works fine when I run the application locally however when I deploy my project to a Glassfish server, it only works intermittently, with the app hanging when it doesn't work.

My temporary work around to this is to chain some of the events together so less call are going out at once, but I don't really like this as a viable solution because it slows down performance.

Is there a maximum number of HTTPService requests that Flex can make at once before it hangs?

View 1 Replies







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