No Kunal, you can import Alert class in .as file if that is a Flex project In your acse you are in pure Actionscript project, mx.controls.Alert is an Flex package,thats why you can't able to access that, Note:Check my prev responce
Gnanz,,,/ http://gnanz-flexworld.blogspot.com On Feb 11, 3:19 pm, Kunal Pagariya <[email protected]> wrote: > ya I have to import mx.controls.Alert > But when i import, it give error package not found. > i think we cant import mx.control package in .as File > > > > On Wed, Feb 11, 2009 at 3:44 PM, Ravi <[email protected]> wrote: > > > Kunal, > > > You will have to import the following: > > > import mx.controls.Alert; > > > Try this with your code snippet. > > > HTH, > > > -Ravi > > > On Feb 11, 2:27 pm, Kunal Pagariya <[email protected]> wrote: > > > > Use the following code sniplet > > > > > try{ > > > > > // your code goes here > > > > } > > > > catch(errMsg:Error){ > > > > Alert.show("Exception"+errMsg.toString()) > > > > } > > > > > I tried this. But this give error > > > > Access of undefine Property Alert > > > > -- > > > > Regards > > > Kunal Pagariya > > -- > > Regards > Kunal Pagariya --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

