Preloading Multiple External Swfs

Ask a Question related to Macromedia Flash Sitedesign, Design and Development.

  1. #1

    Default Preloading Multiple External Swfs

    hi there,
    i seem to be having a small problem in preloading external swfs. i have a
    main flash file(main.swf) which is a slideshow of 8 external swfs (1,2,3,4
    etc).

    if the file is not loaded (or not in cache) it therefore loads the external
    swf. thats fine in a way.. but this is unwanted..

    i have tried to use the Loadmovie with Target syntax and load the external
    swf movies in a hidden movieclip named "preload". so in otherwords i have
    copy pasted the Loadmovie tag 8 times, specifying the respective 8 movie
    clip names.
    loadMovie ("1.swf", "/preload");
    loadMovie ("2.swf", "/preload");
    loadMovie ("3.swf", "/preload"); ....................
    ............ loadMovie ("8.swf", "/preload");

    now what happens is.. it doesnt preload all the 8 movies.. it only preloads
    the last 8th movie as it is the last Loadmovie tag mentioned in the
    actionscript. i fail to understand why it doesnt preload the first 7 movies
    when i have given the syntax for it to load the movies.

    Please help asap as to how, can i surely achieve the preloading of all/any
    'n' numbers of external swfs.

    thanx







    Adil Bamanbehram Guest

  2. Similar Questions and Discussions

    1. Preloading dynamic swfs
      Hi Guys, I hope you can help me. I'm trying to create a standard container in flex for my flash files, so they'll dynamically load a flash movie...
    2. Loading and preloading .swfs
      Suppose I have two .swf files of size 1.5mb each. I would like to play one of them and while I play the first .swf. I'd like to start loading the...
    3. external .swfs on different levels
      Hey there, i'm having a little problem with some actionscript for my site... I have my own scrollpane that i have designed (not a component, so i...
    4. preloading an external swf
      hi im hoping someone can shed some light on this little poblem im having - Im making an educational tool as part of my project for uni :- Im...
    5. external swfs, with streaming mp3.
      I've gone through every post on this site and have been unable to find an answer to my problem though many claim to be it. I have a site with a...
  3. #2

    Default Re: Preloading Multiple External Swfs

    It will load all 8 movies, but you can only have one movie loaded into a
    clip at any time, so each of the previous movies will be replaced by the
    next one to load. that's why you are left with the final movie.
    You need to create 8 seperate clips, and load the swf's into one each. If
    you call them preload1, preload2...preload8, then do something like

    for (var i=1; i<=8; i++){
    loadMovie(i+".swf", _root["preload"+i]);
    }

    that should sort it.

    }`¬P


    Peter Blumenthal Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139