Re: [flexcoders] Re: Httpservices as3 class

2010-03-10 Thread Tim Romano
Do I infer correctly that your HTTPService is working properly but that 
you're having problems when binding the results to the GUI?

You can see the data that has been returned?

Are you using ResultEvent or AsyncResponder? If you're using 
AsyncResponder with the public release of the beta, note below:


// these handlers stubs are necessary because of Adobe bug 
http://bugs.adobe.com/jira/browse/SDK-22883

protected function onFaultEventHandler(e:FaultEvent): void{};
protected function onResultEventHandler(e:ResultEvent):void {};


 overrideprotected  function  onResult(e:ResultEvent , 
token:Object=null):void {


var ans: String = decodeURI(e.result.toString());// 
UTF-8 to string


// I am using JSON, not XML, and here the results are 
converted to an ArrayCollection
// and then an event is dispatched which the GUI is 
listening for, passing the ArrayCollection


}

}


Regards
Tim Romano


On 3/9/2010 10:00 AM, valdhor wrote:



 Does anybody have a httpservice class, implemented in as3, for flahs 
builder

 4?
 I am trying to create an application in as3, connecting and returnig 
dynamic

 data from php...
 So I need to have my hhtpservice created at runtime and calling my data
 functions dynamically...
 snip
 I tried to created one, but I have some problems when loading and 
setting

 data to my dataproviders...






[flexcoders] Re: Httpservices as3 class

2010-03-09 Thread valdhor
Have you tried using Remote Objects? With something like WebORB 
(http://www.themidnightcoders.com/)

--- In flexcoders@yahoogroups.com, Jose adriano Alves alves.jadri...@... 
wrote:

 Hi
 
 Does anybody have a httpservice class, implemented in as3, for flahs builder
 4?
 I am trying to create an application in as3, connecting and returnig dynamic
 data from php...
 So I need to have my hhtpservice created at runtime and calling my data
 functions dynamically...
 It's usefull when we configure call in a database...
 So, imagine you have table to configure your querries and grid
 definitions... and you can create it run-time...
 It´s a lot of productivity for developers...
 I tried to created one, but I have some problems when loading and setting
 data to my dataproviders...
 
 So, anyone have a class or some ideia on how to build a class to better
 handle or mantain dynamic data ?
 
 Thanks in advance.
 
 -- 
 
 
 Att.
 José Adriano Alves
 Analista de Sistemas - Móveis Gazin.
 Cel..:  +55 44 8802 3994
 Fone: + 55 44 3663 8000 - 2319
 Mail: alves.jadri...@...
 MSN: jose.adri...@...
 WEB-SITE: http://www.gazin.com.br/institucional
 
 
 Este e-mail, seu conteúdo e seus anexos estão sujeitos à privilégio de
 comunicação podendo este documento incluir informação confidencial e de
 propriedade restrita da GAZIN e apenas pode ser lido por aqueles a qual o
 mesmo tenha sido endereçado. Se você recebeu essa mensagem de e-mail
 indevidamente, por favor avise-nos imediatamente. Quaisquer dados, opiniões
 ou informações expressadas neste e-mail pertencem ao seu remetente e não
 necessariamente coincidem com aquelas da GAZIN, são de exclusiva
 responsabilidade do signatário. Este documento não pode ser reproduzido,
 copiado, distribuído, publicado ou modificado por terceiros, sem a prévia
 autorização por escrito da GAZIN.
 
 
 Antes de imprimir pense em seu compromisso com o Meio Ambiente