Actionscript :: Get Flex To Use Custom ArrayCollection For Remote Object From Server?

Oct 11, 2011

I am thinking of writing a subclass of ArrayCollection, similar to ClearToolkit's that can be smart about managing my remote objects when coming back from BlazeDS.I am wondering if it is possible to get Flex to put my collection of objects in my own custom collection instead of defaulting to ArrayCollection? If not, I'll need to pull everything out of the collection it comes in in order to populate my own.

View 3 Replies


Similar Posts:


Flex :: Custom Validator Against Remote Object?

Oct 20, 2010

I have a need to validate a field against our database to verify unique-ness. The problem I seem to be having is that the validators doValidation() exits before we've heard back from database.

How can I have the validator wait to return its payload until after we've heard from the DB?

Or perhaps a better question might be (since I think the first question is impossible), how can I set this up differently, so that I don't need to wait, or so that the wait doesn't cause the validation to automaticallly return valid?

View 3 Replies

Flex :: Casting Object From ArrayCollection To Instance Of Custom Class

Jan 28, 2011

I am using Flex 4 and for whatever reason I cannot get the following code to work which happens inside of a ListEvent handler for a dataGrid:
_tempRule = DataGrid(event.currentTarget).selectedItem as Rule;

Rule is a custom class, and the above code always returns null. The dataprovider for the datagrid is an ArrayCollection. If I try to wrap the above code to make it like the following:
DataGrid(event.currentTarget).selectedItem as Rule

I get this error:
TypeError: Error #1034: Type Coercion failed: cannot convert Object@e15a971 to com.mycompany.arcc.business.Rule

Now I know I have done this before with native Flex classes like Button, etc, but it my case it will not work. Here is the Rule class:
package com.mycompaany.arcc.business {
import flash.utils.describeType;
import mx.collections.ArrayCollection;
[Code] .....

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

ActionScript 1/2 :: Snapshot The Video Object And Save To Remote Server Specified By A Url?

Nov 7, 2010

How to generate the bytes from the video objectHow to submit the bytes to remote server?I found these classes are missing in AS2:flash.net.URLRequest,flash.net.URLLoader Are the above possible in AS2?

View 1 Replies

Media Server :: Does FMS Enable Remote Shared Object Functionality?

Sep 28, 2011

I need the Remote Shared Object functionality and wonder if Flash Media Streaming Server incorporates this functionality?

View 1 Replies

Media Server :: Move Two Figures On The Stage With Remote Shared Object?

Nov 10, 2009

I need to move two figures on the stage with shared object like the "Tutorial shared Object ball" on the adobe website but with more than one figure. All the client must see the figures moving. The figure are a circle (Cerchio) and a square (Quadrato). This is the script:
 
package{  import flash.display.Sprite;  import flash.net.SharedObject;  import flash.events.NetStatusEvent;  import flash.events.SyncEvent;  import flash.net.NetConnection;  import flash.events.MouseEvent;  import

[Code].....

View 1 Replies

Flash :: Snapshot Video Object And Save To Remote Server Specified By Url In Actionscript 2?

Nov 7, 2010

How to generate the bytes from the video object

How to submit the bytes to remote server? I found these classes are missing in[url]...

View 1 Replies

Media Server :: Write Remote Shared Object Sequentially When Multiple Users Are Connected?

Mar 31, 2010

I am using FMS3 and Flash CS3 (actionscript2) in a Flash based whiteboard application. Multiple users can join this whiteboard. I want to save chat text and drawing in same sequence as live time. I am using persistant remote shared object to save these data. But when i try to replay these data its not showing in same squence as live . I am generating unique slot for chat and drawing but still same error occuring.

View 8 Replies

Media Server :: Connect And Sync To Remote Shared Object Works In Authoring But Not In Browser?

Dec 19, 2011

I'm having trouble connecting to a remote persistent shared object. When I run from the Flash authoring environment it works. But when I run it from a browser it doesn't. The code attaches an event listener to the sync event, and then calls so.connect(nc).
 
As mentioned - it works inside Flash authoring only. In both cases the connection to the server is successful. I also tried setting client.readAccess to "/" in the application.onConnect function of the server-side code - but it doesn't help. (Everything was written by me including the server-side application code. I have full control and access to the server).
 
Also, I can see the remote object exists on the server in the admin console.And as mentioned, when running inside Flash CS5 - the onsync gets triggered after connecting to the shared object.But, the same code under a browser - doesn't trigger the onsync.The SharedObject.getRemote method on the client side returns an object on both occasions.

View 1 Replies

Flex :: Mobile App Using Remote Web Server?

Mar 19, 2012

I must say that I am reaching the end of my tether with Flash Builder and Flex. Firstly, I have built this wonderful app that I want to start using but it is data driven meaning that when I built it, I created it on my localhost. The PHP scripts were generated from Flash Builder and I have edited them to make them more secure. I have all my services working 100% and I have this brilliant app, but I can only run it on localhost. I have done everything necessary and installed Zend Framework on both servers, I have configured Zend properly but I cannot work out how to change the mobile app to now read from my remote web server.To me this is useless as I want to be able to deploy this app to others to use when they are out and about. how to change it from looking at a localhost to looking to my remote web host?

View 1 Replies

Flex :: Object To Arraycollection Then To Datagrid?

May 13, 2011

linedataColl is an AC that contains 200+ of rows extract from CSV and in my design, I wish to additem into SuperDataCollection object by object but the only problem was I'm unable to see any data display in "S" which is a datagrid. What wrong with my code?

var superDataCollection:ArrayCollection = new ArrayCollection();
var dc:ArrayCollection = new ArrayCollection();
var di:Object = new Object();

[code].....

View 1 Replies

Flex :: Load Css File From Remote Server?

Feb 1, 2011

In Flex 4 i want to load css file from remote server at runtime it's possible?

View 1 Replies

Php :: Flex File Upload To Remote Server Using PHP

Oct 10, 2011

I am trying to upload the files to the remote server using PHP with Flex interface. If it's not localhost, it shows the security error. I have already put the crossdomain.xml in the tomcat web app root directory to allow all the domains. However, the security error is still shown when I tried to upload the file.

View 1 Replies

Flex :: Check If An Object Has Been Already Added To An ArrayCollection?

Apr 19, 2010

I need to merge 2 arrayCollection and avoid duplicates. They contain objects with their own attributes. I would like to avoid duplicates.

View 2 Replies

Flex :: Authenticate Desktop FLEX / AIR App With Remote Server?

Apr 21, 2011

I have an Adobe AIR/FLEX app packaged as a native installer application running on the desktop. From there, I need to do the following:

a) stay in the "app:" application sandbox so I can load "file://" JPGs into my mx:HTML control

b) authenticate with my server (CAKEPHP) to get a valid CAKEPHP Session Cookie, and

c) securely GET/POST XHR requests from javascript.

Can I authenticate using something like OAUTH or Facebook Connect without losing the application sandbox? It seems if I redirect from my mx:HTML, I lose my local privileges.Can I authenticate with my server using a different sandbox (remote?) and safely pass the Session Cookie to my application sandbox? Are either of these methods safe against scripting attacks?

View 1 Replies

Flex - Deploying To A Server And Remote Debugging With FlashDevelop?

Apr 9, 2011

Is there any way to automatically deploy to a server after I build a flex app, and then debug using the remote url ?

This is totally possible in FlashBuilder, but I am highly hoping that it can be done in FD as well.

View 1 Replies

Actionscript 3 :: Flex Download File From Remote Server?

Feb 14, 2012

i try to load file from remote server and open the file with default application.

private function getRemoteCourr(PathFichier:String, FileName:String):void {
urlStream = new URLStream();
fileData = new ByteArray();
var urlRemoteCourr:String = new urlManager().urlCourriersPat();

[code]...

Instead of a word document with image and text.

View 2 Replies

Flex :: Remote Object Source Not Found

Aug 26, 2009

Our flex project, which works fine in its current environment with coldfusion 7 single server. We moved this project to Coldfusion 8 multi server, and updated the remoteobject paths relative to the web root.

The error we now receive is
faultCode:Server.Processing faultString:'Unable to invoke CFC - Could not find the ColdFusion Component or Interface myProject.cf.main.' faultDetail:'For details, turn on Robust Exception Information in the ColdFusion Administrator'
The path to the cfc's from the webroot is is myProject/cf/main.cfc ...

View 1 Replies

Flex :: WebOrb - Finding URL In Remote Object

Oct 19, 2010

Since Flashbuilder does not support WCF over https, I am considering to use weborb remoting as alternative, but not really sure how flash is going to know weborb location, if they are sitting on different servers. Looked at destination, source fields, but not really find a field called url in remoteObject in Flex.

View 1 Replies

Flex :: Using One Remote Object And Multiple Destinations?

Feb 2, 2011

In my Flex app, I use one remote object and multiple destinations. Is that a bad idea? It seems to be working just fine except for the one or two fringe cases:It's bad design, but we use the same method name on two different destinations and they seem to conflict when they're called at the same time. Logging errors show a method assigned to one destination as being associated with another.

View 1 Replies

Java :: Remote Object Flex Not Working?

Feb 8, 2011

I'm building an application using Flex 4 + Spring Blazeds Integration 1.5 + Spring 3.0.5 + Hibernate running on jboss-5.1.0.GA. I create a simple login form, and when a submit a string via remote object it works fine. But when a try to use an Object its simple doesn't work. Funny is that it even don't shows the Alert that a put! Also, if I remove the tag "RemoteClass" it sends to java but an error occur. Bellow is the code and configs.

My java class:

package com.controlefinanceiro.entities;
// imports
@Entity

[Code]....

View 1 Replies

Flex :: Populate ComboBox Using Remote Object?

Mar 8, 2011

I have a remote object returned and I am trying to populate it into combobox.

<s:RemoteObject id="ro" result="result(event)" destination="echoServiceDestination">
private var statesData:ArrayCollection;

[Code]....

View 1 Replies

Flex :: Remoting - Extend Remote Object?

Feb 13, 2012

My current coding for remote object declaration is messed up I wanna separate the remote object and the interface

Current Code :
<s:RemoteObject id="ro"
destination="customerService"

[code].....

View 1 Replies

Flex :: Adobe - ArrayCollection - Accesing Object Methods / Attributes?

Jun 18, 2011

Maybe i didn't get the real meaning of the ArrayCollection, but first of all some code

[Code]...

View 1 Replies

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

Flex :: Does A Channel Set On Remote Object Gets Logged Out On Its Own After Some Time Interval

Apr 8, 2009

I have implemented the login capability to my application using Flex(Blazeds)channelset login. But there is a strange problem, after about 2 minutes of inactivity if I try to perform any operation I see that my channelset has been been forcefully logged out Is there some configuration which I need to do in order to prevent this from happening. I tried adding this in my web.xml, so that the session persists but it didnt help my cause.

<session-config>
<session-timeout>10</session-timeout>
</session-config>

View 10 Replies

Flex :: Convert Remote Object Result To Array Collection In It?

Jun 11, 2010

I'm using zend_amf and flex. My problem is i have to populate my advance datagrid using array collection. this array collection have a children.[code]...

View 1 Replies

Java :: Flex Session Parameters In Remote Object BlazeDS?

Jun 23, 2011

I have my flex object embedded to JSP page.The JSP page retrieves user information like user name and group from portal profile object and stores in http session parameters. The flex Object makes a remote call to Employee.class to perform persona based operation.

I retrieved the session id in JSP and also in the Employee.class both are same. But I am not able to retrieve the username stored in the http session from FlexSession. I read in the internet that the FelxSession will hold all httpSession information as well. It's always coming as null. Correct me if I am wrong.

[Code]...

View 1 Replies

Flex :: Mxml - Components Bound To Empty ArrayCollection At Load Time Don't Render As Expected When The ArrayCollection Is Updated?

Oct 27, 2009

I'm new to Flex and am using TileList bound to an ArrayCollection. The array collection is empty at load time, and then updates with the results from am HTTPService call. The problem is that the item renderers aren't being rendered as expected, I'm guessing because there was no data when they were first rendered at load time. Here's simplified example:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" >
<mx:Script>

[code].....

View 2 Replies







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