*
Hi i'm using this code to load a xml file, try this..

var* loader:URLLoader = *new* URLLoader();
**

*import* flash.net.URLLoader;

*import** flash.net.URLRequest;*

*import flash.net.URLRequestMethod;
*
*private* *function* loadMetaData():*void**{*

*var* request:URLRequest = *new* URLRequest(*"tree.xml"*);

loader.load(request);
loader.addEventListener(Event.COMPLETE, onMataDataLoadComplete);
}
private function onMataDataLoadComplete():void
{//ur action
}

On Wed, Dec 9, 2009 at 2:05 AM, Kiran Kumar Vasireddy
<[email protected]>wrote:

> Dear All,
>
> I have a 2 MB XML file locally and if I try to import that file using
>
> <mx:XML id="testId" source="StudentData.xml"/>
>
> It is loading all the data at compile time  ( In fact flex builder is
> throwing memory exception)
>
> I loaded the same file using HTTPService and It is taking significant
> amount of time to load the data in production environment .
>
> Could some body suggest a better way to load this? ( I don't have an option
> of loading this to database and reading it from there)
>
> Regards
> Kiran
>
>  --
> 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]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>



-- 
--
Regards,
Manikandan.S

--

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