Pre-Loader
Please help me make a preloader!?! I’ve tried just about every tutorial, but nothing works. The main animation is 1 frame long and has three layers/ how do i make a preloader?
Please Help
Thanks
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 01-29-2003, 01:02 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Double Loader & One Instance Level Loader
Just sharing what I figured out.(which wasn't much but hey figured I'd post it anyway)
TASK1
I needed a preloader to load two seperate MC's into levels 1&2. Level 2 contains the interface which would change the MC on level 1.
TASK2
Once these two initial movies were loaded I then needed a single instance of a preloader that I could call upon for each subsequently loaded movie on level 1.
All the MC's have linkages so standard loaders would not start until 30%-40% of the MC was loaded.
I used a couple of files from oldnewbie.
http://odin.prohosting.com/~oldnew/f...ng/preload.zip
For TASK 1 I used the code from the above file but modified it a little.
I simply duplicated every line that referred to containerMC and called it containerMC2.Then at the end of the script instead of loading a single movie into level 0, I loaded the 2 MC's I had previously loaded into the containers onto levels 1 & 2. There's probably a much better way to do this - but it works
IF ANY OF YOU HAVE A BETTER SUGGESTION OR A WAY TO PRELOAD 2 MOVIES WITH LINKAGES INTO SEPERATE LEVELS WHERE THE PRELOADER MOVES FROM "Currently preloading movie 1" to "Currently preloading movie 2" WOULD BE AWESOME.
For TASK 2 I used another file from oldnewbie (though I can't recall which thread I found it in).
It's a One Instance Preloader for all subsequently loaded swf's.
The button code for loading a movie:
on(release) {
_root.preloader.gotoAndStop(2);
loadMovieNum("One.swf",1)
}
The preloader code:
FRAME 1
stop();
FRAME 2 (where the symbols are - same symbols as in the .zip file above)
this.onEnterFrame=function(){
//trace the percentage of the movie that has loaded
percent=(_level1.getBytesLoaded()/_level1.getBytesTotal())*100;
if(!isNan(percent)){
//trace(Math.ceil(percent)+"% loaded");
if (percent == 0) {
percent_display = "";
} else {
percent_display = Math.ceil(percent) + "% LOADED.";
}
this.loadbar._visible = true;
this.loadbar._xscale = percent;
if (percent > 1) {
this.reelmc._visible = true;
}
_level1.stop();
}
if(percent == 100){
this.gotoAndStop(1);
delete this.onEnterFrame;
this.reelmc._visible = false;
percent_display = "";
this.loadbar._visible = false;
_level1.play();
}
}
stop();
That's it. If you can use it, great.
Simple Loader Fails When Loading In An .swf Containing The Loader.
Sorry for the complicated topic. I got a .swf that loads in other .swfs. Rather than figuring out how to make a loader for loading .swfs I thought I'd just use a simple loader in the .swf I'm loading.
However, it doesn't work. It starts fully loaded but doesn't finish. Heres the AS:
ActionScript Code:
_root.stop();
PercentLoaded = _root.getBytesLoaded()/_root.getBytesTotal()*100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
_root.play();
}
Anyone got a clue? Or would anyone be willing to point me in the direction for a very simple .swf loader.
thanks!
Simple Loader Fails When Loading In An .swf Containing The Loader.
Sorry for the complicated topic. I got a .swf that loads in other .swfs. Rather than figuring out how to make a loader for loading .swfs I thought I'd just use a simple loader in the .swf I'm loading.
However, it doesn't work. It starts fully loaded but doesn't finish. Heres the AS:
ActionScript Code:
_root.stop();PercentLoaded = _root.getBytesLoaded()/_root.getBytesTotal()*100;if (PercentLoaded != 100) { bar._xscale = PercentLoaded;} else { _root.play();}
Anyone got a clue? Or would anyone be willing to point me in the direction for a very simple .swf loader.
thanks!
Loader Page - Web Site Starts Behind The Loader
Hey Everyone...
i ran into a very odd problem... to loader page on this site:
http://www.onefortheditch.com/new/loader.html
works fine, except the fact that it doesnt stop the web site from playing while its loading. the web site plays the splash page in the background while its loading...
Any ideas what would be causing this? I use this same feature on my personal site, and it works fine, so i compared codes, and i cant see anything wrong.
Heres the native files if anyone wanted to check it out:
http://www.onefortheditch.com/loader.zip
Thanxs in advnace!! :)
Random Flv Loader + Radom Swf Loader
so i am making a flv player with an flv ad at the beginning, the main flv in the middle, and a swf ad at the end. the issue i have is that the flv ad at the beginning has to be randomly selected from a short list of flv ads in a network folder and the swf ad at the end is a click-able flash animation that has to correspond with the flv ad at the beginning.
so for example:
i have a video flv and swf ad pair for a window company, a restaurant, and a shoe store. when someone loads the video player, the shoe store flv ad is randomly loaded, the main video plays, and at the end, the click-able swf shoe store ad loads.
does that make sense?
THANKS!
Loader Insid Other Loader,how Loadmovie?
Hello
on the stage i have a loader* that shows a movie,in this movie there is a loader# too. in second loader# there is a button that by clicking it, the movie shown in first loader* must be changed.
please tell me how can i doing this with actionscript.........
cheers
Loader.unload() Not Available When Loader Is Not On Displaylist?
HI
I have a preloader swf file that loads in different swf-s using the same Loader instance.
However before loading in the next swf, I'm trying to call Loader.unload()
But it fails since the Loader object is not on the displaylist...
What happens to the data that is loaded with Loader? Is it replaced when Loader.load() is called next time?
ActionScript Code:
public function contentloaded(event:Event):void{
TweenLite.to(loading_mc, .5, {alpha:0})
cont = event.target.content
addChild(cont)
}
public function loadnew():void{
loader.unload() // Error #2025: The supplied DisplayObject must be a child of the caller.
if(cont){
removeChild(cont)
cont = null
}
showloader()
loader.load(new URLRequest(file))
}
Loader Or Loader Context Problem
I have two swf files, each one almost with the same classes, the most important one is a Singleton class, each swf does "singleton.getInstance()" . The diference is that one swf is like a container and the other one is like a module.
So when the container loads the module from an absolute path like loader.load("file://c:/modules/module.swf") or loader.load("
Using Stage Properties When Loader From A Loader
im doing a preloader that creates a var of the type loader and then loads another swf and add it to the stage with addChild, the problem is that the loaded swf cannot access stage properties and if i try to use them i get a #1009 runtime error, heres the code
----------PRELOADER-----------
var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(Event.COMPLET E, done);
l.load(new URLRequest("test.swf"));
function done(e:Event)
{
addChild(l);
}
--------------------------------
and heres the test swf that is very simple
--------- test.swf -------------
var N:Number = stage.stageWidth;
trace(N);
--------------------------------
Hope someone can help this is killing me x.x
URL Loader & Loader LIMIT?
I'm trying to create photo gallerys and have run into a problem.
I have about 30 thumbnails that i wanted to load but the loader only loads 18 and the rest give me URL not found errors?
SO my question is does anybody know if there are size limits for the loaders??
Thanks
[loader] Load Jpg With Loader?
Hi, I making my website and trying to load jpg into a movieCLip which will holds all of my loaded jpg images.
I have a MovieClip called "holder"
and I want to load img into this clip. so I wrote
ActionScript Code:
holder.loadMovie("myPic.jpg");
this part I had no problem, but the thing is that How do I apply a preloader to this? I mean if this image is IN the movie, then I can have a preloader in the first frame and load this pic, but the thing is that I'm now loading this images directly from folder, how do I have a preloader for this?...
I tried this
Frame 1 preloader
Frame 2 load Image code...
just...you know what I mean?...when you load a image directly from folder, can you apply a preloader for that?...I stood up so late only because of this question..makes me so awake...HELP!!! I wanna sleep...
LOADER HELP, PLEASE...
I have made a preloader based on the tutorial "advanced flash preloader" by Cathode. It works well except for one problem. When the file finishes loading it jumps to the last scene in the movie, rather than the first
...why?
The action command for the true statement is:
nextScene()
I tried putting a " _root.gotoAndPlay() " in there instead, but it still jumps the gun.
I need to resolve this muchas quickus, any help would be greatly appritiated.
_thanks.
Pre Loader
hi all...
i was wondering how i could use the pre loader from http://www.flashkit.com/movies/Anima...01/index.shtml on a site i was playing arround wif. Plz tell me in detail as i am new to flash thank you
sooner or later i have to learn to make them too
Pre-loader
I have incorporated a preloader into the site and it works fine but....... I have a looping background movie and everytime the background movie goes for another loop the pre-loader kicks in again...any suggestions?
Pre Loader
I am a complete n00b to flash 5. I made my first flash presentation and ist up and running on http://www.csnb.cjb.net adn i want to make a preloader for it so it loads it up b4 it plays it, but i have no idea how to do it. Ne help would be nice
Thx
MC Loader
how does one preload MCs also....If I want to show a loading sequence for a Movieclip....ie a loader bar for a MC how do I do that.Can this be done if the movie clip is directly taken from library rather than placing it on the stage
thanks
Loader Help
does anyone one know a link to a site that tells how to make a loader? I've been having troubles with this for awhile!
Loader
can anyone help me with my code:
this is the code of my "menu" MC:
if(loading){
if ( _root.film.getBytesLoaded() == _root.film.getBytesTotal() ){upperMenu = true;}
else{_root.menu.upperMenu=false;}
_root.createEmptyMovieClip("loader",2);
with(_root.loader){
beginFill(0x000000);
lineStyle(1,0x000000);
moveTo(614,340);
lineTo(614,360);
lineTo(700,360);
lineTo(700,340);
lineTo(614,340);
}
}
if(upperMenu){
if(this._y>=hb){this._y-=5;loading=false;removeMovieClip(_root.loader);}
else{upperMenu=false;loading=false;}
}
AND THIS OF FUNTION laden(activated by a button):
MovieClip.prototype.laden=function(knop){
film.unloadMovie();
switch(knop){
case "info":loadMovie("info.swf",film);break;
case "event":loadMovie("event.swf",film);break;
case "fotos":loadMovie("fotos.swf",film);break;
case "label":loadMovie("label.swf",film);break;
case "forum":loadMovie("forum.swf",film);break;
case "contact":loadMovie("contact.swf",film);break;
}
_level0.menu.loading=true;
}
what I want is to load a one swf for each button. and to make a preloader in actionscript. what the problem is, is that the if(upperMenu){... plays, while it is not supposed to. this means if I click a button, an swf starts loading, but I don't see the "loader" MC (black square), and the Menu Mc jumps up by 5.
I don't know If the problem is clear, but I could sure use some help.
Pre Loader
i hate actionscripts,
can some one please send me a really precice tutorial on how to make a preloader that contains :
loading bar
percentage
total kilobytes loaded and left
please, i really want it
thanx
ps. i use flash 5
Loader
I made a loader and it loads fine, but when I test it out, it doesn't show the loader, which tells bytes loaded and bytes total, until it reaches like 30%! why?
Pre-loader
how do i make a preloader with the persons connection
Loader
for some reason it just goes in a loop?
this part is in the first frame,
txtPercentage = Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100) add "% loaded";
tellTarget ("loader") {
gotoAndPlay (Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100));}
this part second frame,
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
nextScene ();
} else {
gotoAndPlay (1);
}
and the % text does'nt show.
can u help!
http://www.digitdan.co.uk
check it out
Pre Loader
how do i make preloaders and how do i get them into my movie. are they seperate movies in themselves?
Loader,
how can i do a loader bar.??
thanks
Loader For Swf
Is there a way to make a loader for an swf you are going to "load movie"? And I mean by not putting it directly in the swf you are loading.
Pre-Loader?
How do I Create a pre-loader that says the % anda has a bar to tell the progres of the movie download???
Loader
Can some one please tell me whats wrong with this code?
This is on the first frame
ifFrameLoaded ("index", 100) {
gotoAndPlay ("Scene 8", 1);
}
and this code is on the last frame to loop the loader until the movie hasloaded.
gotoAndPlay (1);
However it seems its wrong.
Pre-Loader
I have an animation that is 100 frames long. What Actionscript can I use to get the frame being played corrispond to the percentage of the movie that is loaded. ie 1 frame per one percent. Please keep in mind I'm not very good with actionscript. Thanks.
Pre-loader Help
Ive created a simple flash page with some sound samples so takes a minute or 2 to load. So i want to use a pre-loader. I've got one but how do I insert it into my flash movie? Ive got several layers and 1 scene. Ive tried to work it out but stuck. Sorry for being so dumb. Need a dummies guide if you know what i mean.
Any help appreciated
Dave Banks
alfa33@ntlworld.com
Pre Loader
i really need one but duno how to make one can some one help i just need a simple easy preloader
Pre Loader
i really need one but duno how to make one can some one help i just need a simple easy preloader
I Need A Pre Loader Bar...
Hey, i know this has been asked a bunch of times, but i have tried a bunch of pre loaders, and they don't seem to work, My intro has a black backround, so i was wondering if any one knew of a pre loader that wold show a simple white loading bar, and some precents or numbers next to it.
Thanks!
Pre Loader?
any idea whats wrong with this code:
I have this code placed on second frame of a 2 fram Movieclip that is inside the actual timeline.
tellTarget ("../") {
bytesLoad = int ((getBytesLoaded / getBytesTotal) * 100);
}
percentage = ../:bytesLoad add "%";
setProperty ("Bar1", _xscale, ../:bytesLoad);
if (Number (../:bytesLoad) == 100) {
tellTarget ("../") {
gotoAndPlay (Number (_currentframe) + 1);
}
} else {
tellTarget ("../") {
gotoAndStop (_currentframe - 1);
}
}
It doesn't work, before i used to have it (frame loaded instead of all get byte actions and it worked fine but I had to change it to get byte, now it just shows a 7 digit numer and a fully loaded bar in the begining of my swf file...???!?!?
Pre-Loader
Could someone tell me step by step how to make a preloader for my site.
also i do not know how to add it att the begining of my website.
http://muffins.freewebspace.com
3 DAYS UNTIL MY FLASH MX BOOK
Pre-Loader
Hi, can anyone help with a pre-loader. My 1st frame has a static pic and my 2nd frame starts my pre-loader as it says in the instructions but the problem i'm getting is once i've uploaded my html page on my website and i view it i end up with a white space were my 1st frame picture should be then after a few seconds my pre-loader begins. Any advice on how to fix this.
Thanks
Loader
can someone please tell me how i have to create a loader that shows te total amount of bytes and the bites allready loaded?
Pre Loader
it takes forever!
i have preloader on my website which i am producing (previous mag) but it takes forever to finish, i need it to go from the preloader to the next scene once it has reached around frame 65. my website is quite big and at the moment as i am ading scences the pre loader just adds them on to it loading time and takes forever!
help?!
sadie
Help On A Loader
Hey guys and gals,
I need some simlpe help with creating a new loader.
I want to have some text look like I am typing it to the screen and then make a mistake and go back and correct that.. how in the world would i do that .. any hints would be greatly appriciated.. thanks ..
Peter Hubner
Pre Loader
Could anyone pls tell me why this scipt for a preloader does not work on a scene that exists all on one frame (made up of movieclips, as oppose to along the main timeline) When published it just flicks between the preloader and the main scene...??
Thanks
count=int(_root.getBytesLoaded()/1024)+"KB";
total=int(_root.getBytesTotal()/1024)+"KB";
percentage=int((_root.getBytesLoaded()/_root.getBytesTotal())*100)+"%";
status="Loading....";
//set the X scale of the loadbar
loadbar_size=int((_root.getBytesLoaded()/_root.getBytesTotal())*100);
setproperty("loadbar",_xscale,loadbar_size);
//check if all data is loaded
if(_root.getBytesLoaded()!=_root.getBytesTotal()){
gotoandplay("loading");
}else{
percentage="100%";
status="loaded!";
setproperty("loadbar",_xscale,"100");
gotoandplay("main",1);
}
Pre-loader
Just another way. The idea's the same. "POtxt" is the percent output.
onClipEvent (enterFrame) {
LB = _root.getBytesLoaded();
TB = _root.getBytesTotal();
PO = int((LB/(TB))*100);
_root.POtxt = PO+"%";
if (_root._framesLoaded>20) {
_root.play();
} else {
_root.gotoAndPlay(1);
}
}
-drivej
How To Do A % Loader
i'd like to make a % preloader for a movie.
I have FlashMX and Swish 2.0 but i do not know how to go about it.
I do know how to do a normal preloader, but not a % one.
can anyone help me out.
thx
/n00b
Pre Loader Help
Can someone tell me why this preloader jumps and plays the movie at 65 % and not at 100 %??
http://www.cstreiter.com
What Am I doing wrong?
Can someone help me?
Thanks
Chris
Pre-loader
First of all I want to thank this Forum for all their help while I was constructing my first full-length Flash presentation (good riddance PowerPoint). It was the hit of the event. 2 hours of various Flash movies...and it all went smooooth...thanks a million.
Now...I have to break this monstrosity down and put parts of it up on our corporate site. Don't laugh, but I've never used a pre-loader. Most of the Flash stuff I've done has been quite small and simple...but this stuff is heavy in file size and I know I need a pre-loader.
Unfortunately, I'm one of those guys who needs a bit of explanation along with a .fla to understand things.....I'm a bit slow
Any help would be much appreciated.
Loader
Okay, my friends told me about this code...
___
loadMovie("home.swf", 1);
___
It plays a movie within another movie, but I'd like to make a loader to load another movie...
Example: I have buttons HOME, PROFILE, & DOWNLOADS. I want to load a diff movie every time i click on a certain button. But I don't want the movie "HOME" to still be there when i click on the button PROFILE.
If anyone can understand me, please tell me how to add a movie clip loader in MX in plane english cuz I'm a newbie when it comes to flash.
Thank you
Loader
hi guys
just i need some help ..
how can i create a loader in flash to load the movie before presenting it ..
tanks alot
Pre Loader In MX
just i tried to creater a pre loader in flash MX but i couldnt ..
help plz
Pre Loader
hello!
can anyone write a pre_loader code.
i´m in troubles related to my job if i don´t get it. please help
thanx
Pre Loader
ok guys listen up
All I need to know is this, I have a movie with 2 scenes, the first one being a preloader.
Its 5 frames long but uses a single movie clip saying loading in the middle. I want it so that when it reaches the last frame of scene 1 that if fame 300 of scene 2 isnt loaded...it repeates scene one again untill frame 300 of scene 2 is loaded then it carries on.
Can any one please please please tell me this simple action before my brain melts
Pre Loader
is there a good place on the web to down load a preloader that works or know where i can find a good tutorial for one?
|