Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Advanced Preloader


I have x amount of movies that I load into the main movie. Now, I'm lqqking for a preloader code that is housed in the main movie. More clearly, most preloaders are inside of the movie to be loaded. However, I'm looking for the code that could be in the main movie. So, if I want to see the load progress of movie three, the preloader in the main movie would show me this. Any directions Flasher...appreciate everything, all the time...




FlashKit > Flash Help > Flash MX
Posted on: 11-06-2005, 06:44 AM


View Complete Forum Thread with Replies

Sponsored Links:

Advanced Preloader
Just wondering if anyone can point me in the right direction on building a preloader based upon the ammount of data loaded instead of using the ifFrameLoaded command.

Thanks,
~Steve~

View Replies !    View Related
Advanced Preloader Pt/2
hey, deva_station

I have done what u said so far, i know i have still done it wrong....cause it doesn't work. can u pls download what i did and fix it please??? and email it to

amit_kapadia@msn.com

download the *.fla from:

http://www.geocities.com/kiwi7472000/preloader.fla

thank u very much.

Blue Dragon

View Replies !    View Related
Advanced Preloader
Does anyone know if it's possible to make a preloader which can accurately calculate how many kb of your movie has loaded? I'm not after the type of preloader which spans loads of frames and has mcs hidden under a cover on key frames.

Cheers

View Replies !    View Related
Advanced Preloader
I'm looking for an advanced preloader that can tell bytes - not frames - loaded and is NOT a separate scene. It would ideally be a movie clip I can add to different scenes.
Everywhere I seem to look I find preloaders that are scenes, in advance of the main scene. I'm looking for a movie clip.

Please help!!!!
Thanks
Chris

View Replies !    View Related
Advanced Preloader
I am using Flash MX and am trying to develop a preloader that is a little bit more complex than most. In addition to having the standard loading message and bar, I would like to add a download percentage marker, a time remaining entry, and if possible a bandwidth measurer. Would anyone be willing to help me with this or direct me to tutorials that show how to do this?

View Replies !    View Related
Advanced Preloader?
I know how to do a basic preloader, as well as an Intermediate level Preloader, but how can I achieve a preloader that will let the viewer know how many kilobyes has loaded, how many kilobytes is left and a mc bar that wil play in relation to the kilobytes that have loaded?

View Replies !    View Related
Advanced Preloader Help
I have been trying to code a custom preloader graphic instead of the plain growing percent bar but I'm unable to get it working properly.

On the root of my stage I have 4 objects: 2 movie clips and a moving mask for each of those clips.
The movie clips are replicas of each other, except one is black and white, and one is colour.
The masks move in unison, one exposing the coloured MC on top while the other hides the B&W MC underneath.
This gives the effect of colour 'wiping' down the MC.

I have attached a .gif so you can see what this effect looks like.

What I want to do is make the masks move reletive to the percentage of the movie loaded, but still keep in unison with each other.

I am competant with setting up a normal preloader, but I have no idea how to implement this idea into a preloader.
I am using FlashMX.

Any help would be very much appreciated.

Thanks for your time

View Replies !    View Related
Advanced Preloader
Hi all!

I'm about to build a pretty advanced preloader in Flash MX, and would be happy to get some comments or tips about the solution.

Here's the deal:

I´m building an online course, where each learning object (section) will use a common "player" that loads the content, displays it and provides a navigation interface.

Each learning object is divided into a number of "pages". The user may go back, forward or jump to any given page. Naturally, when starting the lesson the player displays page 1 first.

A page consists of a flash movie along with a number of additional assets (sounds and swf's) that may be used by that page.

Now, in order to minimize the delays the user experiences due to loading, I have an idea about a design that loads the files in the background, hopefully while the user is busy viewing content. It goes as follows:

- The movies and sounds used by the first page is loaded first. The user will see a "please wait while loading" message.
- While the user is viewing page 1, the files needed by page 2 is loaded. Ideally, when the user is done with page 1, he/she clicks "continue" and jumps to page two which, hopefully, already has loaded its files (otherwise the "please wait..." message is displayed.
- And so on throughout the page.

So each page begins to load immediately after the previous page has finished.

Some questions:

- What do I do with the files that have been loaded? Should I create new movieclips for each file and then hide the ones that are not used by the current page? Or do I just delete them after downloading them and then load them again from the cache when they are needed?

- How do you stop a file from loading in Flash MX? If the user chooses to jump to page 5 after viewing page 1, page 2 will be loading. I need to stop that download, and instead begin loading page 5.

Like I said in the beginning, all comments on this solution are welcome.

Thanks,

Makac

Thank

View Replies !    View Related
Advanced Preloader Help
Hello,

I am currently designing a advanced preloader. I have a MC with a dynamic field to update the %loaded and I also have a animation of a flower growing that is 68 frames long. What I want to do is calculate the number of frames, and then have flash play a certain amount of frames per percent loaded.

So the effect would be you see a flower growing. SO when its 100% loaded, the flower is completely grown. Make sense? Here is what I have so far:


Code:
onClipEvent (enterFrame) {

//Get total size loaded
mctotal = _root.getBytesTotal();
mcloaded = _root.getBytesLoaded();
//Get percent loaded
mcpercent = Math.round((mcloaded / mctotal) * 100);
percentdisplay = mcpercent + "%";

//Get percentage of frames
flowerframes = _totalframes;
framepercent = Math.round((mcloaded / flowerframes) * 100);

//some sort of code to play each frame loaded??

}
Any help would greatly be apreciated.

View Replies !    View Related
Help With Advanced Preloader
Hi guys, i need help with advanced preloader. I tried to make it by self, but i am not so good yet.

My idea is create preloader, which will after e.g. 20% of _totalframes play next movie, after 50% next, and so on till the end (main movie).

Please send me some example or help me where can i find some good tutorial.

Thanks Jan


I use Flash MX.

View Replies !    View Related
Advanced Preloader
Hi everyone. I have a Flash file for an advanced preloader that fills up a circle with an image as the file loads. The problem is that the readout on screen is the percentage loaded. I am trying to get it to read kilobytes loaded over the total number of kilobytes, with the image synchronized with the amount loaded. If anyone is willing to help me out on this one I would really appreciate it. I can actually send you the .fla file so that you can see what I have. Thanks so much for your help.

Kelly

View Replies !    View Related
Advanced Preloader Help
Ok I was wondering if someone could show me or send me a link that shows me how to make a preloader just like the one from www.ls5.de (the very first preloader) thank you if you could help =)

View Replies !    View Related
Advanced Preloader
Hello people.

I am looking to develop a preloader which works in the following way:

I have a movie clip symbol. The movie clip would be placed onto stage. What I would like the preloader to do would be to slowly display the movie clip as the flash movie loads. This means that in the beginning, the movie clip would not be visible as flash has loaded 0% of the flash movie. However as flash begins to load the movie, say at around 10%, maybe 1/4 of the movie clip symbol would be displayed. When the preloader has loaded 100%, the full movie clip would be displayed.

Does anyone know how I can achieve this? Any help would be appreciated. Thank you.

View Replies !    View Related
Advanced Preloader - But How?
I have seen this sort of preloader before but i am wondering how it is done. If you visit this site:

http://www.mediaboom.com/main.html

you will notice that as you click each page, the preloader works over the top of the existing page until it reaches 100% and then the new page loads. Do you know how this is done?

Many thanks.

Mal.

View Replies !    View Related
Very Advanced Preloader
Hi, im still kind of new to actionscripting in Flash and im trying to make a really sophisticated preloader that will trigger a certain part of a movie clip i have on the stage when the movie loads at 25% , 50% etc... but everything i ahve tried isnt working, here is my code so far:

Frame 1:

var amountLoaded:Number = _root.getBytesLoaded() / _root.getBytesTotal();

var quarter:Number = _root.getBytesTotal() / 4;

var half:Number = _root.getBytesTotal() / 2;

preloader._width = amountLoaded * 200;

loadText.text = Math.round(amountLoaded * 100) + "%";

Frame 2:

if (_root.getBytesLoaded() == _root.getBytesTotal()){
gotoAndPlay(3);
}

else {
if (_root.getBytesLoaded() == half) {
test_mc.gotoAndPlay(3);
}
else {
if (_root.getBytesLoaded() == quarter) {
test_mc.gotoAndPlay(2);
}
else {
gotoAndPlay(1);
}
}
}

ive tried many variations of this, the preloader itself works, but the movie clip sits there and does nothing.

Theres an example of what im trying to achieve here: www.neostream.com.

thanks

View Replies !    View Related
Advanced Preloader
Hi,

I have a problem and i can't solve it my self .
I have a main swf that call's a *.as file. In the *.as file are the commands for loading a xml menu en load contentpages in my main swf. Everthinks works perfect but i want a preloader for the contentpages in my*.as.
I have the following but it won't work :S:

anybody??


ActionScript Code:
for (teller1=0; teller1<this.firstChild.childNodes.length; teller1++) {
            duplicateMovieClip(_root.menuClip.mainNav, "mainNav"+teller1, teller1);
            _root.menuClip["mainNav"+teller1].test.text = this.firstChild.childNodes[teller1].attributes.title;
            _root.menuClip["mainNav"+teller1]._x = xPos;
            breedte = 780/this.firstChild.childNodes.length;
            _root.menuClip["mainNav"+teller1]._width = breedte;
            var yPosTwee = this.menuClip.mainNav.subNav._y;
            var yPos = 21;
            for (i=0; i<this.firstChild.childNodes[teller1].childNodes.length; i++) {
                duplicateMovieClip(_root.menuClip["mainNav"+teller1].subNav, "subNav"+teller1*10+i, 200+teller1*10+i);
                trace(this.firstChild.childNodes[teller1].childNodes[i].attributes.as);
                _root.dummy_mc.pagina.duplicateMovieClip("pagina"+teller2, teller2);
                _root.dummy_mc["pagina"+teller2].loadMovie(this.firstChild.childNodes[teller1].childNodes[i].attributes.as);
                _root.dummy_mc["pagina"+teller2]._y = teller2*250;
//this is the part of my preloader
                while((_root.dummy_mc["pagina"+teller2].getBytesLoaded()/_root.dummy_mc["pagina"+teller2].getBytesTotal()*100) !=100) {
                   
                    trace("not jet loaded");
                    }
//until here               
                    _root.menuClip["mainNav"+teller1]["subNav"+teller1*10+i]._y = yPos;
                    _root.menuClip["mainNav"+teller1]["subNav"+teller1*10+i].textInput.text = this.firstChild.childNodes[teller1].childNodes[i].attributes.title;
                    _root.menuClip["mainNav"+teller1]["subNav"+teller1*10+i].button.teller2 = teller2;
                    _root.menuClip["mainNav"+teller1]["subNav"+teller1*10+i].button.onRelease = function() {
                    _root.ynew = _root.mask2._y-(this.teller2*5.01)*100/2;
                    };
           
                teller2 = teller2+1;
                yPos = yPos+20;
            }

View Replies !    View Related
Advanced Preloader
Hello Everyone! I'm new to this forum, but I was hoping that someone could help me out with a preloader that I'm working on. It's pretty advanced...it's one that fills up a space with an image, while synchronizing with the amount loaded (check out www.realitydreamship.com for an example). For the most part I am doing alright on it, but I am having a few problems getting it to work properly. If you are a daring soul who might be willing to help me out, I would really appreciate it. I can send the .fla file that I have been working on via e-mail. Hope to hear from someone soon!

Kelly

View Replies !    View Related
Advanced Preloader
Hello people.

I am looking to develop a preloader which works in the following way:

I have a movie clip symbol. The movie clip would be placed onto stage. What I would like the preloader to do would be to slowly display the movie clip as the flash movie loads. This means that in the beginning, the movie clip would not be visible as flash has loaded 0% of the flash movie. However as flash begins to load the movie, say at around 10%, maybe 1/4 of the movie clip symbol would be displayed. When the preloader has loaded 100%, the full movie clip would be displayed.

Does anyone know how I can achieve this? Any help would be appreciated. Thank you.

View Replies !    View Related
Advanced Preloader - But How?
I have seen this sort of preloader before but i am wondering how it is done. If you visit this site:

http://www.mediaboom.com/main.html

you will notice that as you click each page, the preloader works over the top of the existing page until it reaches 100% and then the new page loads. Do you know how this is done?

Many thanks.

Mal.

View Replies !    View Related
Advanced Preloader
Hi,

Does anyone have any tips/tutorials on building advanced preloaders. For example on some a film site they had a syringe appearing to be filled, I assume it is a variation on a simple preloader. I basically want text to fill up as stuff falls from above??

thanks

Gavin

View Replies !    View Related
Help On A/s For Advanced Preloader...
Hi guys:

can anyone tell me a code to make a preloader jump to a frame depending on the quantity on the movie that has been preloaded? in ex i have a mc of a preloader if 5 percent of the movie its loaded the preloader mc will go to frame 2, if 10% the mc should go to frame 3, etc... please let me know if i'm not making myself clear enough thanks in advanced...

View Replies !    View Related
Advanced Preloader
Hi everyone. I have a Flash file for an advanced preloader that fills up a circle with an image as the file loads. The problem is that the readout on screen is the percentage loaded. I am trying to get it to read kilobytes loaded over the total number of kilobytes, with the image synchronized with the amount loaded. If anyone is willing to help me out on this one I would really appreciate it. I can actually send you the .fla file via e-mail so that you can see what I have. Thanks so much for your help.

Kelly

View Replies !    View Related
Advanced Preloader Help
http://www.neverrain.net/

The preloader on this site seems to run through a complete animation before moving forward in the movie.

I am curious if there is something to how preloaders like this work.

Does each animation happen after a certain precent is loaded (in this example, when the squares turn green) or are they just animations that have nothing to do with the actual preloading?

Thank you very much.

View Replies !    View Related
Advanced Preloader
I have x amount of movies that I load into the main movie. Now, I'm lqqking for a preloader code that is housed in the main movie. More clearly, most preloaders are inside of the movie to be loaded. However, I'm looking for the code that could be in the main movie. So, if I want to see the load progress of movie three, the preloader in the main movie would show me this. Any directions Flasher...appreciate everything, all the time...

View Replies !    View Related
Advanced Preloader.
ok. what i'm trying to do is this:

i have a loader_mc and inside i have 5 boxes names loader1_mc, loader2_mc, etc...

inside each of these embedded clips, there is an image and then a white box covering the image. and in the white box i have a tween that will make the white bx dissapear and then reveal the image inside the white box.

what i want the preloader to do is as the movie loads itself, i want each box to do its tween thing in order. so that when the movie is 100%...the last box will reveal itself and then the movie will start.

i;ve already tried this using a few different concepts, none of which have worked thus far...so i was wondering if anyone here had a solution.

View Replies !    View Related
Advanced Preloader
Hello Everyone - I was wondering if someone could point me in the right direction or share how to create a preloader the preloads multiple objects in sequence.

Example:

Now Loading: Movies

after that completes

Now Loading: Images

after that complete

Now Loading: Sound



Visual Example:

http://www.camposol.com.pe/







Thanks

am

View Replies !    View Related
Advanced Preloader
I have found many examples of how to do simple preloaders with bars and animations. Ive got that down but wont to go a step further. I have seen preloaders that fill a vector shape. Here is one for example. Does anyone have any input on how to do that or where I can find an example? http://www.evanderholyfield.com/

View Replies !    View Related
Advanced Preloader.
I have a logo, that i want to fill with white as the progress of the preloader....

like as it loads it filles vertically with white.

Is there a tutorial on this or how is it done?

View Replies !    View Related
Advanced Preloader Help
I'm trying to make a preloader for a little flash project that involves re-assembling a load of rectangles to make up a pattern.

Idea is that instead of the usual load bar i wanted to make use of this pattern that is relevant to the project and have it rebuild it self with these rectangles flying in from the side. So far I have got the tweening sorted using the tween class and staggered the 42 (yes took a little while, probably an easier way so let me know on that also) rectangles using 'setTimeout' so it releases each 100milliseconds after the one one before it. This probably the wrong way to do it but i wanted to check how it looked and this was the one way i knew how to do it.

I want to make it so that these rectangles fly in a complete the pattern once the loading has finished, but on a fast connection I don't want it to rush the animation but for a slow connection I obviously want it to adjust the release time and maybe even the travel speed to compensate.

How could I go about this?

I had an idea of maybe working out the percentage loaded divided by 42 and then run an if statement to see if that percentage for that segment had been reached before 100millseconds had passed, if 100 had passed then release the rectangle, if not then hold the rectangle until 100 m/s had passed. Not sure if that is the best way to do but that's why I'm looking for some suggestions from more experienced developers.

I've linked an swf so can see better what I mean click here.

Here is the current AS (not sure if my code is the correct way to be written so any pointers welcome):

Code:
import mx.transitions.Tween;
import mx.transitions.easing.Regular;

// declare variables
var type = mx.transitions.easing.Regular.easeOut;
var chipTweenX:Tween;
var chipTweenY:Tween;
var speed:Number = .5;

// function setting
function rebuild(mc:Object, endX:Number, endY:Number) {

chipTweenX = new Tween(mc, "_x", type, mc._x, endX, speed, true);
chipTweenY = new Tween(mc, "_y", type, mc._y, endY, speed, true);

};

// set intervals
var c01:Object = setTimeout(function() {
rebuild(chip01_mc, 0, -44.6);
}, 0);
var c02:Object = setTimeout(function() {
rebuild(chip02_mc, 0, -18.6);
}, 100);
var c03:Object = setTimeout(function() {
rebuild(chip03_mc, 6.5, -44.6);
}, 200);
var c04:Object = setTimeout(function() {
rebuild(chip04_mc, 6.5, -31.6);
}, 300);
var c05:Object = setTimeout(function() {
rebuild(chip05_mc, 13, -31.6);
}, 400);
var c06:Object = setTimeout(function() {
rebuild(chip06_mc, 19.5, -31.6);
}, 500);
var c07:Object = setTimeout(function() {
rebuild(chip07_mc, 19.5, -18.6);
}, 600);
var c08:Object = setTimeout(function() {
rebuild(chip08_mc, 26, -44.6);
}, 700);
var c09:Object = setTimeout(function() {
rebuild(chip09_mc, 26, -31.6);
}, 800);
var c10:Object = setTimeout(function() {
rebuild(chip10_mc, 32.5, -44.6);
}, 900);

View Replies !    View Related
Help On A/s For Advanced Preloader...
Hi guys:

can anyone tell me a code to make a preloader jump to a frame depending on the quantity on the movie that has been preloaded? in ex i have a mc of a preloader if 5 percent of the movie its loaded the preloader mc will go to frame 2, if 10% the mc should go to frame 3, etc... please let me know if i'm not making myself clear enough thanks in advanced...

View Replies !    View Related
Advanced Preloader
Hi everyone. I have a Flash file for an advanced preloader that fills up a circle with an image as the file loads. The problem is that the readout on screen is the percentage loaded. I am trying to get it to read kilobytes loaded over the total number of kilobytes, with the image synchronized with the amount loaded. If anyone is willing to help me out on this one I would really appreciate it. I can actually send you the .fla file via e-mail so that you can see what I have. Thanks so much for your help.

Kelly

View Replies !    View Related
Advanced Preloader Help
http://www.neverrain.net/

The preloader on this site seems to run through a complete animation before moving forward in the movie.

I am curious if there is something to how preloaders like this work.

Does each animation happen after a certain precent is loaded (in this example, when the squares turn green) or are they just animations that have nothing to do with the actual preloading?

Thank you very much.

View Replies !    View Related
Advanced Preloader
I have x amount of movies that I load into the main movie. Now, I'm lqqking for a preloader code that is housed in the main movie. More clearly, most preloaders are inside of the movie to be loaded. However, I'm looking for the code that could be in the main movie. So, if I want to see the load progress of movie three, the preloader in the main movie would show me this. Any directions Flasher...appreciate everything, all the time...

View Replies !    View Related
Advanced Preloader
Hey,

Before ya ask, i have spent ages looking around at tutorials trying to get this working..

I have a main site, that loads in external swf files according to which buttons are pressed.

The only problem is, for this main site, the preloader doesn't work (even though the same code works for each content page).

This is what i have in frame 1


ActionScript Code:
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*225;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
    this.gotoAndPlay(3);
}


Pretty much the usual.. of course got the gotoAndPlay(1); in frame 2 as well :P

I've tried having the preloader in its own swf file, and having an empty movieclip on the stage, with some code on the same frame stating to load the main movie into it... But the preloader doesn't load the external swf (main movie) its pretty much loads itself.

I've also tried using scenes, even though i swore i never would :P THATS how desperate im getting.

ANY help is appreciated.

View Replies !    View Related
Advanced Preloader Help
//Advanced preloader...//help!!
I am having trouble with this preloader I am trying to make. In it there is a percentage bar loader, bytes loaded, and its set up in a sequence to load the seperate swf files. I am having trouble with the bar and bytes loader parts. Here is a link to the .fla file I am working with. Thanks in advance to everyone with any help.

//....here is the link http://a-d-studio.net/flash/index.fla

View Replies !    View Related
//Advanced Preloader...//help
I am having trouble with this preloader I am trying to make. In it there is a percentage bar loader, bytes loaded, and its set up in a sequence to load the seperate swf files. I am having trouble with the bar and bytes loader parts. Here is a link to the .fla file I am working with. Thanks in advance to everyone with any help.

//....here is the link http://a-d-studio.net/flash/index.fla

View Replies !    View Related
Advanced Preloader Help
Hello,

I am currently designing a advanced preloader. I have a MC with a dynamic field to update the %loaded and I also have a animation of a flower growing that is 68 frames long. What I want to do is calculate the number of frames, and then have flash play a certain amount of frames per percent loaded.

So the effect would be you see a flower growing. SO when its 100% loaded, the flower is completely grown. Make sense? Here is what I have so far:


Code:
onClipEvent (enterFrame) {

//Get total size loaded
mctotal = _root.getBytesTotal();
mcloaded = _root.getBytesLoaded();
//Get percent loaded
mcpercent = Math.round((mcloaded / mctotal) * 100);
percentdisplay = mcpercent + "%";

//Get percentage of frames
flowerframes = _totalframes;
framepercent = Math.round((mcloaded / flowerframes) * 100);

//some sort of code to play each frame loaded??

}
Any help would greatly be apreciated.

View Replies !    View Related
Advanced Preloader
OK, well I'm back again with another preloader question. The first time I had a ball graphic fade out after a certain percentage was obtained. From there another ball would fade out after more percentage and so on. Anyhow, this time around I was trying to have the balls move down, so essentially just changing their _y. Well, I set up the code similar to the one I had before, but now the it seems that all the balls move at once. Anyway, here's the code, tell me what you guys think.


Code:
onClipEvent (enterFrame) {
percentLoaded = Math.floor((_root.getBytesLoaded()/_root.getBytesTotal())*100);
if (percentLoaded>=10) {
sphere01._y += 3;
}
if (percentLoaded>=30) {
sphere02._y += 3;
}
if (percentLoaded>=50) {
sphere03._y += 3;
}
if (percentLoaded>=70) {
sphere04._y += 3;
}
if (percentLoaded>=90) {
sphere05._y += 3;
}
}
Thanks guys,
Lexxon

View Replies !    View Related
Advanced Preloader
The preloader I am creating basically consists of 5 spheres. Once the movie has loaded 20%, the first sphere dissapears. Once it loads 40%, the second sphere disapears, etc. I'm using the basic _xscale and _yscale to make the spheres dissapear, but I need to know what AS code I need to determine when 20%, 40%, etc. has loaded so I can tell it make each consecutive sphere to dissapear. ANy help would be appreciated. Thanks.

View Replies !    View Related
Advanced Preloader
I have a question about the bandwith profiler and importing the data to the second frame. There are only 3 frames on the tutorial, but if I open the bandtwidth profiler of my animation, which contains several frames, the data in frame 1 is small. On the other hand, the data in the last frame is high, because I put some buttons and a swf external holder.

My question is how can I export the data on the last frame into.. other frame? I've tried to do just like in the tutorial, from the publish setting, but it doesn't change anything.

thx
ayoksus

View Replies !    View Related
Advanced Preloader Actionscript
In the following preloader actionscript (that I got from this site), how do I tell target to go to a certain frame in the next scene and play?

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);
}

Currently, I gather that the script is saying at the end, 'go to frame 100 of the next scene and stop'.

How do I change this?

Thanks,

MethodAir

View Replies !    View Related
Actionscript For Advanced Preloader,
hey!
I have tried to make the advanced preloader soooo many time its not funny!

i know how to make a simple preloader. such as if last frame of the last scene is loaded goto and play frame 1 of scene 1. But How can I do that with a % loader bar...
for example. for frame 1 what will i put in the actionscript box when i want it to see if frame 95 of scene 1 is loaded if so goto then next frame on the loader bar scene etc. mines just does not work! can some1 tell me how??? maybe a quick FLA file pulllllease???? my email is
amit_kapadia@msn.com
cheers people, thanks for your time.

View Replies !    View Related
Advanced Preloader Question
hey, has anyone got the book flash 5 bible? If you have if you look on page 564 of the book. its has the code...

-------------------------------------------------------
loadedBytes = _root.getBytesLoaded( );
totalBytes = _root.getBytesTotal( );
if (loadedBytes < totalBytes){
percentageOutput = int((loadedBytes / totalBytes) * 100);
_root.loaderBar._xscale = percentageOutput;
gotoAndPlay("preload_loop");
}
else{
gotoAndPlay("begin_movie");
}
-----------------------------------------------------
I made the preloader fine and the preloader displays the percentage value of how much is loaded, but...it doesn't show the % (percentage) sign! How do I add that in!? Cheers!

Blue Dragon

View Replies !    View Related
Advanced Preloader Code Help.
hey, has anyone got the book flash 5 bible? If you have if you look on page 564 of the book. its has the code...

-------------------------------------------------------
loadedBytes = _root.getBytesLoaded( );
totalBytes = _root.getBytesTotal( );
if (loadedBytes < totalBytes){
percentageOutput = int((loadedBytes / totalBytes) * 100);
_root.loaderBar._xscale = percentageOutput;
gotoAndPlay("preload_loop");
}
else{
gotoAndPlay("begin_movie");
}
-----------------------------------------------------
I made the preloader fine and the preloader displays the percentage value of how much is loaded, but...it doesn't show the % (percentage) sign! How do I add that in!? Cheers!

Blue Dragon

View Replies !    View Related
Advanced Preloader Problem
Hi there,

I have modified the preloader bei Colin Moock (www.moock.org), to show the time left needed for loading. What I do is set two timers and check for the loaded bytes at the same time. That way I get the k/sec-value... which leads me to the remaining time. Note that I cumulate ten values and take the average...

It works fine on my machine (on 768k DSL) and also in debug mode... but some people on dial-up connections (don't know if it has anything to do with that) don't see the number of seconds correctly, but "infinity" instead...

I am blind on this one... can you help

Here's my code:



First frame (labeled "loading"):

loaded_start = Math.round(getBytesLoaded());
timer1 = getTimer();

****************************************

Second frame:


// Specify how many frames to load before playing.
var loadAmount = _totalframes;
// If the required number of frames have finished loading...
if (_framesloaded == loadAmount) {
// ...start the movie
gotoAndPlay ("beginMovie");
} else {
// ...otherwise, display the load status
// then go back and check load progress again.
// First, determine the loaded and total kilobytes.
loaded = Math.round(getBytesLoaded());
total = Math.round(getBytesTotal());
percent = Math.round((loaded/total)*100);
// Display the loaded kb, total kb, and percentage of
// kb loaded in text fields.
bytesLoadedOutput = loaded+" of "+total+" bytes loaded";
/flyingnumbers/percentercentLoaded = percent+"%";
// Set the width of the loadBar to a percentage of
// the loadBarHousing.
loadBar._width = loadBarHousing._width*(percent/100);
// Now go back and check load progress.

//How much time has passed?
timer2 = getTimer();
time_passed = (timer2 - timer1);

//How much has been loaded
total_loaded = loaded - loaded_start;


// check time
counter++;

if (counter == 10)
{

//How much how fast
bytes_per_millisecond = total_loaded / time_passed;
bytes_left = (total - loaded);
milliseconds_left = bytes_left / bytes_per_millisecond;
seconds_left = Math.round(milliseconds_left / 1000);

kilobytes_per_second = (int(((bytes_per_millisecond * 1000) / 1024)*100)/100);

display = "Time left: " + seconds_left + " @ " + kilobytes_per_second + "k/sec";

//Reset variables
time_passed = 0;
total_loaded = 0;
counter = 0;
}

gotoAndPlay ("loading2");
}




And here is the site:

http://www.miracles.de/locks
[Edited by zoidberg on 02-17-2002 at 05:01 AM]

View Replies !    View Related
Preloader ADVANCED Question...
Ok most of you know of http://www.2advanced.com
Now as i see their preloader pops up everytime you click on link to something in the flash movie. How do you get a preloader to load just 1 scene like they do not the entire movie for instance:

You load the page but it only loads your news section, when you click on information it pops up with preloader loads the information section then goes to it RATHER than loading both when you first go to the page.. Any ideas would be helpful

View Replies !    View Related
Advanced Preloader Actionscript Help
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!

View Replies !    View Related
Problem With Advanced Preloader
I have come up with the following code for a preloader. Problem is that by saying:
bps = Math.round(bLoaded/seconds);
bps will change slightly during the loading process (this will also affect the time, of course).

Solution would be to measure how many bytes that are loaded in just one second and then give the user info about bytes per second out from this.
I've tried to capture just one second, but by some strange reason it wont work. Hope someone have a good solution for this, based on the code below.

_root.onEnterFrame = function() {
//bytes
bLoaded = _root.getBytesLoaded();
bTotal = _root.getBytesTotal();
bLeft = bTotal-bLoaded;
//kilobytes
kbLoaded = Math.round(bLoaded/1024);
kbTotal = Math.round(bTotal/1024);
kbLeft = kbTotal-kbLoaded;
//time related
seconds = Math.round(getTimer()/1000);
minutes = Math.round(seconds/60);
bps = Math.round(bLoaded/seconds);
kbps = Math.floor(kbLoaded/seconds);
secRemain = (Math.floor(kbLeft/kbps));
minRemain = (Math.floor(secRemain/60));
//percentage
bPercent = Math.round((bLoaded/bTotal)*100);
//
//following variables are output text displays
//bytes
bLoadedOut = bLoaded;
bTotalOut = bTotal;
bLeftOut = bLeft;
//kilobytes
kbLoadedOut = kbLoaded;
kbTotalOut = kbTotal;
kbLeftOut = kbLeft;
//total number of bytes and kB
totKb = Math.floor(bps/1024);
totByte = Math.floor(bps%1024);
if (totKb<1) {
totKb = 0;
}
totByteOut = totKb+"."+totByte;
//time related
secOut = seconds;
minOut = minutes;
bpsOut = bps;
kbpsOut = kbps;
secRemainOut = secRemain;
minRemainOut = minRemain;
minutesLeft = Math.floor(secRemain/60);
secondsLeft = (secRemain%60);
if (minRemain<1) {
minutesLeft = 0;
}
totTimeRemainOut = minutesLeft+":"+secondsLeft;
//percentage
percentOut = bPercent;
};

View Replies !    View Related
Advanced Preloader Question
hey everyone,

How would you animate a progress bar in a preloader like this http://www.bacardidj.com/entry.aspx not to copy it but i wanna come up with something different. What Im wondering is how to make the bar spin like that?

Any help is great thanx

View Replies !    View Related
Advanced Preloader Problem
Hi,

I am having problem loading multiple files into my flash movie. I need to download a swf file and 3 other external sound files at once. However I am trying to create a progress bar showing the progress of all the files at once. So I sum up the total bytes loaded for the sound files and swf file.

This is working very well in author mode with simulated download. However when I try running this on the internet the preloader doesn´t work correctly. What happends is the preloader progress bar shows 0 % and after a couple of seconds it show 74 % or more. The thing is I need to know the total bytes of every file being downloaded and also total bytes loaded for every file for the preloader to work correctly. So if the information is returning NaN in one of the files the preloader progress bar will show 0%.

So my question is. If Flash is downloading multiple files at once will some files download a little later because other files are being downloaded ? How can I retreive the total bytes for every file downloaded before the preloading starts ?

This is how I´m handeling the preloading part:
I start loading all the files and then I use onEnterFrame to check the progress of the files. So I sum up the total bytes and total bytes loaded of all the files. If one of the files is returning NaN then I return 0 to the preloader otherwise it should return the total bytes of all the files and total bytes loaded of all the files.

Thank you

View Replies !    View Related
Advanced Preloader In Flash 8
I want to create an advanced preloader showing bytes to load/loading with a basic masked graphic showing the completing loading screen.

The problem with other tutorials I have seen is I have a movie to load with another movie to load at level 1 in the base movie - (the base movie loads then level1 loads ready to be replaced with another when the user clicks on a nav button (standard stuff)).

Does anyone know a tutorial like this avaliable for Flash 8?

Thanks!!

StooB

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved