A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: Preloading swf and stopping

  1. #1
    Junior Member
    Join Date
    May 2000
    Posts
    17

    Lightbulb

    Do you wish to get swish for free?
    Then solve my problem:
    I have a movie called index.swf. It has a background sound which is a seperate sound file called loop.swf. I also have three seperate swf files called testlinks.swf,testrechts.swf and testmidden.swf. These are triggered by the roll over action. Now i have two problems:

    1. how can i preload the sound loop.swf BEFORE the movie index.swf starts?
    2. how can i preload the three test....swf files and not letting them start automatically, but triggered with roll over (when i trie to preload them, they are played when the movie index.swf start.

    If one smart flash freak can solve this, he gets the credit on my site and gets swish3d for free! Note: you have to solve it by editiing my files and send them to me. The files are available for download at:
    www.v-design.nl/index.swf www.v-design.nl/loop.swf
    etcetera.

    All files are not protected.
    I have copyright on these files so do not misuse my design please.

    Good luck!

    Tom Viguurs

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,092

    Smile

    First you need to set up your preloader
    so that it checks if frames are loaded
    in the loop.swf first.
    Then it starts preloading the next .swf file
    and so forth.
    then in each .swf file
    make a layer called Actions...
    in the first frame
    add the stop action.

    What this will all do is load the seperate
    .swf files

    and stop them from playing untill the button is pressed in the index.swf
    It's all on how you set it up.



  3. #3
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,092

    Thumbs up

    One more thing

    in the loops.swf
    add the stop action in the first frame
    and make a keyframe in frame 2
    and start the loops

    because if you put it in the first frame
    it will still play the music which you don't want.

    so simply put it into the second frame.

    Reply if you need more info....




  4. #4
    Junior Member
    Join Date
    May 2000
    Posts
    17

    Post

    one more thing... How does the loop.swf file has to look like then:
    Where comes the sound, the actions etc.
    Can you send me a solution?

    I am really glad that you take the time to solve my problem

  5. #5
    Junior Member
    Join Date
    May 2000
    Posts
    17

    Post

    Forgotten something:

    How does the action script look like in the preloader in index.swf (main movie)
    to call the swf files?

  6. #6
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,092

  7. #7
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,092

    Smile

    Reread my posts

    1st frame stop action
    2nd frame add music
    and set the SYNC to START


  8. #8
    :im:
    Guest

    Post

    heh LOOOOL!!!
    it's easy!
    i used it in my previous sites(well in my current one, too)
    set up a movie clip.
    make 2 frames.
    in the first frame say to unload all the movies from level 16.
    create a new keyframe.
    in this keyframe in keyframe actions say that load movie(blah blah blah with .swf with music URL) in level 16. then in the first frame, make a button to go to second frame and in the second to go to first. easire than i thought.

    ------------------

  9. #9
    Junior Member
    Join Date
    May 2000
    Posts
    17

    Unhappy

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by jydnas:
    Reread my posts

    1st frame stop action
    2nd frame add music
    and set the SYNC to START

    <HR></BLOCKQUOTE>


    I am totally confused now. I do not know what to do. Is there any way that i can send you the files so you can set me an example in them?

  10. #10
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,092

    Smile

    Did you take the tutorial at were-here.com
    on preloading multiple movies?

  11. #11
    Junior Member
    Join Date
    May 2000
    Posts
    17

    Question

    Yes i have read the tutorial, but it didn't make any sense. In the tutorial i have to label a frame where there is no keyframe present. This is not able to be labeled then? The tutorial is unclear to me, but i may have found a solution for my problem. Only I am stuck with one more thing:
    Is it possible to load a movie into the main movie to a certain frame number?
    Example:
    Load movie loop.swf frame #X

    If you can help me with this, my entire problem is solved, because i will call the frame # in the movie to be loaded where the sound starts. The load movie in the preloader will load the movie, but stop at frame #1.
    In frame #2 the sound will continue.

    Greetings Tom Viguurs


    [This message has been edited by stirred (edited 08 May 2000).]

  12. #12
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,092

    Post

    YES! make your key frame where you need it
    like say frame 38 or whatever IN THE MAIN TIME LINE
    and add the action

    LOAD MOVIE ("sound.swf",1)

    as soon as the player reaches that key frame
    bammo it loads the external .swf file into
    the main movie.

    Try it out!


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