<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white" viewSourceURL="srcview/index.html">

    <mx:Style>
        /* This style applies to all Buttons, including those in Alert controls. */
        Button {
            icon: Embed(source="assets/bulletCheck.png");
        }

        /* Create a custom style class. */
        .bulletWarning {
            icon: Embed(source="assets/bulletWarning.png");
        }
    </mx:Style>

    <mx:Script>
        <![CDATA[
            import mx.controls.Alert;

            private var a:Alert;

            private function showAlert():void {
                a = Alert.show("message");
            }
        ]]>
    </mx:Script>

    <mx:Button label="bug" />
    <mx:Button label="also a bug"/>
    <mx:Button label="Alert.show()" click="showAlert()" styleName="bulletWarning" />

</mx:Application>