The ordinary "alert" is a method on the application object, so you can also do: mx.core.Application.application.alert(); //note the lower case alert
but I think the "mx.controls.Alert()" form is the preferred. Tracy -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Greg Johnson Sent: Thursday, October 06, 2005 1:49 PM To: [email protected] Subject: [flexcoders] Re: How do I get alert to work in a flex component The alert was being called in the component in some as code. And yes, flex has an alert function. --- In [email protected], "Mink, Joseph" <[EMAIL PROTECTED]> wrote: > So where exactly is the "alert("")" call being made? Also...isn's > alert("") a javascript function? I don't know if that method exists in > Flex. > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Greg Johnson > Sent: Thursday, October 06, 2005 12:07 PM > To: [email protected] > Subject: [flexcoders] How do I get alert to work in a flex component > > > I have the main application, then I have a Flex component. But if I > try to add a alert("") it says it doesn't know what im talking about. > If I add _root.alert("") it will not give an error, but it won't show > the alert window either. :/ > > Here is the app line from the main flex app > <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" > xmlns="*" initialize="initFunction()"> > > and here is the call to the component > <otdTab label="OTD" /> > > > > > -- > 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 > > > > * Visit your group "flexcoders > <http://groups.yahoo.com/group/flexcoders> " on the web. > > * To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/> . > > > ________________________________ -- 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 --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/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/

