Welcome, Guest
  • Author Topic: Help could be nice?.... Preloading jpegs  (Read 694 times)

    parker

    • Server what's that
    • *
    • Posts: 39
    • I hate the cold...
      • View Profile
      • Aniglyphics Development
      • Email
    Help could be nice?.... Preloading jpegs
    « on: 11/13/02, 01:28 »
    Ok, I am pretty knowledgeable with using flash/actionscript, but I have encountered something that I never learned about and I can't seem to find any information on it that is useful to me...

    What I want to do is make a simple preloading animation and use it over and over every time I externally load a .jpg into a blank movie clip. I obviously cannot put it in the empty clip because it will be removed once the jpg starts to load.

    SO how can I make a preloader and have it show up where the jpeg image is loading, without having to make an external swf with the preloader in it?


    Thanks for the help!

    Parker

    MikeS

    • Server what's that
    • *
    • Posts: 28
    • Sometimes it rains Hard, so sit back and Trip
      • View Profile
      • Tekno Graphix Development & Design
      • Email
    Re:Help could be nice?.... Preloading jpegs
    « Reply #1 on: 11/13/02, 13:37 »
    ello,

    I use this method....

    Have your swf on a level higher than the MC being loaded.  Have a stop on that mc,

    I call the mc standby

    using pixelogics preloader with more methods, one MM should have included, setCompletionHandler()  hurry hurry.......





    Code: [Select]

    this.standBy._visible = false;
    //////////////////////////////////////////////////////////
    //  Preloader Bar Information Function //
    function commence () {
       update.text = this.progPic.getPercentComplete () + "%  Completed";
    }
    ////////Progress Bar Engage///////////////////////
    function butEngage () {
       progPic.reset ();
       update.text = "";
       progPic.setLoadTarget (pic);
       barTrue ();
       progPic.setCompletionHandler ("loadingComplete");
    }
    function loadingComplete () {
       barFalse ();
       update.text = " Loading Complete ";
    }
    //////Progress Bar Show/////////////////////////////
    function barTrue () {
       standBy._visible = true;
                   //could add  standBy.gotoAndPlay(1);
       progPic.setDisplayText (true);
       progPic.setDisplayGraphics (true);
       progPic.setChangeHandler ("commence");
    }
    //////Progress Bar Hide///////////////////////////////////////////
    function barFalse () {
       standBy._visible = false;
       progPic.setDisplayText (false);
       progPic.setDisplayGraphics (false);
    }


    There are many ways you could attack this to, attaching the mc, duplicating ect.  Definatly more than one way to get up a mountain....  The main idea is have in the mc on a higher level...plainly put..  then alpha, visible, removeMovieClip whatever...


    Later on, Mike
    If you speak to the Universe it listens, when you listen, the Universe will speak to you.