A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: Preload stops movie and do not stream

  1. #1
    Member
    Join Date
    May 2004
    Posts
    60

    Preload stops movie and do not stream

    Hi

    I am preloading an external swf movie, but it seems that the movie is loaded in the browser cache before it starts playing. It to supposed to preload for a while, then start to play the movie as the rest of the movie loads. Now it loads the whole movie into the browser (it seems) then start to play when it is fully loaded.

    Is there an update in the last versions of flashplayer or browser that prevents it from streaming right ?

    Has anyone got a solution to this ? It seems to work fine on older browserversions.

    Here is how my preloader works:

    onClipEvent (load) {
    var Mode = "stop";
    var SliderRange = McLine._width-BuSlider._width;
    var PointerRange = BuSlider._width-1;
    }
    onClipEvent (enterFrame) {
    var MediaLength = _root.movie._totalframes;
    PercentLoaded = int((_root.movie.getBytesLoaded()/_root.movie.getBytesTotal())*100);
    McLine._xscale = PercentLoaded;
    if (Mode == "skip") {
    _root.movie.gotoAndStop(int(BuSlider._x*(MediaLeng th/SliderRange)));
    } else if (Mode == "play") {
    BuSlider._x = int(_root.movie._currentframe*(SliderRange/MediaLength));
    }
    McSliderPointer._x = BuSlider._x+int(_root.movie._currentframe*(Pointer Range/MediaLength));
    }



    It is triggered with a button saying:

    my_mc = new MovieClipLoader();
    my_mc.loadClip("movie2.swf","movie");
    Last edited by thomasoe; 01-26-2007 at 06:09 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center