httpservice

Automatically call httpservice.send

I have an application that displays the data from 3 xml files (auto generated from SQL table) using httpservices to get them. The first xml file is small and contains around 30 items, the second and thrid contain around 200-300 items each. The first dataset loads quickly and is invoked on creationComplete. The second and third are called...

HTTPService response being mangled

I am seeing unexpected behavior on a HTTPService response, and was looking for an explanation. I am sending a HTTPService message to get a data set using the default result type. The data comes back and gets put into an ArrayCollection. On of the elements is called name which can contain any alpha-numeric data. Then the field contain...

HTTPService is very slow by sending 10'000 lines of XML to the server...

Hi everybody, I have a flex app which allows user to create some content. this content will then be sent via xml back to the server: private function saveBackXMLToServer():void { var params:Object = {}; params["xml_file"] = XML_content(); http_Service.send(params); } My problem is, that the...

AS3 httpservice - pass arguments to event handlers by reference

I have this code: var service:HTTPService = new HTTPService(); if (search.Location && search.Location.length > 0 && chkLocalSearch.selected) { service.url = 'http://ajax.googleapis.com/ajax/services/search/local'; service.request.q = search.Keyword; service.request.near = search.Location; } else { service.url = 'http://a...

[FLEX] Images won't dynamically refresh

I am writing a Flex application to receive xml from an httpservice. That works because I can populate a datagrid with the information. The xml sends image pathnames. A combobox sends a new HttpService call onChange. This repopulates the datagrid and puts new images in the folder that flex is accessing. I want to dynamically change the i...

Please help me work out this error, regarding the use of a HTTPService to connect Flex4 & Ruby on Rails

I have a HTTPService in Flash Builder 4, that is defined as follows: <s:HTTPService id="getUserDetails" url="http://localhost:3000/users/getDetails" method="GET"/> It gets called as follows: getUserDetails.send({'user[username]': calleeInput.text}); Here is a screenshot of the network monitor, showing that the parameter is being se...

Can't read output of httpservice

I have an HTTPservice id="myhttp" url="site.com/script.php" method="POST" resultFormat="xml" The script it uses returns $output = '<worked>' . $worked . '</worked>'; echo $output; Problem is when I try to read worked, it tells me the variable worked is not there event.result.worked myhttp.lastResult.worked The only thing that ...

HTTPService resultFormat, how to choose

HTTPService has a property resultFormat which can be set to any of the following: array e4x flashvars object text xml I looked at the documentation to understand the difference, but still couldn't understand when to use each. I'm looking for the lightest weight of all of them. P.S. I'm consuming output from my own server, so can chang...

PHP script works fine until I send it a parameter from HTTPService in Flash Builder 4?

I'm using a PHP script to read an RSS feed in my Flex 4 app. The script works when I put the URL of the feed in the actual script, but I can't get it to work when I try to send the URL as a parameter from a HTTPService in Flex. Can anyone tell me what I'm doing wrong? Here is the HTTPService from Flex 4 that I'm using: <mx:HTTPService ...

doesn't parse xml when it's a single node

my script.php returns this XML <all> <item> <field1>value1</field1> <field2>value2</field2> </item> <item> <field1>value1</field1> <field2>value2</field2> </item> </all> The HTTPService uses the default resultFormat="object" but I don't declare it since it's the default. Then I bind it to a List dataPro...

Performance problems in apache server with php

Hi all. I think I have a performance problem in my apache server. I have apache server on solaris 10 with php and some flash client applications. The clients get data from server in XML formation with HTTPService requests. sometimes the data doesn't arrive and sometimes it does. maybe performance in the apache server or in the php (maybe...

Flex Client application - HTTPRequest problem in the initialize function.

Hello all. I have a serious problem in my flex client applications. I have an apache server with php web services. the flex client makes an httpservice requests. I noticed that the httpservice requests that runs from the creationComplete event of the application does not always get data from the server. but HTTPservice requests called fr...

Flex HTTPService security error using Safari

I'm using the HTTPService object in actionscript to send some data to a php file on another server which then inserts the data to a database. I set up the crossdomain.xml file in the root of the directory that contains the php file to get around any security issues. Everything works fine on Firfox 3.5 (on mac and pc) and on IE 7 & 8....

Problem storing an RSS feed in Flex 4

Hey guys, I'm having some trouble storing the results of an RSS feed in my Flex 4 app. Here is the variables view, showing the result of the HTTPService which gets the feed: And here is the code I use to store the result: public var rssXML:XML; rssXML = event.result as XML; But after this code is run, rssXML is still null. What am...

Send HTTPService Request in flex 3 with '-' in the URl Paramerters to get Google Feeds

I am developing application in flex 3 which interacts with the Google feeds to produce my results. The URL to which i want to send request is something like this http://books.google.com/books/feeds/volumes?q=football+-soccer&amp;start-index=11&amp;max-results=10 Now i can send and receive results with q parameter, but in the next t...

Safari sometimes finishes the HTPPService Post request

Hey all, I've been following this tutorial to make a snapshot app using Flash Builder 4: http://active.tutsplus.com/tutorials/actionscript/create-a-snappy-snapshot-app-with-flash-builder-4/ My code works on all browsers, except for Safari (4 and 5). I think that it, depending on the picture I take, doesn't finish the request. I've tr...

HTTPService/ResultEvent with Flex 3.2 versus Flex >= 3.5

Hey everybody, through a design decission or what-so-ever Adobe changed the content of the ResultEvent fired by a HTTPService Object. Take a look at following example: var httpService:HTTPService = myHTTPServices.getResults(); httpService.addEventListener(ResultEvent.RESULT,resultHandler); httpService.send(); /** * Handels the login...

How should I format an HTTPService result in Flex so that it is accessible for a pie chart?

I feel like this should be simple, however everywhere I look online someone does something different. I am doing a small charting application to track download statistics, and want to put the data into a pie chart. I am new to Flex, so if my code is horrible I apologize. <s:HTTPService id="service" url="admin/stats/totalstats.php" ...

BlazeDs with default destination set to DefaultHTTPS throws Premature End of File Error

Hi all, I'm working on a Flex project that uses the proxy-config file in Blaze in order to get puts and deletes to work for our HTTPService calls. All the calls use https so I have the destination set up to be DefaultHTTPS. When I call any of the HTTPService from my Flex application I get a "Premature End Of File" error. I've calle...

Passing parameters to .NET ClickOnce-deployed application from Flex without URL being visible

Hi folks, I'm passing parameters to a .NET ClickOnce-deployed application via the URL from a Flex application. This is done by simply redirecting the user to http://myDomain/myApplication.application?a=1. I would like the URL to not be visible in the browser that links to the application. From what I understand, ClickOnce does not wor...