Hi,
 
You can use this:
 
mx.controls.Alert.show(..) from anywhere to show alert(..).
 
FYI! alert(..) function is just shortcut of above and is static method of Application class. Which means it can be used in application without fully-qualified reference. But if you want to use it in custom component, which I think the case here is, you need to use it like this:
 
mx.core.Application.alert(...)
 
-abdul
 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Husain Kitabi
Sent: Thursday, September 22, 2005 10:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] alert throwing error

Hi
I use a simple alert in my mxml script.
 
function abc(){
  alert(moduleSelectedItem);
}
 
It throws me this error1 Error found.
 
Error /WEB-INF/flex/user_classes/com/lonline/client/view/course/classgroup/classgroupRegister.mxml:29
There is no method with the name 'alert'.
 
Any ideas?
Regards
Husain

 


Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.

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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to