A Flash Developer Resource Site

Results 1 to 13 of 13

Thread: loading movies

Hybrid View

  1. #1

    loading movies

    Hi.

    I have problem. When I load page into browser, the first movie plays ok but, the rest of the movies, they dont load as they should. I have to refresh page and after that it works ok. To see what I'm talking about check: http://www.eni.hr

    thnx.

  2. #2
    I just tested this and it seems to work fine in my browser. What browser and OS are you using?

  3. #3
    thnx for checking. i have IE 6.0. Did U try BIO (did all photos showed up? there's 5 of them) or PHOTO (did all photos loaded? 19 of them).

  4. #4
    All the photos showed up in BIO but only a few showed up in PHOTO. when I visited the page again, all 19 showed up. It looks like pre-loader problem.

    What ActionScript code did you use in your preloader?

  5. #5
    It's preloader that use graphic bar and actions as follows:
    2 layers (graphics & actions)
    3 frames (for both)
    2nd frame actions:

    if (_root.getBytesLoaded() != _root.getBytesTotal()) {
    gotoAndPlay(1);
    }


    3rd frame actions:

    gotoAndPlay("main", 1);


    In graphics layer is only movie loading bar.

  6. #6
    Are the images on your stage or are you loading them externally?

    AS your loader is part of the same movie, you may want to try something like this instead:

    code:

    if (_root.framesLoaded < _root._totalframes) {
    gotoAndPlay(1);
    }
    else {
    gotoAndPlay("main", 1);
    }



    Try this and please let me know if it works.

  7. #7
    yep. it works just fine . i will include U in thnx note for that website (of crs if it's ok with U ). It works fine except: after main movie is loaded (just bgd) "child" movie with subnavigation (like bio, photo, press...) has problems with preloader bar. It's flashing all the time during loading process. All preloaders are the same but it looks like they work only in main movies.

  8. #8
    Good to hear that it's starting to work (I feel honoured for the mention). The code that I gave you is more for preloaders that are part of the same movie. If you're preloading a child movie (as you're doing with the subnavigation), you should rather use code like this in that preloader (note: in this example, the subnavigation is being loaded into a movie clip called "nav_mc"):


    code:

    if(nav_mc.getBytesLoaded() > 1 && nav_mc.getBytesLoaded() >= nav_mc.getBytesTotal()) {
    gotoAndPlay("main", 1);
    } else {
    gotoAndPlay(1);
    }



    Please try this and let me know if it works - remember, only to use this code for loading the external movies, else use the other code that I sent. Also, replace "nav_mc" with your target movie clip or level.

  9. #9
    nope, doesn't work. maybe it's in loader bar, there is script in loader bar movie:
    2 layers (Action&Bar)
    2 frames, 2nd frame Actions:
    setProperty(this,_xscale, (_root.getBytesLoaded()/_root.getBytesTotal())*100);

    i tried in PHOTO movie.
    Last edited by LenArt; 12-24-2003 at 06:32 PM.

  10. #10
    That shouldn't be a problem. In any case, I just cleared cache and had another look at the site and erverything seems to load properly now. The menu bar also loaded without a problem and I see all 19 images on the "photo" page first time.

    Are you sure it's still not working?

  11. #11
    yes. everything is loading as it should, all subnavigations are loading ok but preloader animation isn't working (I mean preloader bar like in parent movie not menu bar).

  12. #12
    You mean in the parent movie the preloader bar animation doesn't work? I just tried this and it seems to work fine - the bar fills up till it's 100%. Did you try test this inside Flash using "simulate download" and setting a slow download speed (like 28kb)?

  13. #13
    not parent, child movie. when i click on photo, parent movie shows preloader bar filling up to 100% but after that, in child movie (with gallery) preloader bar is not playing. it's filled 100% from the begining and u can't see loading progress. sorry 4 beeing PINTA .

    BTW Merry Christmas

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