ActionScript 3.0 :: HttpService In Flex Configure The Data As An Object?

Dec 22, 2009

I know that httpService in Flex can configure the data as an object, but I want to do the same thing, but with URLLoader. Is that possible and how would I do it?

View 2 Replies


Similar Posts:


Flex :: Get Data From Dynamic HTTPService Asynchronous To Populate An Advanced Data Grid

Dec 28, 2009

I have to populate an Advanced Data Grid which have the following fields: Continent->State->Society-->Actual Value-->Estimate Value I want to simulate a financial market so i have to change some of the values by asynchronous request from an HTTPService; If necessary i'll post the .as file, but it is generated automatically by Flex Builder.

Here's the code of the client side Flex/Air application:

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

[Code].....

View 2 Replies

Xml :: (Flex 3) Get Data From A File Using HTTPservice And Save The Return Data As An Array?

Oct 15, 2009

I have an xml file (externally saved) that is similar to the following:

[root]
[main]
[title]...[/title]

[Code]....

What I like to do is to get what's in [title] tag using HTTPservice, import it into Flex, and save it as array objects, and do the same thing for [content]. This way I can later refer the array object saying title[0] or content[2].

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 :: Send Some Data To PHP Using HTTPService POST?

Jun 2, 2010

I'm trying to send some data to PHP using HTTPService POST but for some reason it's not working. The same example works with GET but not with POST:

private function start():void{
var param:Object = {};
param.date = "2010-10-10";

[code]....

But when I change the method in HTTPService to GET and in PHP I get the result as expected - PHP sends back the date:

2010-10-10

View 1 Replies

Flex - HTTPService Not Retrieving Current Data?

Oct 13, 2010

I'm using mx.rpc.http.HTTPService to retrieve data from a web service. On the initial call to "loadWsData", HTTPservice accurately retrieves all the data.

However, on any and all subsequent calls HTTPService does not accurately retrieve the data; rather it always retrieves the first data set. I've confirmed that the web service is providing accurate data, both from web browsers and a ruby ws client script.

[Code]...

View 1 Replies

Actionscript 3 :: Flex Waiting For Httpservice To Return Data

Dec 21, 2011

I'm getting really annoyed by Flex. Is there a way to make it wait for an httpservice to get its data without having to use a timer?

At the moment my code looks like this:

protected function loginUser(event:MouseEvent):void
{
if(txtEmail.text == "" || txtPassword.text == "")
{

[Code].....

When I do user.login(), it sends a request with a HTTPservice from my external AS class. In the result event handler for this httpservice, I set a public variable to true or false, depending on whether the user's credentials are correctly in the DB.

I then use a getter to get that boolean value. However, without the timer, it always returns false because my code is faster than the event result handler. If that makes sense.

So I have to use a timer to stall my application for one second.. But seriously, that doesn't make sense to me. There has to be a better way, no?

View 3 Replies

Send Xml Data To The Server Using HttpService Request Thr POST In Flex?

Dec 12, 2009

send xml data to the server using HttpService request thr POST in Flex?

View 1 Replies

Flex :: Load Data By HTTPService From Url Into Text Area As A String?

Dec 23, 2009

I want to use an HTTPService to load some data (number of columns and number of rows) which change randomly by a certain frequency I get the string like freq#ncols#nrows#value. How can i display for example: 1000#21#13#2391 that means: in 21 col, 13 row i have the value of 2391 which changes every 1 second.

View 1 Replies

Actionscript 3 :: Trace Complete URL After Parameters As Object Are Added To Flex Httpservice?

Dec 11, 2010

I want to trace how URL looks when it is sent like in following example when using params:

[Code]....

How to trace complete URL with added parameters that is sent? Also, I used Charles debug proxy, but could not get which URL was sent.

View 1 Replies

Php :: Use HTTPService Rather Than URLRequest To Send Data. Content Type Is Messing With The Data?

Jul 28, 2011

I need to send a byte array of data (its an image source) along with a bunch of other vars to a service.If I send the byte array using something like the following

var request:URLRequest = new URLRequest ( 'http://www.mydomain.com/upload.php' );
var loader: URLLoader = new URLLoader();
request.contentType = 'application/octet-stream';

[code].....

View 1 Replies

Xml :: Flex - HTTPService Event Listener So It Triggers Something When ".send" Method Gets Data From XML?

Sep 23, 2009

I've doing a bit of "training" at working with Flex and Remote Data from XML files.This is my HTTPService

<mx:HTTPService id="loginData" url="com-handler/basic.xml" showBusyCursor="true">
</mx:HTTPService>

I have a button and when its clicked its call a function, that calls loginData.send and does a little IF condition, that IF condition relies on the data returned by loginData.The condition doesn't work because its called right next to the loginData.send, and .send method still didn't returned the values from the XML file. But if you click it a second time a second after the first click the IF condition works.So to deal with i wanted to do a eventListener so that when loginData.send returned the data from the XML it fires up the IF condition. But i don't know how to do it.

View 1 Replies

ActionScript 3.0 :: Handle Result Of XML Data Through HTTPService

Oct 11, 2011

My xml data [URL]. I need to load this xml data through httpservice and in the handle result function I need to access the individual data like complaints.complaint.title using for loop function. I had tried this I couldn't get the result as I need

<s:HTTPService id="Complaints" url="[URL]" result="Complaints_resultHandler(event)" fault="Complaints_faultHandler(event)" >
</s:HTTPService> <fx:Script> <![CDATA[
protected function Complaints_resultHandler(event:ResultEvent):void {
[Code] .....
I need to get the data like title, complainturl, latitude, longtitude etc.

View 10 Replies

ActionScript 3.0 :: HTTPService Does Not Accurately Retrieves All Data

Oct 19, 2010

I'm using mx.rpc.http.HTTPService to retrieve data from a web service. On the initial call to "loadWsData", HTTPService accurately retrieves all the data. However, on any and all subsequent calls HTTPService does not accurately retrieve the data; rather it some how always retrieves the first data set. I've confirmed that the web service is providing accurate data, both from web browsers and a ruby ws client script. If I terminate the flex app and restart it, it will retrieve the accurate data.

ActionScript Code:
private function loadWsData():void{
var webService:HTTPService = new HTTPService();
webService.url = serviceUrl;
webService.method = "GET"; 
webService.addEventListener(ResultEvent.RESULT, function(event:ResultEvent):void{
var rawData:String = String(event.result);
var user:Object = JSON.decode(rawData).user;});
webService.send();}

View 1 Replies

Ruby On Rails - Send Form Data To HTTPService?

Aug 5, 2009

The form is in a component lauched as a popUp, form data consists in:

login:String
password:String

I thought of a few different ways, but I don't like them..in the popUp, send button triggers a function that gets the form values and stores them in an Object, then saves the Object in the model, then dispatches a CreateSessionEvent. The CreateSessionCommand execute method is called, and it send the HTTPService passing the object from the model. (but then what if the model somehow doesn't get update and I send the same request twice?) I could try to get the form data from the command execute method itself.. how can I access them though, since it is a popUp (created with PopUpManager.createPopUp(this, LoginDialog),true))

I'd love to see an example flex+rail with restful xml application by the way, know of any?

View 1 Replies

Retrieve Data Sent By Flash 4 HttpService, In The Servlet Side?

Nov 28, 2011

I'm using Flash 4.0 as UI tier, and I'm trying to send data to the server side, which runs on Tomcat. I wrote a servlet that the calls are directed to it. But I do not understand how can I see the data that was sent from the flash tier. to clarify, hereby example:

Flash tier:

<fx:Declarations>
<s:HTTPService
id="setCustomerDataService"

[Code]....

how can I retrieve "data" from Flash, in my Servlet?

View 1 Replies

Flex :: Externally Configure Logging In App?

Dec 24, 2009

I was wondering what people are using for externally configuring logging in a Flex app. Are there any ready baked solutions out there, similar to Log4J's configuration via properties files for instance?

View 1 Replies

Flex :: Configure AMF Serialization Warnings?

Apr 9, 2010

I have been trying to test my application to make sure that all the important classes can serialize/reload themselves properly (especially those which implement IExternalizable):

[Test]
public function testMyObjectSerialization():void {
var myobj:MyObject = new MyObject();[code]....

And I would like to be warned when I try to serialize a strongly-typed object which does not have a [RemoteClass] set (because that almost certainly represents a bug in my code).So, is there any way to configure the AMF serializer to give warnings?Also, it seems like this might be possible using services-config.xml... But the documentation seems to imply that services-config is channel-level, and I'd really like it if my unit tests could run without talking to the server (and I'm not using LCDS, so a bunch of the services-config wouldn't apply to me anyway).

View 1 Replies

Flex :: How To Configure CrossDomain XML In Tipfy

Feb 16, 2011

I would like to know how to configure the flex crossdomain.xml in tipfy with the Google app engine skd. Tipfy is a framework using in Gae. I would like to know: where I can place the crossdomain.xml, in the root or other place, do I need script to redirect to the xml, what files that I need to modify, eg. app.yaml. Any other things or file I need to modify or create to make it work.

View 2 Replies

Flex :: Configure Port For BlazeDS?

Dec 12, 2011

I've downloaded BlazeDS 4 and installed in on my Tomcat server. How can I make it to listen to port distinct from 8080? I change port in channels configuration in services-config.xml, and my client application sends requests for new port, but they failHow can I make server listen to custom port?

View 2 Replies

Properties :: Flash HTTPService : Reading The Connection Data From Property File?

Dec 19, 2011

i have my HTTPService, it looks like this :

<s:HTTPService
id="setCustomerInstalledPackageService"
url="http://localhost:8090/myapp/servletName"

[code]......

View 1 Replies

Flex :: How To Configure BlazeDS To Work Over HTTPS

Oct 5, 2011

I'm trying to configure BlazeDS to work over HTTPS. We've got Apache in the front that is set to redirect all http traffic to https. Apache then communicates with the application (a JBoss AS 5.1) via http. I've tried a lot of configurations for BlazeDS, and finally the following solution worked for me:

services-config.xml
<services-config><services>
<service-include file-path="remoting-config.xml" />
<service-include file-path="messaging-config.xml" />
</services><channels>
[Code] .....

The thing here is that in my-secure-amf channel, I use mx.messaging.channels.SecureAMFChannel in the channel-definition, and flex.messaging.endpoints.AMFEndpoint (not flex.messaging.endpoints.SecureAMFEndpoint). This has probably something with the Apache-Jboss setup to do, but I haven't found anything that explains what the different tags actually define. To get some sense in all of this, what happens when defining channels and endpoint, using different urls and classes?

View 1 Replies

Flex :: Configure Eclipse To Run FlexUnit Tests Automatically?

Jun 8, 2009

I'd like to set up my projects in Eclipse to run FlexUnit tests everytime I save my work.

I found an example with JUnit here : [URL]

How would you do it? Is it possible to run FlexUnit tests without Flash Player?

View 3 Replies

ActionScript 3.0 ::configure Flex To Publish To Firefox Rather Than Internet Explorer?

Sep 1, 2009

just started out using flex (man it rocks compared to cs4! wish i had switched earlier).I have two questions that i can't seem to find the answers to

1) how do i configure flex to publish to firefox rather than internet explorer?

2) is it possible to publish to the standalone flash player without bothering with a browser ...as you can do in the Flash IDE ?

View 1 Replies

Flex :: Configure A Fallback Image That Will Be Shown When Link Is Broken?

Aug 11, 2010

I'm using flex 4.1 to write an application and I was wondering how can I configure that whenever I try to load an image and the link is broken it will show a different image that i have embedded into my application.

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







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