If you are currently binding to the dataGrid's dataProvider property,
you could intead use a result handler function.

<mx:HTTPService result="onResult(event)"... resultFormat="e4x" />

import mx.rpc.events.ResultEvent;
Private function onResult(oEvent:ResultEvent):void
{
  var xmlResult:XML = XML(oEvent.result);
  //traverse the xml as needed to perform desired logic
  myDataGrid.dataProvider = xmlResult;  //same reference as you use in
the binding expression
}

Tracy

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Thursday, June 22, 2006 10:33 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: working with XML data

On Thursday 22 June 2006 12:29, arnold_charming wrote:
> 1. How to transfer XML I got from HTTPService to AS so I can check if
> he/she is allowed to enter the application?

If you are displaying it in a datagrid, it must all ready be in AS.
You want to read up on E4X etc. from the manual.

> 2. What is the best way/method to redirect a user to a different
> screen? Is it wise just to turn components from 'visible=true' to
> 'visible=false' or should I destroy the component with removeChild()?

Look at changing the selectedIndex of a viewstack.

> stupid

We're all new to it :-)
-- 
Tom Chiverton

****************************************************

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at St James's Court Brown Street Manchester M2 2JF.  A list
of members is available for inspection at the registered office. Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents.  If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
8008.

For more information about Halliwells LLP visit www.halliwells.com.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer
of the Year at the 2005 Growth Company Awards




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 






------------------------ Yahoo! Groups Sponsor --------------------~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to