Preloading Movies
Hi y'all
I've got a problem with making a preloader. The thing is I want to preload a swf movie (child) from my main swf movie (parent). I can handle the loadMovie event, however my preloader stinks! Is it possible to do something like getBytesTotal() from my 'parent' to get the data from the 'child'?
Greetz
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 09-05-2002, 11:43 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Preloading Movies
i have a movie that loads other movies throughout the site. i was wondering if theres a way to preload those movies before they are needed eliminating the wait.
i figured i could load it early in the main movie and put a blank on the first frame of the loaded movie. but doesnt this slow the main movie down???? please advise what the trick is, thanks
Preloading Movies
Hi Fker's
I cna't get Flash MX to preload my movies, they cause all kinds of grief. I had no problem doing it in 4. 5. but I can't get it to work in MX. I'm using the same technics, the only difference is that I use ' with ' instead of ' tell target ' Is there something new that I should be using or is it that MX just wont do it?
cheers
yeffer
Preloading Other Movies?
hi, is it possible to preload another .swf file while playing a loading screen? i know about the ifFrameLoaded thing but what about ifMovieLoaded? does something like it exist?
many thanks.
jay
Preloading Movies?
Hey, I have this site, and im trying to load different movies into an MC. Everything works fine, but theres one thing that bothers me. How would I go about doing something similar to this site:
http://www.fontsforflash.com/
If you notice, there is a preloader for every site section. How could I make a preloader from inside my main movie, and make it preload any movie that is about to be loaded instead of having each movie have its own preloader. This thing is bugging me, since more file size is added by giving a preloader to each swf. Can anyone direct me to a tutorial or give me some sample code?
kthx.
Preloading 4 Or 5 Movies
I have a preloader and it is working fine with a percentage bar and value. The problem is that in my main movie I have a number of other movies being called:
loadMovieNum("mask.swf", 20);
loadMovieNum("logo.swf", 20);
loadMovieNum("sparkle.swf", 20);
loadMovieNum("home.swf", 20);
When viewed on the web the main movie preloads and starts before the other movies have preloaded. This is especially a problem with mask.swf as it is an animated mask used to cover the footer of the main site. I couldn't use this as part of the main swf since it uses some of Robert Penners easing equations and for some reason my main movie (which has a lot of code I did not develop) does not like them and will not run them. Hence the separate movie(s). So is there a way that I can preload a number of movies including my main movie before the main movie starts? So that the mask is in place and the content is not visible underneath (until the mask moves). At the moment there is a 10 second delay before all the other movies appear.
The code I have for the preloader is this:
Frame 1:
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal() + Math.round(_level20.getBytesTotal()));
trace("bytes_total is "+bytes_total);
trace("bytes_loaded is "+bytes_loaded);
getPercent = bytes_loaded/bytes_total;
_root.loadBar._y = 235; //Load bar is placed off stage and then put on stage at startup to prevent appearing too soon
_root.loadBar._height = getPercent*48; //was 100. changed to match height of logo
_root.loadText = "onscreens is "+Math.round(getPercent*100)+"% loaded";
if (bytes_loaded == bytes_total) {
gotoAndPlay(3);
}
Frame 2:
this.gotoAndPlay(1);
Frame 3:
stop();
The preloader graphics are on Frames 1 and 2. The main content/actionScript is on Frame 3.
TIA
Adrian
Preloading Sub Movies
Ok can anyone help with this one?
I am loading movies within movies within movies. I amdoing this by loading them into empty MCs for ease. The problem I have is preloading them I can't seem to get any but the intitialmovie to preload correctly.
Any ideas anyone
thanks in advance
Richie
Preloading Movies
Hello,
I am working on a flash website with many movies that are called on user actions. such as loadMovie level whatever when a user clicks rolls over etc etc. i have a preloader that fills a graphic as the content is loaded. however, it is only preloading the content on the first page. i want it to preload all the movie files for the whole site at this point so that the user can seamlessly browse the site without having to wait for each section to load.
heres my code for the preloader:
mask._yscale = percent;
this.onEnterFrame = function() {
percent = int((getBytesLoaded()/getBytesTotal())*100);
if (percent == 100) {
delete this.onEnterFrame;
gotoAndPlay(2);
} else {
mask._yscale = percent;
display = percent+"%";
}
};
thanks
Preloading Movies
Hi, im rather new to flash and im using it to animate an short little movies from 3d models for a site intro. is there a way to use action scripting or something else to preload the movie so it dose not lag? I don't wanna turn down the quality because his site is my portfolio.
Edited: 05/19/2007 at 11:23:46 AM by pegasus1820
Preloading Movies
How do I preload (or create the apperance of preloading) on a .swf file I am loading in to movie clip with in my main .swf file.
here is a zip file which has all the files and hope fully you will get a better idea of what I am meaning as I don't think I explained it well.
http://www.arctosdesign.com/load_movie.zip
Thanx alot
Preloading Movies
I'm relatively new to Flash, and was wondering if someone could tell me how to preload movies. At the moment, I'm working on a movie which will be really big (in terms of file size) by the time I'm finished. And so I want to load the whole thing before it plays, so that it plays at the correct framerate, rather than playing as it's loading and therefore being tediously slow. Thanks for any help
(Hope that all made sense!)
Preloading Load Movies
I have a few swf's that I'm loading into certain targets at different stages throughout a movie. The load movies take a few seconds to load up. I was wondering if its possible in these few seconds could I have a preloader or something to make the screen a bit more interesting rather than just a black part of the screen showing and how to do this. Anyone???
Preloading Loaded Movies .?.?
Does anyone know of a way to preload .swf's that are loaded from the main swf, using loadMovie.?
I have one swf that is basically a container for many small animations that are loaded.
I want to preload them all...
Preloading Multiple Movies
Could anybody post some sample .fla how to preload multiple movies. I tried the tutorial posted at where-here.com but it doesn't seem to work if you have movies preloaded with animations in it.
Thank you
Preloading Seperate Movies
Just wondering if it is possible to preload a seperate movie before it is actually loaded?????
Thanks for the help.
Preloading Additional Movies....HELP
i made a movie, located at http://www.comicscave.gr/skinetic which, after is loaded, plays a small intro, and then the buttons appear. however, i made a small swfx created effect to play upon button over state of each button. because of the nature of the loadmovie command, the effects are loaded first time when the user moves the cursor over the buttons, so if a user has a really slow connection, he will wait for ever for the effects to appear, and the page will seem abnormal. is there a way to preload these small(3-5 k) movies along the main movie,and play them whenever the mouse is over one of the buttons?
Preloading Mulitple Movies
Hi All,
I have a flash movie - http://www.virtualistic.com/flashed_site/start.htm - with 6 sub-movies that are loaded into an empty movie clip target (conveniently named empty_mc) (not levels) which resides on the main timeline of the main movie. I have a preloader on the main timeline of the main movie which works fine for the “shell” or “holder” (i.e. the frame for the other movies to load inside of).
The problem is when a “submovie” loads in, its content is not immediately available and was not included within the preloader just mentioned.
I’ve found two excellent articles/scripts that I thought would address the issue but don’t apply exactly:
This great script seems to be for preloading multiple movies into MULTIPLE targets but not for loading into a SINGLE target. (I tried using the same target name 6 times but nogo): http://www.bokelberg.de/actionscript/4.html .
Colin’s excellent The Art of Flash 5 Preloading - http://design.oreilly.com/news/action_0501.html - addresses Multiple-Movie Preloaders as well but I’m not sure it’s what I’m after.
Any suggestions?
TIA.
Brian
Preloading Two Different Movies At The Same Time
I am trying to preload two different movies at the same time. One has the sound loop and the other has the actual movie. I'm not sure how to get the preloader from level one check if the sounds on level two are loaded. Could somebody please help me!!
Thanks
Preloading Movies Problem
What I'm looking to do is have a preloader scene which loads all the movies in the main scene (there are 3), and then be able to tell when to play the movies in the main scene timeline? I would like a preloader that says something to the effect of, "Loading Menu", then "Loading Sounds" and "Loading Images". Does this make sense? I'm getting desperate...this is the last thing holding me back from finishing my site. Thanks!!!
Preloading Additional Movies
I understand how to make a basic preloader that checks the frames of a seperate scene but what if I have several other ".swf" files that need to be loaded into the same movie /or scene and accessed quickly without having to put preloaders in each of those files?
Is there a way to load those movies when the first preloader takes-off and have that preloader check to see if they are loaded?
Or should I be asking myself, why don't I, instead of saving seperate .swf files and loading each into the main movie when called upon, why don't I just incorperate them into the same file as the preloader, just put each in a seperate scene. I'm not sure why I didn't do that. Perhaps I didn't understand how to at the time or maybe I needed it to access it as a seperate file.
Hope I haven't confused yourself.
Preloading External Movies
i have multiple externl movies coming in at all different times is there a way to preload them in the preloader but then come in on the load movie command at their designated times.
thanks
PreLoading Multiple Movies
Ok, I know that this question may sound dumb to alot of you but I am a designer that is trying to progress into the realm of development and programming. I have recently lost my ActionScripter, so I have serious motivation to learn AS and to master XML...
Here it is:
I know how to make a percentage-preloader for a single movie, but I do not know how to preload one section of my site at a time (ie load main first, then PROFILE when it is selected by user etc)
Can anyone help me????
Preloading Oaded Movies
hi there,
If you could advise or steer me in the direction of a tutorial for this question.
This is all built in flash 4 but I can go to 5 if it holds the answer.
I've a main movie with other movies load into target windows, which all works fine. The problem is that the preloader in the main movie does not seem to be recognise the size of the movies loaded into the target windows, and isn't looping, the movies are just loading when they can.Is it to with _totalframes or bytes loaded?
Which is a problem,
ttfn
Preloading External Movies
i am loading a couple of external movies into a movie (holding movie). i am loading the movies into a target (movieclip).
i want to preload the external movies, before my holding movie starts playing the external movies.
any ideas on how i can achieve this.
thanks
hans de feber
Preloading External Movies
Hi -
I have this huge problem!
Ive used the loadmovie action, but it takes about 5 seconds or more to load it the first time -
Is there a way to load the whole folder with all its contens?
Or do I have to load the swf's into the preloader -
and then again to the main scene?
hope that any of you knows the answer!
thanks!
Preloading External Movies
Greetings everyone. I am having a problem with loading external movies. I have one main movie in which I am trying to load 6 external movies in it. Each move resides on a different level than level zero. My main movie only taks 2 seconds to load on a modem connection. One of the movies takes 17 seconds to load. So I put a preloader in it that sets all other movies invisible until the bytes in the one movie is finished loading. So on my main movie in frame 1 I have loadmove function for all the external movies. One of the external movies has the preloader like I said earlier that sets the visibility of the other movies to false. Does anyone have a better idea. I don't understand how people for example the 2advanced.com site loads so quickly. It has to be an explanation. I have read so many books but all the preloader topics are for within one movie. I understand that but please help me out
corynthionwright@hotmail.com
PLEASE HELP PreLoading Movies Problem
I have a project with multiple external Movies that load in when one has completed. In the beginning of each movie I have a preloader. BUT, is there any way to Load these movies while the previous one is playing? They all combine to form one movie: the 1st loads, then as the 1st is playing I would like the second to load, while the second is playing I would like the third to load, etc. Of course I don't want any of these "loading" movies to play until they are called to do so. PLEASE HELP!!!
Thanks,
Jason
Preloading Modular Movies
hello...
Using this code in a seperate scene (script in frame one - goto frame 1 in frame 2) for my preloaders:
----------------------------------------------------------
_root.total_bytes = _root.getBytesTotal();
_root.loaded_bytes = _root.getBytesLoaded();
_root.remaining_bytes = total_bytes-loaded_bytes;
_root.percent_done = int((loaded_bytes/total_bytes)*100);
_root.fadein.gotoAndStop(percent_done);
ifFrameLoaded ("main", 2) {
gotoAndPlay ("main", "no1");
}
loadbytes = loaded_bytes+" K loaded out of "+total_bytes+" K";
----------------------------------------------------------
works fine for the main movie but goes weird when i try and use it on swf's I try and load into my main thing...
For example see http://www.designer-resource.com - notice how main preloader doesn't loop but subsequent preloaders do..?
I guess it's down to a conflict with the main scene - any suggestions or alternative script appreciated...
Thanks, John
Preloading Multiple Movies
hi people,
i have got the gist of creating a preloader but before i start i was wondering how i would go about this scenario :
i have 4 swf,s about 700kb each now if i get the first one to load using a preloader what would be the best way to have the other 3 preloading whilst someone is watching the first ?
the idea would be that as soon as the first swf has been watched the next drops in and plays straight away as it has been preloaded then whilst this is being watched the next preloads and so forth
is this possible or am i asking a bit too much ??
Preloading External Movies
I know this has been asked before but never FULLY resolved - so I am back!
Been looking everywhere on how to easily do this. Something always goes wrong. I have a blacnk movie clip that I load external videos (swf files that contain video) into this blank movieclip. I want to initally stop the video (easy enough), pop up a progress bar that shows the percentage loaded and once done, play the movie. You would think this would be easy enough but sometimes the video size of the 2nd or 3rd clip loaded doesn't show up, etc.
Can anyone point me to a resource or fork me some actionscript that will allow me to take care of all of this easily? Thanks!
Preloading External Movies
I know this has been asked before but never FULLY resolved - so I am back!
Been looking everywhere on how to easily do this. Something always goes wrong. I have a blacnk movie clip that I load external videos (swf files that contain video) into this blank movieclip. I want to initally stop the video (easy enough), pop up a progress bar that shows the percentage loaded and once done, play the movie. You would think this would be easy enough but sometimes the video size of the 2nd or 3rd clip loaded doesn't show up, etc.
Can anyone point me to a resource or fork me some actionscript that will allow me to take care of all of this easily? Thanks!
Preloading Multiple Movies
I have a main site that has been compartmentalized into 6 sections. The root movie loads 6 separate movies for each section. The problem i'm having is that my preloader works only for the root movie not each section, so sections are loading at different rates, and this interferes with functionality.
Is there a way to have a single preloader take in consideration multiple movies?
thanks icarus666
Preloading External Movies
I really need help here guys...
I am building a site and i need to have one main preloader that is utilised when i load .swf into the main .swf.
I have found this tutorial which works well -
http://www.kirupa.com/developer/mx/p...transition.htm
... the only problem is that i need a preloader bar to illustrate the .swf loading!
Can anyone help! (I am desperate)
Preloading ALL Movies Without Showing Them
Okay, first of all, I realize that I can just test out several ways for doing this, but my movies are massively HUUUGE, and my connection sux, so please help me out here.
I'm trying to load a bunch of swfs at once, instead of doing them separately when a user clicks on a link. So here's what I was thinking I can do. In the _level0 movie, I can load all of them up at _level1 thru how many ever levels I need for each swf file. While loading the very first swf, which will serve as a "cover" as well as the "preloading" screen, in _level100. So the preloading screen gets up, and everything is being loaded in the background in _level1. Once the preloader finishes, it'll unload ALL the movies except for the one that I want shown, and then I get rid of the preloader, thus removing the cover. The next time the user needs to load the movie, it will already be in the user's cache, right? Will this work?
Preloading External Movies
i'll try to explain this the best i can, okay, here goes.
I have my main movie that has five buttons within it. these five buttons call on an external movie, 'bgimage.swf' that has five different images in it, these have the labels attached to each image being 'im01', 'im02' etc. the code i have on the five buttons within my main movie is
on (release) {
with (_root.bgimage) {
gotoAndPlay("im01");
}
}
this pulls in an image and attaches it to a mc container on the main stage that is masked...
this works perfectly. when i click on any of the five buttons, the image in my main movie changes. okay... but what i am after is this.
i want to five buttons to only appear if the five frames from the external movie have loaded? once the five external frames have loaded, then the buttons become visable in my main movie.
hopefully i have explained this correctly.
would i be correct in thinking that i would use some AS that uses the commands getbytes etc? or maybe build it all as one external movie?
tasvinO
Preloading Several External Movies
Hi
I,ve some difficulties to do the following:
I've one index movie with 3 buttons, each button opens an external movie.
- how can I make a preload for each movie?
- place a preload inside index, or inside each movie?
- if inside index, how?
thanks
Question Re: Preloading In Inner Movies
Hi,
got a question rereloading .. I know there are tons of examples and I have most of them =) but I am still having problems understanding some concepts and actually getting my preloaders to work properly. First of all I have a main movie that loads movie called "Studio", then inside my (externally loaded swf file) studio.swf I am doing more preloading of some jpg images ... preloading works fine for all my root movies but seems to have problems once used in inner movies. One of the problems is once loading my "studio" it finishes loading sits on 100% for a while then loads after what could be causing this? Same thing happens if I reuse the preloader for the jpg images (is there a bette way to preload each jpg image there is a lot of them) that I am loading in "studio" they sit on 100% for ages before actually showing up ??? Any ideas or nice code that could solve it?
//frame 1
onClipEvent (load) {
_xscale = 0
tot = _root.content.getBytesTotal();
}
onClipEvent (enterFrame) {
car = _root.content.getBytesLoaded();
perc = int((car/tot)*10)
_xscale += (perc*10 - _xscale)/5
if(car >= tot) _root.content.nextFrame();
}
//frame 2 --> graphics for studio
'_root.content' is movie clip holder in my "main movie"
Any suggestions ?
cheers
Preloading Flash Movies
Hello peopl...new guy here with a question...but first some back ground.
just graduated with an associats in computer programming but...doing my final project i found out too late that i needed to pre load my movie into less then 100 killobite pices into a projecter so as not to freak out the flash program. Meaning my movie < which was interactive, was way too big and wouldn't render or any thing....so i need a tutorial or somthin so i can get on with my inspired flash creation....if you under stand my question or even if you don't puh-leeease respond...
thank you.
Preloading Multiple Movies
I've created mutilple Flash movies and now trying to put all of them into a preloader. I can't seem to be able to synchronize my preloader to start and wait for every movie to be loaded and then show the Flash movie.
Any body got some hints and the sequence how I should place the elements on the timeline???
Preloading External Movies
I am trying to load an external movie on the first frame of scene 2, but I don't want it to play until frame 85... I tried the following with no luck...
loadMovieNum("flash/loop.swf",1);
_level1.gotoAndStop(2);
and then I put the next script on frame 85 where I would like it to play:
_level1.gotoAndPlay(1);
Not working though???
Any ideas? Thanks guys
Streaming Movies/preloading
Hi all...
ok I am making progress byte by byte I am designing a flash web site...the main idea is that I have a Main page, say home.swf loaded into an html page. there is only ONE html page...the home swf loads and then the other swf files load into a new level when activated by a button. ok. here is the issue. each of these swf files are fairly decent in size. I would like to have a preloader (not just the bar) but like maybe some quotes fading in and out and the WHOLE movie to load. the home.swf file is only like 120K and I have the other swf files loaded in the first few frames of the home movie using loadMovieNuM. I thought the purpose of using this loadmovie was so it would load in the cache before the user actually clicked on a button. so basically what I want to happen is for all of the swf files to load before the home.swf file is even shown.
right now what happens is you see the preloader for like 2 seconds then home.swf comes up....but lets say you go and click on the last button (which would load the movie contact.swf which should load on the like frame 5) and then is activated when you click on the button.
does any of this make sense?
so I guess what I am not understanding is #1 how to create a preloader with animation (fading quotes)
and then if I use a preloader, how come it doesn't actually keep showing until after all of the swf files have actually been loaded?
thanks for your advice and help!
Kari
Preloading Multiple Movies
I need a preloader which will preload the main swf with all external swf's inside it (dg, image, menu etc.)
Help?
Preloading External Movies
The title says it all...The question: How? Do you put the preloader on the external movie...?
Thanks!
~Sportzguy933
Preloading External Movies
The development url is http://www.glencoad.com/dev/clients.html if it helps to see what I'm doing. I have a main movie called "clients.swf" with an empty movie clip called "empty" within it. Down the left side of the clients.swf file I have a list of buttons with the client names. Each button is set to load an external movie into the "empty" clip. For example my first button loads an swf file called "access.swf". I'm doing this by using the following...
on (release) {
empty.loadMovie("flash/clients/access.swf");
}
The movie loads fine, but I have buttons with the exteral movie that jump between frames in one scene. For that I'm using the following...
on (release) {
gotoAndStop(2);
}
Here's the problem. The buttons within the external swf files are not going to the correct frames. I'm assuming it's because the file is not fully loaded, and I'm clicking on the buttons prematurly. I'd like to ad a preloader to my external movies, or find out if i'm scripting my buttons incorrectly. Anyhelp would be greatly appreciated.
Thanks
Van
Preloading Two External SWF Movies
Ok, my deadline is tonight (it's 5pm now)... ouch. This is pertaining to ActionScript 3.
My goal is to preload one external movie then play it automatically. While the first movie plays, the second movie will be preloaded into cache. When the first movie finishes playing and the second movie is done loading, then play the second movie. Here's the logical concept of the preloader movie and the two external SWFs:
preloader.swf
|___animationOne.swf (first movie to preload)
|
|___animationTwo.swf (second movie to preload)
Below is the code I have written so far (first frame of preloader.swf). Now it seems I have two problems. My handlers are not getting called on the INIT event of the Loaders. Also I can't seem to access the Loader.content so I can do something like mcLoaderOne.content.stop().
Some one, kindly tell me where in my code I'm making the mistake(s).
Code:
// Variables
this.myPreloader.reelmc.visible = false;
this.myPreloader.loadbar.visible = false;
this.myPreloader.percentTextDisplay.text = "";
firstMovie = "AnimationOne.swf";
secondMovie = "AnimationTwo.swf";
urlReqOne = new URLRequest(firstMovie);
urlReqTwo = new URLRequest(secondMovie);
doneLoadingOne = false;
doneLoadingTwo = false;
donePlayingOne = false;
donePlayingTwo = false;
//-----------------------------------------------------------------------
// Event handlers
function onInitOne(e :Event) :void{
this.doneLoadingOne = true;
e.target.content.hide = true;
trace(e.target.content.name + " has finishd loading");
}
function onInitTwo(e :Event) :void{
this.doneLoadingTwo = true;
e.target.hide = true;
trace(e.target.content.name + " has finishd loading");
}
function onCompleteOne(e :Event) :void{
this.donePlayingOne = true;
trace(e.target.content.name + " has finishd playing");
}
function onCompleteTwo(e :Event) :void{
this.donePlayingTwo = true;
trace(e.target.content.name + " has finishd playing");
}
// Create MC loader
mcLoaderOne = new Loader();
mcLoaderTwo = new Loader();
//Add the event handlers as listeners for the INIT event.
mcLoaderOne.addEventListener(Event.INIT, onInitOne);
mcLoaderTwo.addEventListener(Event.INIT, onInitTwo);
// Add event handler for event fired when movie completes playing.
mcLoaderOne.addEventListener(Event.COMPLETE, onCompleteOne);
mcLoaderTwo.addEventListener(Event.COMPLETE, onCompleteTwo);
// Load the first movie
mcLoaderOne.load(urlReqOne, null);
trace("Loading first movie");
// If done loading one, unhide it and play it, then load second movie.
if(this.doneLoadingOne){
trace("Attempting to play first movie");
this.addChild(mcLoaderOne);
mcLoaderOne.hide = false;
mcLoaderOne.content.gotoAndPlay(2);
mcLoaderTwo.load(urlReqTwo, null);
trace("Loading second movie");
// If the first movie has finished playing and second movie done loading
// then play second movie
if (this.donePlayingONe && this.doneLoadingTwo){
mcLoaderOne.unload();
this.addChild(mcLoaderTwo);
mcLoaderTwo.content.gotoAndPlay(2);
}
}
this.stop();
Preloading External Movies
I have the Flash MX Bible and built the preloading external assets stuff from pg 816 (for those who are familiar with the book) but it doesn't work. Each individual loader file works, but when I attempt to load an external jpg/mp3, the file loads fine, but the pre-loader doesn't work. It gets placed onto the stage and just shows NaN of NaN KBLoaded in the text box.
I can;'t find the fricken CD that has the examples on it so I can't figure out what I've done wrong. I've double checked the code with mine, but just can't see where I've gone wrong.
I can post the fla's if necessary. thx.
Preloading Multiple Movies?
I have a question about loading multiple movies into my main movie. I have the same kind of interface setup as 2advanced.com, doors open and close.
My main movie in _level3 is the doors animation. When the doors shut, it loads the new swf into _level2 and so on for all my external movies. Here's the kicker, I have 30 external movies that are around 80k each. Everytime the doors shut, it only loads the current movie. So basically, on a 56k, you have to wait everytime the doors shut for the entire 80k to load.
Is there a way to have all the movies load in the background? There would be a stop and a blank frame in each external movie. My main movie is in level 3 so maybe load each external movie into it's own level above that? Then when the doors shut, it calls the right movie from it's above level to go into level 2. Is that possible?
Here's what my code looks like for the doors and buttons:
Each button has this:
on (press) {
_level0:movietoLoad = "borrowerinformation.swf";
_level3.gotoandPlay(2);
}
As soon as the doors shut it calls this:
loadMovieNum (_level0:movietoLoad, 2);
Preloading Multiple Movies
Hi all!
I just cant seem to get my preloaders to work.
I have a preloader for my main movie, and it works great, but I have a problem. This is my situation:
I have an empty MC, holder, which exists inside another movieclip, called lower. When I click a button in another MC called menuanimation, f ex the "portfolio"-button, I set a variable called "film" to "portfree.swf", the swf I want to load into holder.
Inside the lower MC,Inframe1 I have the code
loadMovie(_root.menuanimation.film,_root.lower.hol der);
I think thats correct, cause it works...hehe...
However, I want a preloader for that empty MC(holder) and I cant seem to get it to work!! Arghhh!
Preloading Movies And Playing Them Later?
Hello, apologies if this seems like a redundant question... i've been reading through all the turorials and forum threads i can find, and am just confused at to what exactly i need to do next.... my first time trying to use preloaders but am finding i need them in order to make my project run smoothly....
my situation: want to preload 5 swf files into my main movie, and have them at the ready to play when i want them to (either by an onEnterFrame or onPress).
i started working with some preload array script from Scotty i found on one of the threads, but elsewhere i've seen info about putting extra frames into the uploading swfs and am unsure what i need to do with this or how it would fit in with the below code. right now, when i try to play one of the uploaded swf files nothing is happening, and i'm guess my code is wrong there too, but don't know what to put....
....pretty new at all this and feeling rather clueless.... help??!!?
here's what i've got thus far, on first frame of main movie, just don't know where to go from here....
Code:
stop();
movieArray = new Array("ams1voice.swf", "apmmvie.swf", "ccmvie.swf", "clientsatprinciple.swf", "cycle.swf". "govmvie.swf");
var j = 0;
var loadTot = 0;
function preload() {
var mvieH = this.createEmptyMovieClip("container"+j, 999+j);
mvieH.loadMovie(movieArray[j]);
var temp = this.createEmptyMovieClip("tmp"+j, j);
temp.onEnterFrame = function() {
var t = mvieH.getBytesTotal();
var l = mvieH.getBytesLoaded();
var loaded = Math.round((l/t)*100)/movieArray.length;
bar._xscale = loadTot+loaded;
info.text = "loading movie...";
//or
//info.text = loadTot+loaded+" percent loaded"
if (t == l && t>5) {
//mvieH._visible=0;
loadTot += loaded;
j++;
nextMovie();
delete this.onEnterFrame;
}
};
}
function nextMovie() {
j<movieArray.length ? preload() : (info.text="", bar._visible=0);
}
preload();
apmholder.preloadSwf("apmmvie.swf");
amsholder.preloadSwf("ams2.swf");
//etc etc
thanks for any help!!
Preloading Individual Movies:
Hi all:
I'm fairly new to actionscript and i have this one flash site i am working on and have trouble creating the preloaders for each individual movie.
what i need to achieve is this:
(please pardon my brutal way of explaining this)
the main flash file loads all five external movies in the followin manner:
loading 1 of 5... done
loading 2 of 5... done
loading 3 of 5... done
etc..
when all movies are done loading, the main movie proceeds into playing with all movies loaded and playing.
something more like this website:
www.insertsilence.com
----
i've tried other forums and all they have helped me with are links to other forums. could someone pleez pleez help me out here?
thanks tons!!!
|