Linking Flash Preloader with Flash Animation

Discussion in 'Graphics & Multimedia' started by supermario, Jan 27, 2007.

  1. #1
    Hello Everybody!!!!

    Could anybody help in out here....I've got stuck in a problem...

    I have already created a flash animation which I want to put on my site.....and I have also created a flash preloader ....which should be loaded before the movie gets started....

    But the problem is....I am not able to link those both preloader and my movie....can anybody tell me how to do that.....

    I think that would be done by action scripting....searched on google, but was'nt able to find any good tutorial....

    Waiting for your replies.....

    Supermario
     
    supermario, Jan 27, 2007 IP
  2. ramakrishna p

    ramakrishna p Notable Member

    Messages:
    1,798
    Likes Received:
    361
    Best Answers:
    0
    Trophy Points:
    240
    #2
    What is the size of your flash movie? Is it requires preloader? How the movie is composed? Complete Movie on one scene or made different .swf file and linked (loadmovie)?. Let me know the details. If I know these details I will send you work file with preloader actionscript.
     
    ramakrishna p, Jan 27, 2007 IP
  3. manishgori

    manishgori Guest

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Here I will write a quick script for you.

    Put on loader movieclip.

    onclipEvent(enterFrame)
    {
    var total_bytes=_root.getBytesLoaded();
    var loaded_bytes=_root.getBytesTotal();
    if (total_bytes<=loaded_bytes) {
    delete(this.onEnterframe);
    _root.gotoAndPlay(2);
    }

    put stop() on first keyframe.

    Hope it helps.

    Cheers
    Manish Gori
     
    manishgori, Jan 31, 2007 IP