Ask a Question related to Macromedia Flash Ad Development, Design and Development.
-
ierick #1
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 documentation on this either.
thanks.
E
ierick Guest
-
Newbie: load a movie in a movie
Hi, This may be very easy but I'm gettinge more and more confused, and I don't get it by myself, so could please somebody give me a hand.: I... -
using load movie to load to another movie
This seems like it should be easy...but I can't figure it out - my action scripting skills are pretty basic I have a movie(created in MX) that... -
How can I load movie contents into another movie?
How can I create the following functionality? container1.loadMovie("img1.jpg") container2 = container1; Basically, my problem is that I'm... -
Load JPG into a movie
on (release) { loadMovie("../Images/image1.jpg", "axl"); I'm trying to load an external JPG into my flash movie. I've put the script above on a... -
load the movie help!
I would like to use two different SWF inside 1 HTML page. One SWF will be the main content area and the other swf will be the navigation. How can I... -
ierick #2
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
-
Gipoh #3
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
-
ierick #4
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
-
ierick #5
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



Reply With Quote

