Ext.onReady(function(){

    var loader = new Ext.ux.ScriptLoader({
        listeners: {
            'load' : function() {
                alert("すべての読み込みが完了しました。");
                sample1();
                sample2();
                sample3();
                sample4();
                sample5();
            }
        },
        items: [{
            src: './scripts/sample1.js',
            charset: 'UTF-8',
            type: 'text/javascript',
            callback: function() {
                alert("sample1 loaded");
            },
            scope: this
        },{
            src: './scripts/sample2.js',
            charset: 'UTF-8',
            type: 'text/javascript',
            callback: function() {
                alert("sample2 loaded");
            },
            scope: this
        },{
            src: './scripts/sample3.js',
            charset: 'UTF-8',
            type: 'text/javascript',
            callback: function() {
                alert("sample3 loaded");
            },
            scope: this
        },{
            src: './scripts/sample4.js',
            charset: 'UTF-8',
            type: 'text/javascript',
            callback: function() {
                alert("sample4 loaded");
            },
            scope: this
        },{
            src: './scripts/sample5.js',
            charset: 'UTF-8',
            type: 'text/javascript',
            callback: function() {
                alert("sample5 loaded");
            },
            scope: this
        }]
    });
    loader.load();

});
