Professional Web Applications Themes

Load Movie help... - Macromedia Flash Ad Development

I am pulling double duty with this question as it serves two purposes. I am developing a total flash controlled ad system for myself, but also need to use the same theory for a project for work. Concept: I have a main movie (ad rotator system) that I then want to randomly load other swf's (individual ads) into this main swf after a set period of time. The random load I got set no problem. The problem I am having is to get it to move to the new Frame label of the main movie which then loads the smaller ...

  1. #1

    Default Load Movie help...

    I am pulling double duty with this question as it serves two purposes. I am
    developing a total flash controlled ad system for myself, but also need to use
    the same theory for a project for work.

    Concept:
    I have a main movie (ad rotator system) that I then want to randomly load
    other swf's (individual ads) into this main swf after a set period of time. The
    random load I got set no problem. The problem I am having is to get it to move
    to the new Frame label of the main movie which then loads the smaller swfs. I
    am using the LoadMovie with nInterval time delay command in flash to load the
    movies.

    Sample:
    stop();
    var nInterval = setInterval(Play, 1000);
    function Play() {
    clearInterval(nInterval);
    gotoAndPlay("_sc1");
    }

    Problem:
    Using the above code in both the main swf and individual swfs it will only
    load one movie (ad) then replay this one over and over, etc. When I take out
    this nInterval it loads each one randomly. I slowly learning aScript, and
    trying to move away from strictly timeline control, when I just need a simple
    pause of time.

    Does anyone have any idea? I have searched forums left and right, but to no
    avail; everything I find is nInterval. If there was an "unloadMovie" command I
    could make it happen, but can't find any doentation on this either.

    thanks.
    E

    ierick Guest

  2. #2

    Default Re: Load Movie help...

    Addition below is the control for each random ad (swf):

    stop();

    onEnterFrame = function () {
    _root.loadMovie("adSWF/250x154/ecvm-a09_v1e.swf");
    };

    var timePause = setInterval(Play, 15000);

    function Play() {
    clearInterval(timePause);
    gotoAndPlay(random(5)+1);
    ad1_mc.unloadMovie();
    }

    (ad2_mc, ad3_mc.... etc.)
    Thanks.

    ierick Guest

  3. #3

    Default Re: Load Movie help...

    Hi there,
    Maybe what you have to do is make an interval (because that is the best way to
    go) and in this interval you call a function. Like you did above.

    But what I would do is make 2 empty movieclips where you want to load the swf
    ads into. For example: when you want to load 1.swf you put it first in the
    empty1 movieclip and when you load the second one (2.swf) you load it in empty2
    movieclip. When it finishes to load the 2.swf you make the first one invisible
    and the second one visible (empty2._visible = true).

    I hope this helps you on your way.

    Greetings,
    Guido
    [hr]http://www.grafia.fr/ | [url]http://www.missechantillons.fr/[/url] |
    [url]http://www.rouedescadeaux.com[/url] | [url]http://www.tvsoiree.fr/[/url]

    Gipoh Guest

  4. #4

    Default Re: Load Movie help...

    Let me ask, if I have say 10 ads would I then need to use 10 clips? or just 2 clips for each frame (label)?
    ierick Guest

  5. #5

    Default Re: Load Movie help...

    Let me ask, if I have say 10 ads would I then need to use 10 clips? or just 2
    clips for each frame (label)?

    I have been thinking would it be better to create scenes versus frames in this
    situation, and randomly load each scene (if that is possible)?

    ierick Guest

Similar Threads

  1. Newbie: load a movie in a movie
    By oe in forum Macromedia Director Basics
    Replies: 3
    Last Post: May 7th, 01:56 PM
  2. using load movie to load to another movie
    By Will Y. in forum Macromedia Flash Sitedesign
    Replies: 2
    Last Post: April 8th, 02:52 AM
  3. How can I load movie contents into another movie?
    By xtrapol8 in forum Macromedia Flash Actionscript
    Replies: 2
    Last Post: March 1st, 05:41 PM
  4. load the movie help!
    By pixelgroove webforumsuser@macromedia.com in forum Macromedia Flash Sitedesign
    Replies: 2
    Last Post: November 8th, 10:53 PM
  5. load movie?
    By MeadowRyan webforumsuser@macromedia.com in forum Macromedia Flash Sitedesign
    Replies: 2
    Last Post: October 14th, 09:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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