PXServiceEvent

3 views
Skip to first unread message

Dante!

unread,
Apr 19, 2011, 11:48:55 AM4/19/11
to pixlib
j'ai réussi en faisant :
var res:URLVariables = new URLVariables( e.target.result);

Dante!

unread,
Apr 19, 2011, 11:46:05 AM4/19/11
to pixlib
Salut,

J'ai un souci avec le resultat d'un PXHTTPService :
_onResult(e : PXServiceEvent) le serveur renvoit msg=-1
trace(e.service.result); // msg=-1

Est-ce possible de convertir cette chaine en object (key/value) ?

Habituellement, je peux convertir ce résultat en faisant :
var reponse:URLVariables = new
URLVariables( URLLoader(e.target).data );

Avec PixLib :
var reponse:URLVariables = new URLVariables( e.service.result );
Error: Implicit coercion of a value with static type Object to a
possibly unrelated type String.

Any idea?
Merci
Reply all
Reply to author
Forward
0 new messages