PDA

View Full Version : HTTPService using AS


josnajoseph2007
06-16-2008, 10:20 AM
HTTPService using AS.

<mx:HTTPService
id="songsService"
url="xml/salesdata.xml"
resultFormat="e4x"
result="resultHandler(event);"
fault="faultHandler(event);" />

This is a mxml code . I want to preform the same using ActionScript3.0.But I am not able to do the
result and fault property.....Please help.........How can I do this?

amarghosh
06-16-2008, 10:53 AM
HTTPService using AS.

<mx:HTTPService
id="songsService"
url="xml/salesdata.xml"
resultFormat="e4x"
result="resultHandler(event);"
fault="faultHandler(event);" />

This is a mxml code . I want to preform the same using ActionScript3.0.But I am not able to do the
result and fault property.....Please help.........How can I do this?
import mx.rpc.events.*;
var songsService:HTTPservice = new HTTPServide();
songsService.addEventListener(FaultEvent.FAULT, faultHandler);
songsService.addEventListener(ResultEvent.RESULT, resultHandler);

i saw this post before your PM but there was no question.
its not a good practice to PM people to get your answers.