// vim:syntax=javascript

class EndScreen extends MovieClip {
    function onLoad () {

        var txt_25_fmt = new TextFormat();
        with (txt_25_fmt) {
            font = "Vera";
            size = 25;
            color = 0xff0000;
            align = "center";
        }
        var txt_50_fmt = new TextFormat();
        with (txt_50_fmt) {
            font = "Vera";
            size = 50;
            color = 0xff0000;
            align = "center";
        }

        var name1 = "text_field_1";
        createTextField(name1, 1, 50, 30, 300, 100);

        var tf1:TextField = this[name1];
        with (tf1) {
            embedFonts = true;
            multiline = true;
            wordWrap = true;
            setNewTextFormat(txt_25_fmt);
            setTextFormat(txt_25_fmt);
            text = "Well done, Explosivo. You have earned the right to call yourself";
        }

        var name2 = "text_field_2";
        createTextField(name2, 2, 50, 130, 300, 140);

        var tf2:TextField = this[name2];
        with (tf2) {
            embedFonts = true;
            multiline = true;
            wordWrap = true;
            setNewTextFormat(txt_50_fmt);
            setTextFormat(txt_50_fmt);
            text = "MASTER EXPLODER";
        }
    }
}
