I copy and pasted this import mx.controls.Alert; from: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf 69084-7da0.html
Why? because everytime I typed inimport mx.controls.Alert give me the error: The import Alert could not be found.
And in fact even copying and pasting that peice of code from the web site I still get the same error....
So I ask, its it not apart of the mx.controls package?
No one seems to be responding or helping? why?
Any ways after a full reinstall of the product which had no issues reinstalling (I completly unistalled it) I get:
Multiple markers at this line:
-1172: Definition mx.controls:Alert could not be found.
-The import Alert could not be found.
-controls
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
title="AlertDialog">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.controls.Alert;
protected function btn2_clickHandler(event:MouseEvent):void
{
var ale:Alert = Alert.show("This is a ALert");
}
]]>
</fx:Script>
<s:Button label="Show alert (with moduleFactory)" id="btn2" click="btn2_clickHandler(event)" />
</s:View>
this is my code but it not working.i add explicitly mx.swc but my project.swc file is deleted so now i have to do to display alert in my project.
Wow, really? It's "recommended" that, if we're working on a mobile app, we replace two lines of code (an important statement and an event handler) with what's written here SkinnablePopUpLayer? I just want basic error output without having to attach a debugger; do you have a more elegant alternative?
North America
Europe, Middle East and Africa
Asia Pacific