declare once variable say 'isLoaded' to check whether it is loaded. In the constructor initialize with false. once u got data i.e., in xml loaded function set true to isLoaded. while access this data via object check isLoaded variable.
On Sat, Feb 27, 2010 at 7:25 AM, Coco <[email protected]> wrote: > Folks, > > I have the data in the form of string or xml that is a result of an > event > > for example like the following > > private function xmlLoaded(e:Event):void > { > newXML = new XML(e.target.data); > } > > I have a class and call the loadXML function in the constructor > the loadXML has the eventlistener which points to the above > > how do i acess this data via object when i instantiate the new object > of the class. it always returns null > > any suggestions? > > Thanks > > -- > 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. > > -- Thanks & Regards, K. Krishna Chaitanya ARIJASOFT - HYD www.arijasoft.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 [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.

