Urgent Help Needed....preloader
The following preloder works fine in Internet Explorer, but in Netscape it descides to begin playing the first and second movie before preloader is done....can someone please help...need to have this done soon. Netscape 4.7 and Flash 6.0.79
// Hides displayed elements this.loadbar._visible = false; percent_display = ""; //create a new movieclip to load //the external movie into this.createEmptyMovieClip("container1", 10); this.createEmptyMovieClip("container2", 20); this.createEmptyMovieClip("container3", 30); this.createEmptyMovieClip("container4", 40); this.createEmptyMovieClip("container5", 50); this.createEmptyMovieClip("container6", 60); this.createEmptyMovieClip("container7", 70); //load the external movie into the new movieclip
this.container1.loadMovie("1.swf"); this.container2.loadMovie("2.swf" ); this.container3.loadMovie("3.swf"); this.container4.loadMovie("4.swf"); this.container5.loadMovie("5.swf"); this.container6.loadMovie("6.swf"); this.container7.loadMovie("7.swf"); //check the download status of the external //movie once every frame this.onEnterFrame = function() { //trace the percentage of the movie that has loaded percent1 = (this.container1.getBytesLoaded()/this.container1.getBytesTotal()); percent2 = (this.container2.getBytesLoaded()/this.container2.getBytesTotal()); percent3 = (this.container3.getBytesLoaded()/this.container3.getBytesTotal()); percent4 = (this.container4.getBytesLoaded()/this.container4.getBytesTotal()); percent5 = (this.container5.getBytesLoaded()/this.container5.getBytesTotal()); percent6 = (this.container6.getBytesLoaded()/this.container6.getBytesTotal()); percent7 = (this.container7.getBytesLoaded()/this.container7.getBytesTotal()); percent8 = (_root.getBytesLoaded()/_root.getBytesTotal()); percent = percent1+percent2+percent3+percent4+percent5+perce nt6+percent7+percent8; percent = percent*100; percent = percent/8; if (!isNan(percent)) { // trace(percent+"% loaded"); if (percent == 0) { percent_display = ""; } else { percent_display = Math.ceil(percent)+"% LOADED"; } this.loadbar._visible = true; this.loadbar._xscale = percent; this.container1.stop(); this.container2.stop(); this.container3.stop(); this.container4.stop(); this.container5.stop(); this.container6.stop(); this.container7.stop(); } else { // trace("0% loaded"); } if (percent == 100) { waittext = "Please wait to complete loading sequence"; delete this.onEnterFrame; percent_display = ""; this.loadbar._visible = false; //gotoAndPlay("Scene 1", 1); } }; stop();
FlashKit > Flash Help > Flash MX
Posted on: 04-28-2003, 03:15 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
PreLoader Help Needed
we are working a project to remember the victims and everyone in the wtc...we basically have the movie done (very very basic...since we are still new to this). the movie includes part of a song and when we view it on our computer (not on a website) it runs fine and the music goes with the pics. But when we tested it on a webpage the song plays fine but the pics move slowly and the song finishes before the pics do. I think we need a preloader??? something to give the movie time to load completely??? or is there some other way to get it to load quicker?? I have tried d/ling the open source preloaders but I can't figure out how to put it in my movie or how to use it. All that scripting and varibles and such make no sense to me. I can make little movies with just pics but nothing else. Can someone help please???
here is what we have so far....
http://www.geocities.com/a2gether091101
Preloader Help Needed
I want to know how i make a preloader where it says however many kb are left to download. Is there really a way of doing this to where its accurate or do people just type a different number in each frame.
Preloader Help Needed
I want to know how i make a preloader where it says however many kb are left to download. Is there really a way of doing this to where its accurate or do people just type a different number in each frame.
Preloader Help Needed Please
hi guys
i have just made a flash movie and i inserted to it a pre-loader scene
now i have first the pre-loader scene which called 'loader'
then the main movie which called 'movie'
in the first frame in the 'loader' scene i put a movie-clip and for the actions i put
ifFrameLoaded ("Scene 1", 1) {
gotoAndPlay("Scene 1", 1);
}
and the second frame :
gotoAndPlay("loader", 1);
and my main movie just contain one frame coz all the items in it are movie clips and buttons so when it's load the movie just freeze nothing moves from the movie clips even the mouse over on the buttons
can anyone help me with this pleaseeeeee
Help Needed With Preloader
Hi I am very new to FLASH MX and would like advise on this question.
I have gone through the posts regarding how the make preloaders with bars and percentage and so on. And have gotten the hang of it.
But was wondering if it is possible to make a preloader that shows small rectangle bars which appear side by side horizontally increasing its numbers in the direction "right" as the loading makes its progress.
Any advice will help.
thanks
Preloader Help Needed
I added this preloader to a movie. I am on a DSL connection and the preloader is not coming up right away. How can I adjust for this time lapse.
I would like the preloader to start working as soon as the page starts downloading.
http://www.spanishome.com/acesorios.swf
Thanks
Ecinele
Help Needed With This Preloader
Please check the fla file.
I think that I need to add some code to tell the preloader to play while the movie loads. Except I don't know how.
I would really appreciate it if you would add the additional code, this way I know how it works.
Thanks
Ecinele
http://www.spanishome.com/costa_rica.zip
Preloader Help Needed
Hi all
I made flash site with static index page that all other pages are loaded into without replacing it. Most of these other pages consist of a single text field which loads content via XML object using xmlObject.onLoad() handler. While loading, there is a "loading please wait" thingie on the screen. So when xml data is loaded and parsed (onLoad event is triggered) the playhead goes to scene two where actual data is to be shown.
And so it does during local testing.
But when I uploaded it on a server for remote testing, data has been loaded and parsed, playhead jumped to scene 2, but there was no text at all. Then I selected some other (also XML) page, wait there to be loaded and, again, not shown, then went back to previous page and only then the text will be there. In other words, after data has finished loading and it has been parsed into XML object, you still have to wait 30 - 60 seconds for it to be shown! Any ideas?
Preloader Help Needed
I have looked at about 5 different preloader tutorials and they all seem to not fit the type i want. I want one with a bar that gets highlighted depending on the % loaded and in front of that have "loading... #%" where as # is how much has loaded. Then when the movie after the preloader is done it will automatically link to my site instead of having to click on it! thanks so much!
Help Needed With Preloader
Hi all,
I have a problem and was just wondering if any experts out there may know how to help me. I will explain I have code for a peloader which is as follows.
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes/1000);
totalkbytes = Math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
nextScene();
}
frame = int(loadedbytes/(totalbytes/100));
tellTarget (_root.loader) {
gotoAndStop(_root);
}
The problem is I have embeded a movie into Flash MX and it is 3MB in size, the preloader works fine, but it loads the whole movie before jumping to Scene 2 allowing the user to play the video. I have Scene 1 (the preloader) and Scene 2 (the movie clip containing the embeded video.
What I want to know is how to change the action script above so that it loads say 50% of my flash movie and then opens the Scene 2 page with the video and controlls allowing the user to press play and then downloads the rest in the background. I would appreciate the help all the best people Viacor.
Help Needed With Preloader MX
Hi all,
I have a problem and was just wondering if any experts out there may know how to help me. I will explain I have code for a peloader which is as follows.
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes/1000);
totalkbytes = Math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
nextScene();
}
frame = int(loadedbytes/(totalbytes/100));
tellTarget (_root.loader) {
gotoAndStop(_root);
}
The problem is I have embeded a movie into Flash MX and it is 3MB in size, the preloader works fine, but it loads the whole movie before jumping to Scene 2 allowing the user to play the video. I have Scene 1 (the preloader) and Scene 2 (the movie clip containing the embeded video.
What I want to know is how to change the action script above so that it loads say 50% of my flash movie and then opens the Scene 2 page with the video and controlls allowing the user to press play and then downloads the rest in the background. I would appreciate the help all the best people Viacor.
Help Needed With Preloader MX
Hi all,
I have a problem and was just wondering if any experts out there may know how to help me. I will explain I have code for a peloader which is as follows.
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes/1000);
totalkbytes = Math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
nextScene();
}
frame = int(loadedbytes/(totalbytes/100));
tellTarget (_root.loader) {
gotoAndStop(_root);
}
The problem is I have embeded a movie into Flash MX and it is 3MB in size, the preloader works fine, but it loads the whole movie before jumping to Scene 2 allowing the user to play the video. I have Scene 1 (the preloader) and Scene 2 (the movie clip containing the embeded video.
What I want to know is how to change the action script above so that it loads say 50% of my flash movie and then opens the Scene 2 page with the video and controlls allowing the user to press play and then downloads the rest in the background. I would appreciate the help all the best people Viacor.
Preloader Needed?
Hello, I have created a flash game that is basically completed, but I am having trouble implementing a preloader. The entire game is on a single frame that repeats itself endlessly (I used setInterval), but I have problems when I try to create a preloader to go with it. Whenever I try to move the frame with the game on it to another frame, it fills in the distance with nothingness, causing the game to flash on and off.
Is there any way to load the game first, and then only play frame x?
By the way: My game's SWF is only about 90kb (light on graphics, heavy on actionscript), so am I just wasting time trying to implement a preloader that no one will ever see?
Thanks!
David
Preloader Help Needed.
Hi all,
I'm half way through creating a flash file, and I want to put a preloader in. I did have a preloader which I used to just copy and paste into the first scene of any flash file I created but even that doesn't seem to be working for some reason. Here's a link to the tutorial on the preloader that I normally use:
http://www.actionscript.org/tutoria...der/index.shtml
Does anyone know of another preloader which would do the trick? The flash file I'm talking about is this one:
http://work.stickyjam.co.uk/pr/intro.html
I'm not exactly a flash guru, so the simpler the preloader the better. If any of you are feeling extra kind, I could supply you with the source file and maybe you could have a go at putting in the preloader?
Any help will be greatly appreciated.
Preloader Needed?
Is a preloader necessary for a file that's 110K? Thanks for any feedback.
Preloader Help Needed
Why is something that looks so darned simple so tough. Can somebody help me please? I've been through every preloader tutorial here, and read a hundred threads, and even tried the "try this simple drop in loader", even the one you offered Geezer, and I cant get the darned things to work right no matter what. A lot of the "how too's" leave out exactly where, on what frame to put the script, or if it needs to be actions actually attached to the movie clip etc. If someone could help me fix this, I'd be happy to write a tutorial even a newbie like me could understand! Here is the simple swf I've been working on, with my pathetic last attempt at using others code to make a simple loader work on it. Can some one please fix this for me, and tell me how you fixed it, and why it needed what you added or changed? THANK YOU SO MUCH in advance.
Ken
Preloader Help Needed.
Hi there
I have created a preloader, the only problem is that once it has loaded it doesn't play, you have to right click and then click play. Is there away I can do something so it will play stright away automatically?
Thanks for your help
Yet More Preloader Help Needed
Im trying to preload an external movie. it needs to:
pause the external movie on frame 1 till its loaded. then play once loaded
Display correct preloader size.
The preloader code cant be inside the external .swf - needs to be in the main.
i have cribbed bits of code from here and there trying to get it to work. Unfortunately this seems to crash the debugger.
The function is called from a button click.
Can anyone suggest why this doesnt work? It pauses the movie but crashes at the 1st if statement!
Sorry for the long path names...
Code:
function preload () {
_root.mainContent.kitchenMovs.dropZone.gotoAndStop(1);
_root.mainContent.kitchenMovs.dropZone.onEnterFrame = function(){
if (this._framesloaded>0 && this._framesloaded == this._totalframes) {
this.gotoAndPlay(2);
delete this.onEnterFrame;
}else{
perc = (this.getBytesLoaded()/this.getBytesTotal());
_root.Bar._width = _root.BarBorder._width * perc;
}
}
}
Any ideas? i have been trying to get this to work for ages..
Cheers
Neil
Preloader Help Needed
Hi everyone!
I am trying to find a way to create a music player-like preloader, kinda like the Cleo Player but I need to the steps not just the files...would anyone be so kind as to tell me where I can find that???
Thank you!!
Silvia
Preloader Help Needed
Background
I'm building an interface that allows my client to drag and drop individual presentation movieclip thumbnails (all .swf's) into a placeholder on the stage aboveso they can dictate the order of playback. They will be doing this to ultimately have an intelligent presentation interface that allows them to tailor the presentation each time by selecting only the movie clips they wish to show. The selected clips in the placeholder will be executed with smooth transitions once selected and the play button clicked.
Main Question
With regards to preloading as some clips may be larger than others and i'd really like a smooth transition between clips... i'm looking for advice as AS3 is still new to me.
Is it best to preload all?
Or is there a way of preloading and executing movieclip1, then preloading mc2 as mc1 plays, then play mc2, unload mc1, and preload mc3 while mc2 plays, then unload mc2 and play mc 3 while mc4 preloads... etc (you get the idea).
Any advice appreciated.
Preloader Help Needed
We created our portfolio in Flash Flash Photo Portfolio and now need a preloader. We were able to create one that waits until the entire swf is loaded. We need a visual to indicate that the movie is loading but don't want our viewers to have to wait for the entire swf to load.
We don't want a dead black screen upon the calling of the movie, but we don't want to wait for the entire movie to load before the presentation begins. We have no problem creating the graphics, it's the scripting help we need. Can anyone point us in a direction? Thanks!
Dick
Preloader Needed
Can someone please help me create a simple bar preloader showing percentage and bytes or something! i don't want to use a component but actionscript! please show me what to do!!
Preloader Needed
would somebody please give me simple preloading code that works. I am new to flash so please help me
Preloader Help Needed
I need to be able to preload all the swf movies in my site before it plays to prevent it from slowing down when I call upon one for a rollover effect or to jump to another section...I have tried many preloader tutorials from flashkit.com and have had no success...Any help given will be well appreciated.
Thanks in advance.
Preloader Help Needed
myInterval = setInterval(preloader, 10);
function preloader() {
if (_root.getBytesLoaded()>=_root.getBytesTotal()) {
gotoAndPlay(nextScene);
clearInterval(myInterval);
}
_root.loadBar._xscale = (_root.getBytesLoaded()/_root.getBytesTotal())*100;
}
PreLoader Help Needed
Im needing assistance, I have the following script for my preLoader (see below). Its a simple preLoader with a loading bar that goes from left to right with a percent read out.
What I want is the percent text box to move along the _x with the load bar, so when the load bar is at 100% the percent text box is just above.
Can anyone help??
myInterval = setInterval(preloader, 10);
function preloader() {
if (_root.getBytesLoaded()>=_root.getBytesTotal()) {
gotoAndPlay(nextScene);
clearInterval(myInterval);
}
_root.loadBar._xscale = (_root.getBytesLoaded()/_root.getBytesTotal())*100;
_root.percentageDisplay.text = Math.round(_root.getBytesLoaded()/_root.getBytesTotal()*100)+"%";
}
Preloader Help Needed
How do make a preloader that allows for multiple .swf's to be loaded behind it.
I have looked at the preloader faq (http://www.kirupa.com/developer/mx/p...transition.htm) but I can't seem to see where it is specified that a movie loads one specific MC.
This is AS that I don't understand:
b1.onRelease = function() {
if (_root.section != "home_text.swf") {
_root.section = "home_text.swf";
_root.transition.gotoAndPlay("closing");
}
};
b2.onRelease = function() {
if (_root.section != "services1_text.swf") {
_root.section = "services1_text.swf";
_root.transition.gotoAndPlay("closing");
It doesn't seems to specify that "home_text.swf" will load into a specific MC. And that being the case I can't add another .swf to this bit of code to then be loaded into another MC.
Help!!
Preloader HELP NEEDED
http://applewilliam.tripod.com/index.html
Check that out it explains all my problems there. I want to make a preloader for the content I load using loadMovie(). Sorry about the advertisments on that site. Just give it some time to load.
HELP PLEASE
Help Needed With A Preloader..
http://www.kirupa.com/developer/acti..._preloader.htm
I need help with that preloader..
How can I make it load my homepage... :/?
What should I do :/
Preloader Needed For Jpg
hello!
i'm posting my fla in case a Flash Guardian Angel wishes to help me.
i just need a preloader for my dynamically loading jpgs.
fyi, i don't need buttons or anything for this...it's a very simple slideshow where the images come in every 100 frames...that's it.
does anyone know what code i should put it so that my images will preload at the beginning so the slideshow doesn't stutter?
thank you!!
julia
Help Needed With A Preloader-bug
Hi everyone!
I've got a problem with a flash-website I'm creating as follows:
The flash movie has a preloader, it works in the following way:
- Frame 1: Loader symbol
- Frame 2: Class export. The movie jumps through this frame.
- Frame 3: Hidden frame for non-first-frame-exported classes to force them to export. The movie jumps through this frame
- Frame 4: Main website
I'm trying to use an object on the main site that isn't exported at first frame. I just add the object to the stage from the library. It works till this point, however a wierd thing happens with this is that the object's constructor runs in frame 1. I don't really understand this behaviour.
My problem arises when I try to asign an instance name to the object on the stage - I get a runtime error: "TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::MovieClip@xxxxxxxx to <class>."
The class DOES extend from MovieClip!
Obviously exporting the class at the first frame isn't a good answer because it messes the preloader up.
I could also try to create the instance programatically, however I'd rather not do that because then all of its members would need to be programatically created as well (at least according to the tests I've been able to run).
Any help with this matter would be greatly appreciated! Thanks in advance.
Regards
Help Needed For Preloader
I made a movie with three buttons that start 3 external movies using the loadMovie script.
It took me a while, but with the help of all you lovely pro's. it works!
Now I want to add a preloader in front of it. I tried a couple tutorials, but couldn't find one that handled the actionscript for this. Or is there one somewhere...
A beginner, yes....
regards
Preloader Help Needed
I need to be able to preload all the swf movies in my site before it plays to prevent it from slowing down when I call upon one for a rollover effect or to jump to another section...I have tried many preloader tutorials from flashkit.com and have had no success...Any help given will be well appreciated.
Thanks in advance.
Preloader Help Needed
myInterval = setInterval(preloader, 10);
function preloader() {
if (_root.getBytesLoaded()>=_root.getBytesTotal()) {
gotoAndPlay(nextScene);
clearInterval(myInterval);
}
_root.loadBar._xscale = (_root.getBytesLoaded()/_root.getBytesTotal())*100;
}
PreLoader Help Needed
Im needing assistance, I have the following script for my preLoader (see below). Its a simple preLoader with a loading bar that goes from left to right with a percent read out.
What I want is the percent text box to move along the _x with the load bar, so when the load bar is at 100% the percent text box is just above.
Can anyone help??
myInterval = setInterval(preloader, 10);
function preloader() {
if (_root.getBytesLoaded()>=_root.getBytesTotal()) {
gotoAndPlay(nextScene);
clearInterval(myInterval);
}
_root.loadBar._xscale = (_root.getBytesLoaded()/_root.getBytesTotal())*100;
_root.percentageDisplay.text = Math.round(_root.getBytesLoaded()/_root.getBytesTotal()*100)+"%";
}
Another Preloader Help Needed
Please go to www.zenoarts.homestead.com and look at the simplicity.(not really) Notice when the content PRE-loads it starts loading stops around quarter way and doesn't go until fully loaded. Is it only for my comp. or is there any way of making the preloader load fully?
Thanks
Help Needed - Preloader Problems
Hi, everyone!
I'm trying to make a preloader for flash movie loaded by loadMovie command, and use onClipEvent(data) to detect loading, and calculate percentage. However, movie has been loaded, but onClipEvent(data) have not been triggered at all. Here is a script I've been using for testing (it was applied on the movie clip on the stage:
onClipEvent (load) {
loadMovieNum("myMovie.swf", 1);
}
onClipEvent (data) {
trace("data received");
}
What did I do wrong? Please, help!
PS. There are many tutorials covering this, but none of them cover this specific situation.
Preloader Help Desperately Needed
well, i have never used actionscript in my entire life untill now....i am working on a preloader and learning from the tutorials section in fk. in the tutorial, some codes were given like "loadpercent" and i tried to insert that code in the scene put i could not find any place where loadpercent was there.
this are the codes i need to use:
Code:
loadpercent = "0%";
loadBytes = "0 of " + Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000
+ " Kb";
and:
loadPercent = (Math.floor (_root.getBytesLoaded() / _root.getBytesTotal() *
100) + "%");
loadBytes = (Math.round((_root.getBytesLoaded() / 1024) * 1000) / 1000 + " Kb
of " + Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000 + " Kb total Loaded.");
and also:
this._xscale = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
there are other codes like gotoandplay and i was able to find that under basic actions but actions such as loadpercent and all, that i was not able to locate from the actions menu. what do i do?
for more information go to this link:
Creating an Advanced Preloader in Flash
i understand everything else put i dont know how to insert the actionscript if it aint in the actionscript menu. help please!
Flash 5 Preloader Help Needed...
How do I set up the actionscripting to have a preloader with a byte counter and a loading bar that instead of getting and displaying the total bytes of the entire movie, it will only preload and display an amount that I specify?
Basically, a "if frame (or byte #) is loaded, begin movie" type thing.
My entire swf is about 350k, but I only want to preload about 130k.
Thanks in advance!
Robert
Urgent Help Needed For Preloader
Hi,
I have everything on a single frame of main movie [around 10 layers some having movies embedded in it] which is around 400k. Now I have realised that it takes a while to download while its on site. I would like to add a preloader to that without changing much on the existing movie. I would like to play a trip movie as a preloader which should play till the entire 400k is loaded.
Please see the site for this main movie [right now its just on one frame]
www.ambientindia.com
I am desparately waiting for the replies
ndbhatt@hotmail.com
Its URGENT...
thx nik
Help Needed - Preloader Blues
Hi all,
First time poster so please be gentle...
I need some help with the code for a preloader in the Tutorial section of this site. It is the 'Advanced byte' one by Cathode.
I have set up the code and everything works fine but the problem is that when the movie has finished preloading it jumps straight to the last scene's last frame. If I wanted it to go to another point (say there are 3 scenes and I want it to go to the middle one before the last one) what do I need to alter with the code? I've tried goto and nextScene with no luck.
This is the main script that I've tried altering:
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes/1000);
totalkbytes = Math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
nextScene ();
}
frame = int(loadedbytes/(totalbytes/100));
tellTarget (_root.loader) {
gotoAndStop (_root.frame);
}
How do I prevent it from jumping to the end?
Any help would be massively appreciated..
Thanks in advance,
Ed
Simple Preloader Help Needed....
ok i finished my flash site...
now i want the Scene 1 to be a preloader where theres a bar that increases in size to show its 100% done, then it loads up Scene 2 which is the main site...
how do i go about doing this, and if theres any links u can send it would be appreicated, i could'nt find anything for this in tutorials, only for regular preloaders. thanks
Preloader Tutorial Needed
can anyone here give me a good place for a bar preloader. i would like to add a bar preloader to my origonal comunicative preloader but i cant find the tut.
Preloader Tutorial Needed
can anyone here give me a good place for a bar preloader. i would like to add a bar preloader to my origonal comunicative preloader but i cant find the tut.
How Use This Preloader (fl 2004 Mx Needed)
How can i use this preloader, can u show me?
In this file is preloader of 2004 an photo to load it.
I will use this preloadre in the future for site loading as normal movie preloader.
Thanks in advance
Bye
Jan
Preloader Help Needed Badly
People,
I have a actionscript written and it wil start my movie when it loaded 100%.
But i want to start the movie when the counter hits 50% because otherwise it would take to long. Can anybody help me please !!
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
text = percent+"%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
}
}
|