Thread: preloader

    #1
  1. Gettin' there
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Posts
    27
    Rep Power
    0

    preloader


    Hi. I have a preloader attached to the first frame of a movie that is about 550Kb

    the preloader isnt loading in right away it loads about 256Kb before the preloader loads. i know this by looking at the bandwith profiler and the first frame is 256Kb

    if i put the preloader on its own it is nice and small size wise. anyone tell me why this is or how i can get the preloader to reduce in size on the first keyframe.

    Hope this made sence if not let me know i will try and elaborate.

    Thanks.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2002
    Posts
    12
    Rep Power
    0

    try this


    try this. This might help it to make sure all of the frames and bytes are loaded. Place a stop() action on the first frame of your movie's main timeline. Following that stop() action, enter code taht checks to see if all the bytes in the movie are have been loaded. Place an empty movie clip on the Stage and place this script on it:

    OnClipEvent (load) {
    total= int (_root.getBytesTotal());
    }

    onClipEvent (enterFrame) {
    loaded = Math.ceil(_root.getBytesLoaded());
    percent = Math.ceil(loaded/total*100);
    if (percent >+ 100) {
    _root.play();
    }
    }

IMN logo majestic logo threadwatch logo seochat tools logo