Thanks for your help, that put me on the right track. -Cliff
On 7/21/05, JesterXL <[EMAIL PROTECTED]> wrote: > Make a command (Cairngorm has those, right?), and pass the arg in; then, > have the Alert popup, and if the user responds yes, that arg will be > available as a member variable, and thus you can use that arg in your delete > function. > > ----- Original Message ----- > From: "Cliff Meyers" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Thursday, July 21, 2005 9:42 AM > Subject: [flexcoders] Passings args to an Alert.show() handler > > > I'm using Alert.show() to provide the user with a confirmation dialog > before I make a method call to delete a user from the DB. Right now I > have some code like this: > > mx.controls.Alert.show( > "Are you sure you want to delete this user?", > "Confirm Delete", > mx.controls.Alert.YES | mx.controls.Alert.NO, > this, > deleteUser > ); > > Is there any straightforward way to pass an argument to deleteUser? I > could just let it look at a variable that's set in the component's > scope but that seems messy to me. I'd much rather find a way to pass > the userID right in. > > Thanks for your help! > > > -Cliff > > > -- > 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 > > > > > > > > -- > 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 > > > > > > > -- 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/

