hey
this is my code jut take a look at it and do it is working for me

private function init():void
    {
        var request:URLRequest = new URLRequest("path/UrlPath.xml");

        var loader:URLLoader = new URLLoader();
        loader.addEventListener(Event.COMPLETE, completeHandler);
        try
        {
            loader.load(request);

        }
        catch (error:ArgumentError)
        {
            trace("An ArgumentError has occurred.");
        }
        catch (error:SecurityError)
        {
            trace("A SecurityError has occurred.");
        }
    }
    //Complete handler to handle path informations
    private function completeHandler(event:Event):void
    {
        var dataXML:XML = XML(event.target.data);
        s_path=dataXML.elements().children()+"Kpi.asmx?wsdl";
        callWS();

    }


-- 
Karthik.k
Mobile - +91-9894991640
http://karthikkprofile.blogspot.com/
On Mon, Feb 2, 2009 at 7:55 PM, HISSAM <[email protected]> wrote:

> your xml wont be in proper format
>
> On Mon, Feb 2, 2009 at 4:56 AM, Akhil Agrawal <[email protected]>wrote:
>
>>
>> <?xml version="1.0" encoding="utf-8"?>
>> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
>> layout="absolute">
>> <mx:Script>
>>        <![CDATA[
>>                import flash.events.Event;
>> import flash.net.URLLoader;
>> import flash.net.URLRequest;
>>
>> var externalXML:XML;
>> var loader:URLLoader = new URLLoader();
>> var request:URLRequest = new URLRequest("test.xml");
>> loader.load(request);
>> loader.addEventListener(Event.COMPLETE,onComplete);
>>
>>
>> function onComplete(event:Event):void
>> {
>>    var loader:URLLoader = event.target as URLLoader;
>>    if (loader != null)
>>    {
>>        externalXML = new XML(loader.data);
>>        trace(externalXML.toXMLString());
>>    }
>>    else
>>    {
>>        trace("loader is not a URLLoader!");
>>    }
>> }
>>        ]]>
>> </mx:Script>
>>
>>
>> </mx:Application>
>>
>>
>> when i run this code got error
>>
>> 1120: Access of undefined property loader.      runtimeparsing/src
>> runtimeparsing.mxml     line 12
>>
>> 1120: Access of undefined property onComplete.  runtimeparsing/src
>> runtimeparsing.mxml     line 13
>>
>> plz help me
>>
>> thanx
>>
>> regards
>> akhil agrawal
>>
>>
>>
>>
>
>
> --
> -----------------------------
> Regards,
>  HISSAM,
> ------------------------------
>
> >
>

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

Reply via email to