Hi,

I would like in my game have a loading gif img but I'm stuck with that. The game is developed in createjs at this link http://jaketesting.altervista.org/basketball/. The loading is just a text for now. Thanks for help.

The code of this:

Code:
  var canvas,
    stage,
    mainParentLibrray;
    /*initialisation stuff*/
    function init() {
        createjs.MotionGuidePlugin.install();
        canvas = document.getElementById("canvas");
        images = images|| {
        }
        ;
        var loader = new createjs.LoadQueue(false);
        loader.installPlugin(createjs.Sound);
        loader.addEventListener("fileload", handleFileLoad);
        loader.addEventListener("complete", handleComplete);
        loader.loadManifest(library.loadSettings.filesToLoad);
        stage = new createjs.Stage(canvas);
        createjs.progress = new createjs.Text("LOADING...", "45px 'Arial'", "#000000"); // Loading text
        createjs.progress.textAlign = "center";
        createjs.progress.x=280;
        createjs.progress.y=220;
        createjs.Ticker.setFPS(24);
        createjs.Ticker.addEventListener("tick", stage);
        stage.addChild(createjs.progress);
    }
    /*Load img*/
    function handleFileLoad(evt) {
        if (evt.item.type == "image") {
            images[evt.item.id] = evt.result;
        }
    }
    //When complete load -> add stage
    function handleComplete() {
        mainParentLibrray = new library.basketBallGame();
        stage.addChild(mainParentLibrray);
        stage.update();
        stage.removeChild(createjs.progress)
    }
    /*Sound*/
    function playSound(id,
    loop) {
        createjs.Sound.play(id, createjs.Sound.INTERRUPT_EARLY, 0, 0, loop);
    }