U dont start ur script with <mx:Script>

2009/7/10 cholid ridwan <choli...@gmail.com>

> hi all,can anyone know what the problem with this code?
> thanks
> cholid
> <mx:Application
>     ***
>     creationComplete="xmlHttpService.send();"
>     >
>     <mx:HTTPService
>         id="xmlHttpService"
>         url="http://localhost/switch.xml";
>         result="xmlResultSuccess(event)"
>     resultFormat="e4x"
>     fault="xmlResultFailure(event);"
>     />
>
> [Bindable]
>             private var xmldata:XML;
>
>
>             private function init():void {
>                   Security.loadPolicyFile("http://localhost/switch.xml";);
>
>                 xmlHttpService.send();
>                 initLogging();
>                  initData();
>                 var graph:Graph = new Graph("graph_id",false,xmldata);
>
>                 vgraph.graph = graph;
>             }
>
>             private function xmlResultSuccess( event:ResultEvent ):void
>                   {
>                 xmldata = event.result as XML;
>                 initData();
>             }
>
>             private function xmlResultFailure( event:FaultEvent ):void
>                   {
>                 Alert.show( event.fault.message, "Error loading XML" );
>             }
>
>             private function initData():void {
>
>
>                     vgraph.graph = new
> Graph("XMLAsDocsGraph",false,xmldata);
>
>             }
> >
>


-- 
Rodrigo Portillo - (55-81)8836.9100
http://www.portillodesigner.blogspot.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to