A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: I really really need your help

Hybrid View

  1. #1
    Junior Member
    Join Date
    Aug 2000
    Posts
    26
    Hi everyone! I'm taking a preloader to load 3 scenes, but I can't figure out how the action would work. On the first scene, my preloader scene, should I set it up like this?

    Frame 1
    If Frame Is Loaded (Scene2, Last Frame)
    Go to and Play (Preloader Scene, 2)
    End Frame Loaded

    Frame 2
    If Frame Is Loaded (Scene3, Last Frame)
    Go to and Play (Preloader Scene, 3)
    End Frame Loaded

    Frame 3
    If Frame Is Loaded (Scene4, Last Frame)
    Go to and Play (Preloader Scene, 4)
    End Frame Loaded

    Last frame in preloader scene
    Go to and Play (Preload Scene, 1)

    ...or would I set it up like this?

    Frame 1
    If Frame Is Loaded (Scene2, Last Frame)
    Go to and play (????)
    End Frame Loaded
    If Frame Is Loaded (Scene3, Last Frame)
    Go to and play (????)
    End Frame Loaded
    If Frame Is Loaded (Scene4, Last Frame)
    Go to and Play (Scene 2, 1)
    End Frame Loaded

    Last frame in preloader scene
    Go to and Play (Preload Scene, 1)

    Help I don't understand how to set this up! Any help would be greatly appreciated.

    ~Chuck


  2. #2
    There is an exact tutorial for this within Flashkit. I used it myself. All the code is there.

    Good Luck

  3. #3
    Senior Moderator
    Defender of the Faith
    Pope de Flash's Avatar
    Join Date
    Feb 2000
    Posts
    3,429
    If you want a clean reusable pre loader do this:
    label the last frame in the movie "end" it doesnt matter if its in the first scene or another scene.
    Now place a blank key frame in frame 6 and another in frame 10.

    In frame 6 put this code:

    If Frame Is Loaded (Scene 2, "end")
    Go to and Play (8)
    End Frame Loaded

    (if the last frame is in scene 2)

    then put this action in frame 7:

    Go to and Play (5)

    Now you can put a layer below this layer and put a load movie clip
    in it. Be sure to add a blank keyframe in frame 11 of this layer so the load movie clip will not be
    visible once the
    preload is done.

    Now the best part is any time you need a pre loader you can just copy these frames and drop them
    into your
    movie. All you have to do is put the "end" lable in the last frame of the movie. The other advantage
    to this method
    is if the movie gets bigger your not attached to frames but to a label which should remain at the
    end.



    regards, Bill

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