A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: preconfused about preloaders

  1. #1
    Junior Member
    Join Date
    Mar 2000
    Posts
    3

    Cool

    Hi again. Another basic question. I read the tutorial on this site (by the way, thanks for all of those!) regarding basic preloaders. The concept seems pretty simple except for one item. I have created a flash movie that consists of two scenes, each of which starts at frame 1 and counts up, like normal. Once I specify a preloader scene, how do I specify the last frame of the last scene? This may sound stupid, but is the specification (moviescene, 350)where "movie" is the name of the scene, or is "moviescene" the name of the scene? Thanks!

  2. #2
    Hack
    Join Date
    Mar 2000
    Location
    Madison, WI
    Posts
    1,753

    Lightbulb

    Moviescene is the name of the scene. You don't have to append "scene" as a suffix.

    erlenmeyer

  3. #3

    Post

    Try This

    ------------------
    Eric Emmons
    Merrill Lynch
    User Interface Design
    <EMBED src="/cgi-bin/ubb/Members/sigs/00000094.swf" quality=high WIDTH=300 HEIGHT=75 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED>

  4. #4
    Senior Moderator
    Defender of the Faith
    Pope de Flash's Avatar
    Join Date
    Feb 2000
    Posts
    3,429

    Cool

    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 5 and another in frame 10.

    In frame 5 put this code:

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

    (if the last frame is in scene 2)

    then put this action in frame 10:

    Go to and Play (1)

    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


    ------------------
    Macromedians 1:1

    In the beginning the web was without shape and color, and the hype covered the darkness of the net. Then there was a Flash and life came to the web and vision became reality.
    <EMBED src="/cgi-bin/ubb/Members/sigs/00000100.swf" quality=high WIDTH=375 HEIGHT=75 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED>

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