View Full Version : Load movies
avelives
01-29-2003, 03:22 PM
I have a large movie (which is for the most part a self contained site) however i have a few graphical movies (individual movies) which i wish to load into the main timeline when particluar buttons are pressed.
I would put them in the main timeline but then the preloading time is just way to long.
What is the script for laoding smaller movies into a larger one ONLY when a button is pressed.
I should say that by loading the movies i do not want any of main timline to change or be affected.
Caimin
01-30-2003, 09:31 AM
Adding this code to a button will tell it to load the .swf "nameOfFile.swf" into _level1 of your main .swf.
on(press){
loadMovieNum("nameOfFile.swf", 1);
}
To load into a different _level, just change the 1 to another number.
Helps?
linckx
01-30-2003, 09:50 AM
you could also use the target-method (a little more complicated, not much) with more 'adjust-possibillities'.
check the tutorialsection in here for a good tut on loadmovie
robin :)
I was checking this post and remenber that i had a similar problem.
I've been testing this http://conceicaoleitao.no.sapo.pt , but i think that it's too large (aprox. 400K), so what i've been loocking for is to "load multiple movie's" on the main movie so that the user can choose those themes that already been loaded without seeing them loading.
I hope that i maked myself clear!
linckx
01-30-2003, 10:28 AM
I understand you :)
nice site btw...
now what you want to do is:
for targets:
when your main movie is loaded immediately ask flash to load the other movies into targets, preferably invisible ones (or just hidden is ok too)
if hidden or invisible isn't possible, make your loaded movie like that, so your first frame doesn't have anything in it, and it only goes to the second frame when the necessary button is pressed.
this also goes for levels.
see where I'm heading?
A movie doesn't require to be loaded when it needs to be played, you can load it in advance, but whatever you do, make sure your main movie is loaded fully first, because that's the part people want to see.
I'm just focus on the tech aspect. I'm trying to study the AD!!!, to solve this small problems. Everyday i realize that to make some good stuff, you need a few team: programer, motion effects, graphic designer, sound engineer and maybe an redactor. Any way, I've looking to solved this question on this tutorial, but doesnīt work on me!!!!
IMPORTANT NOTICE: Iīm a graphic designer that just finished an intensive course on Multimedia design. You may say "nice for you", but i only get the teory (ex:hypermedia system principles), now i want to improve the all practical aspect.
linckx
01-30-2003, 11:16 AM
I can't quite seem to follow what your problem is with this...
what do you mean by AD?
robin
Sorry, Actionscript Reference Guide
linckx
01-30-2003, 11:37 AM
ok, but what is it you need on the project? works fine for me :)
robin
As a portuguese organization testing website, there is some organization clients that doesn't have a DSL connection. And that can be a problem for those. Am i wrong thinking on that possibility? or may i way for more feedback's?
linckx
01-30-2003, 11:53 AM
I think for people with slow connections you should always make sure that there is a visible preloader, so they get something on their screen.
But actionscript won't react in a different way on slow or fast... perhaps a little different on mac/pc but not really a problem.
so the only thing you need to keep an eye on, is that when people wih slow connections view your site, they don't see a blank screen while your content is actually loading. perhaps you can make a splash-page in front.
but you don't have problems with the loading movies do you?
robin
No, i donīt have any problems with that.
I'm moust worry about those eventually reactions on dynamics, graphic design, and here, programing stuff.
I'm always on eye to improve that, that's why i made so many questions here.
Always learning with ich other.
Thankx for your posts
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.