<?xml version="1.0" encoding="utf-8"?>
<mx:Application name="Alert_creationCompleteEffect_test_3"
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white" viewSourceURL="srcview/index.html">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.effects.easing.*;
private function showAlert():void {
var a:Alert = Alert.show("Nam vel nunc sed arcu fringilla fringilla. Cras dapibus nunc ut nisi.\n" +
"Nullam porttitor mi et mauris.\n" +
"Suspendisse hendrerit, turpis eu ornare suscipit, nulla sem tempus lorem,\n" +
"sit amet semper nibh mi cursus neque.\n" +
"Nulla vel purus. Sed a nulla. Quisque venenatis laoreet mi.",
"Lorem ipsum dolor sit amet, consectetuer adipiscing elit");
a.isPopUp = false;
a.cacheAsBitmap = true;
}
]]>
</mx:Script>
<mx:Style>
@font-face {
src: local("Verdana");
fontFamily: VerdanaEmbedded;
}
@font-face {
src: local("Verdana");
fontFamily: VerdanaEmbedded;
fontWeight: bold;
}
Alert {
fontFamily: VerdanaEmbedded;
creationCompleteEffect: alertCreationCompleteEffect;
}
</mx:Style>
<mx:Parallel id="alertCreationCompleteEffect">
<mx:Fade duration="500" />
<mx:Move yFrom="0"
easingFunction="Elastic.easeOut"
duration="1000" />
</mx:Parallel>
<mx:ApplicationControlBar dock="true">
<mx:Button id="button"
label="Click me"
click="showAlert();" />
</mx:ApplicationControlBar>
</mx:Application>