A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: special Preloader

  1. #1
    Junior Member
    Join Date
    Dec 2000
    Posts
    20

    special Preloader

    I'm very tired of searching how to do a preloader that checks if a frame (by Label) is loaded.
    Has someone an exemple?

    Now I try with Frame Numbers but I have problems too.
    I axplain you what I need to do:
    1) The user is in Scene 1.
    2) He push a button.
    3) The script gives variables to a movie clip. (vScene,vFrameNb)
    4) The movie clip checks if the frame is loaded. *
    5) if ok it goes to the frame vFrameNb in vScene

    *
    switch (Scene) {
    case "Scene2":
    if (_parent._framesloaded>=FrameNb){
    _parent.gotoAndPlay("Scene 2",FrameNb);
    gotoAndStop(1);
    }
    }

    I see a problem with FrameNb. For me it's the Frame Number of the scene and not of the movie.
    Why is that so difficult to test such thing? One big point is that Flash can be streamed but there is no easy way to test if one frame of one scene is loaded.

    If someone could help me with this it will be great.

  2. #2
    Senior Member
    Join Date
    Nov 2002
    Posts
    195
    Hi Fontaine,

    My advice is do not use scenes.

    When you publish your movie all scenes are placed on one main
    timeline anyway. They are a great tool for the design stage but
    can produce bugs that are hard to find. As the references to your
    Scene names are washedout.

    There is a lot about this on the Macromedia forum and many
    members of the Macromedia Team strongly advise not to use
    scenes.

    Not an answer to your question but something to keep in your
    mind. I personaly do not get into Scene problems because there
    could be a bug that can take for ever to work out.

    Milosav

  3. #3
    Junior Member
    Join Date
    Dec 2000
    Posts
    20
    Should I addition the number of frames of each scene to have the right frame number?

    I can't imagine why macromedia didn't have a work around for testing a frame if it's loaded.

    if you have a better solution for it could you help me.

    Thanks

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