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


Similar Posts:


ActionScript 3.0 :: Implementation Of Html WYSIWYG In Flex?

Sep 16, 2009

is there any way to build html WYSIWYG in flex like Microsoft front page? i didn't found any thing on the web like this? second question is : is there any good rich text editor that support text completion function like ( like code IDE 's )

View 1 Replies

Flex :: Could Not Resolve <s:Method> To A Component Implementation

Nov 4, 2009

How do I do this in Flex 4?

<mx:RemoteObject id="srv" destination="product" channelSet="{channelSet}"
fault="faultHandler(event)">
<mx:method name="getProducts" result="getProducts_resultHandler(event)"/>
</mx:RemoteObject>

I got

Could not resolve <s:Method> to a component implementation.

When trying to do this

<s:RemoteObject id="roMajor"
destination="MajorSrv"
fault="Alert.show('Remote Object Error')" >
<s:Method name="AddMajor" result="roMajorResult(event)"/>
</s:RemoteObject>

View 1 Replies

Flex :: Zend AMF Implementation And AMF Protocol Security?

Jan 15, 2010

I have a Flex frontend connecting via RemoteObject to Zend Framework's Zend Amf. This is my only means to transport data between client layer (Flex) and the application and persistence layers (LAMP with Zend Framework).Some ways I can address security are as follows:

I can address TLS by using mx.messaging.channels.SecureAMFChannel in my services-config.xml file and ensuring Flash player is loaded into a HTTPS wrapper and is in fact using HTTPS since the AMF protocol is layered on top of HTTP RemoteObject has a setCredentials method with which I can pass AMF authentication headers to protect user related data. Assuming TLS was actually secure I can expose methods on the endpoint after authenticating the User.I can protect against cross-site scripting and other FLASH vulnerabilities with a properly set up crossdomain.xml how to I protect my endpoint against another AMF consumer? For instance, if there were another AMF consumer (not Flash so not bound by crossdomain.xml and Flash sandbox security) other than my Flex client that knew my endpoint, what would stop it from using methods that the endpoint exposes?

As far as I know I essentially need a way to authenticate my Flex application against my Zend Amf endpoint. After AMF consumer authentication, I have some of the security mechanisms I mentioned above to protect certain pieces of data (like User authentication). I can not embed some sort of authentication mechanism into my Flex swf because the swf is vulnerable to decompilation (the swf can not be trusted). While sensitive data is protected via User authentication the unprotected data is hardly public but as far as I can tell is totally open for public consumption.

View 2 Replies

Flex :: Could Not Resolve <fx:Script> To A Component Implementation?

Mar 5, 2011

i created project with flexmojos maven archtype..i used flexmojos:flexbuilder and compile/run with FlashBuilder 4 everything is okay but when i try to compile project with flexmojos i got following error: ERROR] Z:....srcmainflexMain.mxml:[6,-1] Could not resolve < fx:Script > to a component implementation.INFO] BUILD FAILURE

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

[code].....

View 1 Replies

Flex :: Implementation Of Value Object Design Pattern?

Jun 20, 2011

I am just looking design patterns used in Flex. Any value object design pattern and how is it implemented in Flex.

View 3 Replies

Flex :: Component Implementation With Custom CalloutButton

Jan 24, 2012

I've got a custom CalloutButton component in a package called uiComponents. This custom CallOutButton is needed because I need some more properties in it. This CalloutButton gets added to my MXML like usual;

<uiComponents:MyCustomCalloutButton someproperties here >
</uiComponents:My...>

Now, the enclosed s:calloutContent gets a compilation error, the (almost standard) could not resolve... Naturally, the namespace has been imported.

View 1 Replies

Flex :: DataGrid Implementation Which Has Features Similar To XtraGrid?

Apr 12, 2010

I am looking for a Flex datagrid component that has features like grouping, sorting, master/detail display, etc. I am having an application in C# that uses XtraGrid suite to achieve the required datagrid features. I am planning to migrate this application to Flex. If there is no flex component readily available with XtraGrid features, then I have to create one on my own

View 1 Replies

Flex :: Mxml - Error: Could Not Resolve To A Component Implementation

Jul 3, 2010

I am trying to create a menu bar with the following items: File, Database, Navigate, Window. However, I am getting an error which I do not understand: Could not resolve <mx:XMLList> to a component implementation. Can anyone explain the error to me? My code is as follows:

<mx:XMLList id="topLevelMenu">
<menuitem label="File" />
<menuitem label="Database"/>

[Code].....

View 1 Replies

Php :: Best Service/connection Combo For Flex/Server Implementation?

Nov 29, 2010

I'm starting a Flex app on a pretty big reporting engine and want to know how best to connect to a Postgres Database. I'd like to create a REST API architecture so I can use the service for more than just the Flex app(mobile possibly).These are my options I've found:

Datatype: either XML, JSON or AMF

Flex Service: HTTPService or WebService

Server(using PHP): ZendAMF, custom json_encode implementation, Zend_Rest_Server

I've got my views all mapped out, and the api functions designed. Basically what I need is advice on which Flex / back-end service combo to provide.

View 2 Replies

Flex :: Flexbuilder Spark Component Implementation Error

May 27, 2011

I am having this error when I try to paste in code of a spark component. The component is a DataGrid and it needs to be a spark and not a mx.[code]The Error:Could not resolve <s:DataGrid> to a component implementation.How can I resolve this error. I need to make my DataGrid into a Spark Component.

View 1 Replies

Flex :: Injecting A Specific Model Implementation On The Fly [Robotlegs]?

Jul 25, 2011

Is model injection on the fly possible? In other words,if I ask for a model of the type IPhotoModel, I should get one of its implementations based on the current state of the view. If I am looking at a UserPage,I should get a user-specific implementation of that model.I am looking at a LocationPage,I should get a location-specific implementation.Currently, the only way that I see is introducing a command that specifies the model mapping, with a concrete one based on the current view state ...

injector.mapValue(IPhotoViewModel, injector.getInstance(UserPhotoViewModel)) or
injector.mapValue(IPhotoViewModel, injector.getInstance(LocationPhotoViewModel))

is this the best way possible? I do not really want to introduce much coupling logic outside of the context, but ...

View 1 Replies

Flex :: Flash Builder 4.5: Could Not Resolve X To A Component Implementation?

Aug 2, 2011

I just upgraded out Flex project to use SDK version 4.5.1.21328 and the Flash Builder to version 4.5

All of the sudden, I'm getting several red tags on the Flash Builder: "could not resolve s:State/fx:Script/whatever to a component implementation"

However, the project builds fine with Maven, and seems to work well too.

Does anyone have any information on how to remove these "problems"?

View 3 Replies

Flex :: Error: Could Not Resolve <s:SWFLoader> To A Component Implementation

Jan 9, 2012

I'm currently converting Flex project currently build by Ant to a project built by Maven.I receive the following error:

Could not resolve <s:SWFLoader> to a component implementation.

In

<s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">

Seems that there is unresolved dependency. These are my dependencies in the pom.xml

<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>

[code]....

What I must add in the pom.xml file?EDIT: Following does not seems to work, the error stays the same

<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>spark</artifactId>
<version>4.5.0.19786</version>
<type>swc</type>
</dependency>

View 1 Replies

Flex :: Preferred Socket Policy File Server Implementation?

Jan 22, 2010

I'm trying to get my Flash application to connect via socket to my server, so I need to set up a socket policy file server. It seems like there are various roll-your-own implementations floating around out there, but is there any kind of standard or best practice with what to use?

As an aside, it seems strange that Adobe imposes this restriction but doesn't make something readily available to support it.

View 2 Replies

Flex :: Factory Method Implementation To Attain Proper Object

Apr 9, 2011

I've got this issue implementing the Factory method. Following is the snippet of the the main chart class which calls ChartFactory's method to attain the proper object. I Type Cast chartobject so as to be able to call the Show method; I am apprehensive about that as well.

container = new VBox();
container.percentWidth = 100;
container.percentHeight = 100;
super.media.addChild(container);
chartObject = new ChartBase();
[Code] .....

View 3 Replies

Flex :: Gzip - Flex - HTTPService And Gzipped Responses?

Jul 5, 2010

I have a Flex client making RESTful calls to a webservice using HTTPService. The server is returning JSON responses, which we would like to compress. Can Flex using HTTPService handle gzip-encoded responses? If so, what steps are required to make it work (e.g., which headers to set, how to decompress, etc.)? If not, can you suggest a simple alternative?

View 1 Replies

Flex :: Re-using HTTPService Object

Oct 22, 2009

I'm trying to reuse the HTTPService object in a flex app but I'm running into a problem. In the handler for ResultEvent.RESULT I'm removing the listener, but it isn't removed. I've have to catch the asyncToken from send() and attach a new property so I know what it's supposed to do in the handler.URL...You can right-click and view source.Has anyone else run into an issue where listeners aren't removed? Should HTTPService not be reused?

View 3 Replies

Flex :: HTTPService Progressbar?

Nov 10, 2009

How can I set a progress bar that may start when an HTTPService is sent and stop when the HTTPService ends?I followed code given here but encountered following error Type was not found or was not acompile-time constant: ProgressWin.Don't know whether ProgressWin.mxml is a component or module or what. I just created a new ProgressWin.mxml file and pasted the code you posted but following error popped out before

View 1 Replies

Flex :: XML HTTPService Result And For Each

Mar 3, 2010

XML is cool in flex, but I have an annoying problem to solve, caused by what I can imagine is a feature. You see, when you have just one tag of something, it creates an object which is not an array. But when finds more than one, it puts it on an array structure.[code]I could check the format of resObj.specifictag (to check if it is has an array) and then duplicate the code (for each case). But -even if it's calling a function- I don't think it is an elegant solution.Well, I hope someone has a good idea on this matter. (I know from experience that SO has much more C++ experts than flex, but well...)The perfect thing would be that HTTPrequest handled every tag in a consistent way (using always arrays... though I'm guessing that that would also have its drawbacks).

View 3 Replies

Flex :: Air - HTTPService Times Out Anyway?

Jan 11, 2012

I'm getting an error after 30 seconds of execution of this service

<s:HTTPService id="svcList" url="http://localhost/index.php" method="GET" result="svcList_resultHandler(event)" fault="svcList_faultHandler(event)" requestTimeout="300">
<s:request xmlns="">
<mod>module</mod>

[Code]...

View 2 Replies

Flex :: Two Different HTTPService Classes?

Jun 2, 2009

Why are there two different HTTPService classes in Flex?thisandthisAnd the second one inherits the first one.Why couldn't there be a single class combining the two?

View 4 Replies

HTTPService In Flex With Multiconnections

Jun 10, 2009

I am using an HTTPService in my Flex application. I want to load several xml files, each about 1mb in size. Sometimes I need to stop loading previous xml file and start loading a new one. If I use HTTPService.cancel(); or HTTPService.disconnect() , it increase the time to get the answer from the server.Is there a quick way to stop the previous loading in HTTPService and start new one?

View 1 Replies

Flex :: OnResult HTTPService?

Aug 28, 2004

I have a HTTPService:

<mx:HTTPService id="scoreService" url="http://" method="POST" result="onResult(event)">
<s:request xmlns="">
<name>{..}</name>

[code].....

View 3 Replies

ActionScript 3.0 :: Dynamic URL In Httpservice (flex 3/AIR)?

Mar 2, 2010

I am trying to create an desktop app where the user selects an XML doc via a FileSystemTree. Then at the click of a button, that xml doc selected will be loaded in as the XML doc of choice. So far I have it working only if i hardcode in the path, but i need to make it so that the user can select the file dynamically.

Code:

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

[code]......

View 4 Replies

Flex :: Populating ArrayCollection With HTTPService?

Jul 14, 2009

I am creating a RSS Feed application based on a data, and I have the following:

I have an ArrayCollection that is pre-populated with data. I am sorting through the ArrayCollection, get 1 piece of data (condition), and need to connect to an RSS feed which returns me the title, and I set my ArrayCollection in correspondence to condition -> title.

public function updateArrayList(list:ArrayCollection):ArrayCollection {
trace(list);
for(var i:int = 0; i < list.length; i++) {
//Alert.show(list.getItemAt(i).condition);

[Code]....

View 1 Replies

Flex :: Flex3 - ConcurrencyError Using HTTPService

Aug 21, 2009

I'm getting occasional ConcurrencyError faults when using HTTPService in Flex 3. I have four HTTPService objects, all configured with concurrency=single. I'm not sure though how to continue to diagnose, as I don't see in the FaultEvent what service object caused the issue, and I can't easily reproduce it on-demand.

One feature of my app is that I am also using a URLRequest to load a sound shortly after receiving a result from one of the HTTPService calls. Could this be related to the concurrency error?

The fault looks like this:

[FaultEvent fault=[RPC Fault faultString="Attempt to invoke while another call is pending. Either change concurrency options or avoid multiple calls." faultCode="ConcurrencyError" faultDetail="null"] messageId=null type="fault" bubbles=false cancelable=true eventPhase=2]

View 1 Replies

Flex :: Populate ArrayCollection With HTTPService?

Nov 11, 2009

I want to load data from a external XML file, using a HTTPService, and on the ResultEvent of the same HTTPService i want him to populate a ArrayCollection with the data from the XML.

I think a ArrayCollection is the ideal for this XML.

XML

<?xml version="1.0" encoding="utf-8"?>
<PhotoGalleryData>
<Photo>

[Code].....

View 2 Replies

Flex :: Multiple HTTPService Requests With AIR

Nov 17, 2009

I am developing an AIR application with Flex Builder that requires me to make two HTTPService requests at the same time. They both use different instances of the HTTPService AS3 class. Both services are calling a RESTful API which is currently running on my localhost (XAMPP) and takes a few seconds to respond (much quicker on live server). The problem is that most of the time one of the calls fails, however occasionally they do both work. Its also random as to which call will fail. Both calls use code something like this. This code is basically repeated in two classes.

[Code]....

View 3 Replies

Httpservice - Authenticate To Freshbooks API Using Flex?

Nov 23, 2009

I am new to Flex (FLex Builder 3.0), and I'm creating a simple application that would basically just authenticate to the Freshbooks API (www.freshbooks.com) via HTTPS. without sending anything else.

[Code]...

How do I code it such that the username (the authentication token given by freshbooks) would be sent to the server from within Flex itself and not the browser? My expected outcome is that there would be no pop-ups from the browser and whatever the freshbooks server returned would be displayed in the text area (txtArea1).

Note: If I input the authentication token to the browser pop-up, the application is able to correctly display the output to the text area.

View 2 Replies







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