Flex :: Remote Class Alias In Air?

May 8, 2010

in Flex one can easily define the remote class alias like the following:

package samples.portfolio
{
[RemoteClass(alias="flex.samples.marketdata.Stock")][code].....

But my question is how do you do it in AIR since the client app does not know about the server file structure.

View 1 Replies


Similar Posts:


Flex :: Access A Remote Java Class (on Spring/BlazeDS) From The Cairngorm Application?

Nov 5, 2009

I seem to be getting the following error when I try to access a Remote Java class (on Spring/BlazeDS) from the Flex/Cairngorm application. I am going crazy at the moment trying to see what is wrong

[Code]...

View 2 Replies

ActionScript 2.0 :: [Flash 8 Class] Variable Alias No Longer Working?

Aug 8, 2006

I like to make alias varaibles for long names, so that i don't have to keep repeating huge lines of text, but when i try to create one for a custom class, it fails.

Code:
Clients["Client"+i] = new Client();
var Client:Object = Clients["Client"+i]

Its almost as if flash is trying to make the new variable a new Project(); instead of a reference to the other variable...

View 2 Replies

Flex :: Anti-alias An Image In It?

Jun 7, 2009

I have a Flex component with a background image. The image is sharp in the beginning, but is jagged whenever I scale the component using scaleX and scaleY. How would I make the image anti-alias so that, it it's scaled to 0.75, the lines are smooth, not jaggedy?

View 2 Replies

ActionScript 3.0 :: Acces Remote Shared Object From Other Class

Oct 29, 2009

How to acces remote shared object from other class?

I have

package {
import flash.net.*;
import flash.display.*;
public class Main extends Sprite {

[Code].....

I would like to add some data or modify shared object. How can I acces _sharedBoardObject from another class? Or maybe I need to connect to "sharedBoard02" directly?

View 0 Replies

Java :: How To Call Method On Remote Class Returned By Object

Nov 5, 2009

I have a RemoteObject returning a 'Schedule' class. I've created a client side RemoteClass to map to it. All properties of the class instance are coming in fine. I just not clear on how I go about calling methods on the class. How would I call a setter on startdate?

package classes.remote {
[Bindable]
[RemoteClass(alias="com.site.data.schedule.Schedule")]
public class Schedule {
public var id:int;
public var modifydate:Date;
public var startdate:Date;
public var enddate:Date;
}}

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 :: Compiling Projects With Remote Ant?

Jul 23, 2009

I'm having problems compiling applications with remote ant, something similar to this. However the flex compiler seems to have problems with this. When I run the same script on my local compiles everything without any problems but when I try the remote ant it fails without giving more information.

View 1 Replies

Load Remote Swf Files In Flex?

May 5, 2010

I have a SWFLoader in mxml of my flex app.[code]...

I get the alert popup (that is the loadComplete is called) but do not get any swf loaded, not able to view anything. What can be the problem, am I missing something or some security issue? I also tried the image control to load the swf. Moreover, the swf are pdf files converted to swf so can this be an issue of different frame rates between flash and flex ?

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 :: Use A Remote Image As Icon For A LinkButton?

Jul 9, 2009

We are creating a LinkButton programmatically and would like to set it's icon to an image retrieved from the remote server rather than something embedded within the SWF. The .icon property expects a Class but I can't figure out how to create one equivalent to an @Embed but from a dynamically generated URLRequest or URL String.[code]...

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

Actionscript 3 :: Remote Implementation For HTTPService In Flex?

Jan 15, 2010

In my flex application I am using httpService to connect to the server, for the response from server I wanted it to convert the http response to flex object, Is there any remote implementation availabe for the above purpose

View 2 Replies

Database :: Using Remote PHP Service With Flex AIR Application?

Feb 16, 2010

I'm developing a Adobe AIR application using Flash Builder 4. This app needs to access a remote PHP service which is being hosted on a remote web server. I am having troubles figuring out how to add a PHP data service which uses a remote service. I can add the PHP data service in Flash Builder as a service hosted on localhost, but given that this will not be feasible when the application is deployed, will not work. How to connect a Flash Builder (Flex) project to a remote PHP data service?

View 2 Replies

Flex :: Check Remote File Availability With AIR?

Aug 24, 2010

I was wondering if there's a remote file availability check using Flex-AIR. Not a local file.

Example: For displaying a image place holder instead of a broken image icon.

View 1 Replies

Flex :: Access The Remote IP Of A RTMFP P2p Stream?

Oct 4, 2010

I'm writing a communication system, using Actionscript 3 and C#. Flash is used to communicate with RTMP server and stream video and audio using RTMFP p2p, but the actual client logic is handled in C#.

What I want to be able to do, is allow users to share files between each other also using a direct p2p connection. I have got the RTMFP connection working but I need to access the IP address of the remote user so I can initiate a connection to send or receive files.

I looked at the Adobe docs but I can't see anything except how to access the farID.

Is there a way to get the IP of a RTMFP stream?

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

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 :: Remote Image With Basic Authentication?

Jul 24, 2011

I would like to load a an image from an external domain and I have the below so far:

private function get_coverArt(coverArtID:String):void
{
var requestString:String = "/rest/getCoverArt.view?v=1.5.0&c=AirSub&id=" + coverArtID;

[Code].....

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 :: Deploy A Project In A Remote Webserver

Nov 25, 2011

I have coded my Flex / PHP project in a local machine. I have used AMFphp for remoting and I got to deploy and test this application in a remote server. How could I do this using Flashbuilder 4.5?

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

Actionscript 3 :: Flex : Stop A Remote Call?

Feb 20, 2012

In common case, we keep the token of a remote method call, Flex -> Java for example. But, if the client know that the current call is not needed anymore, how stopping the server processing ?

With an asyncToken, is it possible to stop a remote call ?

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







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