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




Preloader Not Preloading(?)



First, I must say that although I've only recently registered to this site, I have cruised by often and this place is truly a treasure of invaluable information.

Ok, here's my scenario, I have two scenes in my movie,the first scene named "preload" and the second "Scene 1". The first scene is only one frame long and has two layers. Layer 2 contains a very simple animation and layer one contains this code;

stop();
if (_framesloaded=("Scene 1","end")) {
gotoAndPlay("Scene 1", "start");
} else {
gotoAndPlay("preload", 1);
}

Now, the desired result I'd like to achieve would be to have scene one load instantly, displaying my simple animation, while scene two loads. Instead, what seems to be happening is the entire movie is loading at once, resulting in a blank white screen for a few minutes. What can be done to optimize this preloader? Thanks in advance.



FlashKit > Flash Help > Flash MX
Posted on: 01-06-2005, 12:48 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Preloader Not Preloading
I have a problem with my preloader.

It is in a scene on its own, it has a movie clip wich moves up under a mask to simulate the object filling up(similar to the coke site) and it displays the percent downloaded.

Here is the code for it.

onClipEvent (enterFrame) {
percent = Math.round(_root.getBytesLoaded()/_root.getBytesTotal()*100)+"%";
setProperty (_root.bar_fill, _y, (344-((_root.getBytesLoaded()/_root.getBytesTotal())*154)));
if (_root.getBytesLoaded() == /_root.getBytesTotal()) {
_root.gotoAndStop( 2 );
}
}

Once it goes to the frame No. 2 there is the goto command to send it to the next scene. I have obviously done somthing stupid or missed somthing. Thanks in advance for any bodies Help.

Preloading A Preloader
Hio!

I have a preloader which is a kinda big (70 kb.), but want to keep it that way. However I would like to add another preloader for that preloader: a simple thing, a growing bar and the word "Preloading".
I don't want to externally load part of that big preloader.
Then my question is: Is there a way to tell Flash that it calculates the number of loaded bytes of a certain frame or image and not for the whole swf file?
Does it make sense what I say?
Thank you very much!

Manare

Preloading Without Preloader
Hello all - this is probably a stupid question, but I am putting a little moving logo swf at the top of my website but it is a little jerky when the page loads and was wondering if there was a way to preload it so when it does play, it is nice and smooth, but I don't want to show a preloader graphic or anything. Is there a way just to load it before it plays, and if so how? Thanks!

Preloading The Preloader
hello .i have been experiencing some erratic behavior with the preloader from this sites tutorials .
it seems that the preloader needs to be preloaded.when testing in flash "simulate download" it works fine on the server it seems to always wait until about 80something percent before you actually see the "preloader" and it showing the percent .
also i have used this on external swf's that are loaded into a movie .=loadMovie.and once they have been loaded if you call to them again they load again .why arent they already loaded..?

bottom line ..white screen then the preloader starting at 80 something percent then the content..any comments ?
cheers

Preloader Not Preloading
I have a tried and tested generic preloader that I have used for every flash file I have, and it works fine. It doesn't work on my latest project for a client, and I have no idea why.

Is there something wrong with the code/.fla that I have missed?

I can't attach the FLA because its over the MB limit, so I have uploaded it for download on my server:

http://www.iycstaff.com/test/cathouse/topbanner.zip

Any help would be great.

R

My Preloader Is Not Preloading?
Hi! I have another problem. This one concerning preloaders and external movies clips.

I have a test page : http://www.flip-media.com/en/test.html

1. I have one major mc in the background where it is written PORTFOLIO.

2. This mc auto loads 5 external mc's:

code:

id.loadMovie("port_identity.swf");
il.loadMovie("port_illustration.swf");
ph.loadMovie("port_photo.swf");
pr.loadMovie("port_print.swf");
we.loadMovie("port_web.swf");


3. These 5 mc's each preload one other mc.


I used the component progressbar and Loader from flash mx 2004.

I have been suggested to put the 5 mc's in #3 in a Application Form Flash swf. Is that causing problems?

To my analysis, it seems that the mc's are being loading completeley (with the last mc's in the chain) BEFORE even showing the preloader, then the preloader appreas once loading process is complete but does not do anything.

Please help!!

Is it a level issue? I have the _lock.root script on every swf to make sure there is no confusion...

Preloader Not Preloading Enough
my preloader doesn't seem to preload the whole 3 scene movie I ahve made. if you go to http://www.ThisisLondonClub.com/forAltaf
you will see the e card I have made. If it plays choppy or the song ends before you get to the form I have made you'll see my problem.
On my computer the song ends well after the e card has finished animating. Here is the code I have along with some basic notes I have taken to help me decipher it.
If anyone can help me solve whyit's not working please let me know.


onClipEvent (enterFrame) {
if (_parent.doneLoading == 0) {
total = _parent._parent.getBytesTotal();
//isLoaded = the number of bytes loaded
isloaded = _parent._parent.getBytesLoaded();
// p is equal to 100 x (the number of bytes loaded divided by the total amount of bytes)
p = 100*(isLoaded/total);
//this is what sets the number of bytes loaded
_parent.bytes = int(isloaded/1000) add " KB of " add int(total/1000) add " KB";
//this is what sets the percentage each frame
_parent.percent = int(p) add "% LOADED";
//this is what sets the location of the preloader bar
_parent.bar._xscale = p;

if (Number(p)>Number(99)) {
_parent._parent.gotoAndPlay(Number(2));
_parent.gotoAndStop("off");
_parent.doneLoading = 1;
} else {
_parent._parent.gotoAndPlay(Number(1));
}
}
}

Preloading A Preloader? Help
hello people!

i need a bit of help with a preloader i'm trying to make. i have set up a photo gallery based on claudio's very nice tutorial at:
http://www.kirupa.com/developer/mx/p...transition.htm
the problem is, i am now trying to preload this preloader, and it loads, but the external photos aren't loading anymore (it works when run by itself) - it appears to freeze half-way through the "transition" mc. does that make sense?

the code for my preloader is:

_root.createEmptyMovieClip("Container", 0)
Container._x = 0
Container._y = 0
Container.loadMovie("tutorial_complete.swf")
this.onEnterFrame = function() {
loaded = Container.getBytesLoaded()
total = Container.getBytesTotal()
Percent = Math.ceil((loaded / total)*100) add "% loaded"
}

the code for the "content" mc (which appears to be stopping it from progressing) is:

onClipEvent (enterFrame) {
if (!loaded && this._url != _root._url) {
if (this.getBytesLoaded() == this.getBytesTotal()) {
loaded = true;
_root.transition.gotoAndPlay("opening");
}
}
}

can anyone see where the conflict is / why it isn't making it to the "opening" frame?
thank you for looking!

james

Preloading Preloader
I tried a while back making a preloader, the problem is the whole swf file had to download before the movie played!
How is this fixed?  Or would it be better to create a small swf file with the preloader which loads another swf?  I think that would work...



Preloading W/o Preloader
I have a flash image loader that loads external swf's into the root movieclip named "window". It then runs a function "getPics" to load the next swf and so on.

This works fine, but because the images are large, there is a lengthy pause in between pictures as flash attempts to load them (around 25-50k). So once the first swf is loaded, how can i begin loading the next image while the first one plays?

I don't want a preloader, just want to load the swf's into the cache before they are actually called.

Thanks for your help

Problem With Preloading Preloader :)
I have a 900kb large flash page, and ofcouse in first scene I have a preloader.
Preloader contains small animation - 4kb and dinamic text which tells how much has been downloaded.
Problem is that, flash downloads 180kb before he shows preloader.
Actually preloader is 4 kb large, but programm first download 180 kb so if you will observe my page with 56kb modem connection, for first 30 seconds everything you will see is a white popup window :(

Can anybody help me with this one? Does this problem can be solved???


I thank you in advance...

Preloading 3 Swf-files With One Preloader...
Is it possible to preload 3 swf-files and with one preloader show percents loaded of all 3 files?!

Preloader Isnt Preloading....please Help
when i started my "profile page", i began with a preloader, which worked in test mode when i loaded about 240 k worth of pics on the actual site frame. so i figured, time for the site. in the middle of doing, i tested the preloaded, which wouldn't work. what would happen is that the movie would be blank for a few seconds and then go to the loaded page. when i put 200k worth of pics on the site frame, the movie would wait, start at 40%, then finish loading. can anyone tell me what happened?

www.geocities.com/cypherkronis/index.swf
www.geocities.com/cypherkronis/index.fla

Preloader Is Preloading External MC's
I am using a preloader component to preload the basic part of my site, and then the core parts of the site are then external mc's with their own preloaders. However, when I try the full site in flash although the main site 'loads up' properly, the external mc's seem to load instantly, even though when I preview them individually in flash it takes around 5secs for each to laod @ 56k. Have I made a mistake somewhere (as is probable) or is flash 'previewing' it wrong as the other clips are external but stored locally?

Thanks,
Rob Gaskell

Preloading Before Preloader Troubles
I am having troubles with not being able to use a preloader in my current project because the first frame doesn't play until all of the bytes are loaded. I've used the same basic preloaded countless times and have never had trouble before. The only real difference about my current project vs. my others is that the majority of the bytes are in the library and not on the stage. What I mean is that most everything is being attached dynamically. I don't think that should matter, but It's the only thing I can think of right now.

Has anyone else had this problem and if so could you please help?










Attach Code

loadedBytes = Math.round(getBytesLoaded());
totalBytes = Math.round(getBytesTotal());

preload_txt = Math.round((loadedBytes/totalBytes)*100)+"%";

if (loadedBytes == totalBytes) {
gotoAndPlay(3);
}

A Problem Preloading A Preloader
This is the kirupa xml photo gallery w/preloader, and it won't work when a preload is put on the MC itself. The actual MC i'm using has a pretty involved interface, so I need BOTH sets of preloaders to work. Any ideas?

(problem attached)

-nlaffan

Trouble Preloading Preloader
I posted this problem in the general flash topic area too, but it is actually an actionscript question. Attached is the kirupa xml image gallery which I have added a preloader to (in the real version, graphics have been attached to the gallery interface)

When I attach the preloader, the IMAGE preloaders stop working. I'm sure this is a quick fix, but I need BOTH sets of preloaders to work.

Thanks in advance

nlaffan

[AS Any] Preloader Not Realy Preloading
Hi,

Ive got this problem... Im building a site and I want a preloader. The thing is, that there is nothing on stage but the preloader and all library contents seem to preload before first frame actions are executed...

do you know of any way how to preload even library, not just frame, contents?

Thanks

Preloading Before Preloader Toubles
I am having troubles with not being able to use a preloader in my current project because the first frame doesn't play until all of the bytes are loaded. I've used the same basic preloaded countless times and have never had trouble before. The only real difference about my current project vs. my others is that the majority of the bytes are in the library and not on the stage. What I mean is that most everything is being attached dynamically. I don't think that should matter, but It's the only thing I can think of right now.

Has anyone else had this problem and if so could you please help?

A Problem Preloading A Preloader
This is the kirupa xml photo gallery w/preloader, and it won't work when a preload is put on the MC itself. The actual MC i'm using has a pretty involved interface, so I need BOTH sets of preloaders to work. Any ideas?

(problem attached)

-nlaffan

Trouble Preloading Preloader
I posted this problem in the general flash topic area too, but it is actually an actionscript question. Attached is the kirupa xml image gallery which I have added a preloader to (in the real version, graphics have been attached to the gallery interface)

When I attach the preloader, the IMAGE preloaders stop working. I'm sure this is a quick fix, but I need BOTH sets of preloaders to work.

Thanks in advance

nlaffan

Preloading Many Swfs With One Preloader
Hello,
I've done numerous searches for preloading and haven't found a working solution for what I want to acieve (which is simple).

I am simply trying to preload multiple external swfs from my main root swf using one loader. I've tried importing the external swf's into my main movie and setting them in multiple movie clip holders. When I run the swf, the preloader preloads these locally, but when I go to access the external swfs later in the movie, it pauses as is they were never cached at the begining.

What can I do to get these to cache at the begining?

More Preloader Problems. Preloading On Other Than 1st Frame
I am tiring to figure out how to display an animation while mc clip are loading into an existing mc. I’ve use the script below and gotten patchy results as the animation only playa for a moment and then stops. This script on the mc that is having other mc loaded into (ie not on the main timeline. Any ideas. I’ve looked through the forum but there is nothing which addresses this issue

yarrab


onClipEvent (enterFrame) {
this.onEnterFrame = function() {
if (this.getBytesLoaded()<=this.getBytesTotal()) {
_root.loadingmc.gotoAndPlay(2);
}
};
}

Please Help - Preloader For External Jpegs Is Not Actually Preloading
I am trying to create a preloader that will load external jpegs into a movie clip before playing the movie. I came up with the script below to create a preloader that would load two separate jpegs before playing. I thought it was working because when I played it locally, the preloader bar flashed briefly before the movie played, but when I tested it on my server, I realized it wasn't actually loading the jpegs afterall - it was just playing anyway.
Can anyone help me? I've been searching everywhere for a solution! Thanks!!!!

code:
stop();
loadMovie("photos/home/home1.jpg", home1);
loadMovie("photos/home/home2.jpg", home2);
myInterval = setInterval(preloader, 10);
bytes1 = home1.getBytesTotal();
bytes2 = home2.getBytesTotal();
totalBytes = (bytes1+bytes2);
loaded1 = home1.getBytesLoaded();
loaded2 = home2.getBytesLoaded();
loadedBytes = (loaded1+loaded2);
function preloader() {
if (loadedBytes>=totalBytes) {
play();
clearInterval(myInterval);
}
progressBar._xscale = (loadedBytes/totalBytes)*100;
}

Preloading External SWF's Using Seperate SWF As A Preloader
Oldnewbie was going to help me on this one, but I told him I thought I had it figured out... However, I am coming to quickly realize this is probably harder than I thought.

Is it possible to have a seperate 200x50 SWF act as a stand-alone preloader which loads all of your external SWF's? Then once they have all been loaded, it then proceeds to play a designated SWF. Which in this case would be my main SWF.

Any ideas? It doesn't have to be fancy. Just a basic preloader with a bar and text loading all of your external SWFs. Once they've all been loaded it proceeds to play the main SWF or whichever SWF you want.

Thanks in advance... If I can get this solved my site should almost be complete YAY!

Preloading Multiple SWF Files Into One Preloader
I'm trying to load multiple swf files, in one preloader, such as the navigation, BG picture and so forth. For the Contact Page, Warranty and so forth, they will be independent, but I can't seem to preload the base swf files into one preloader.

Need Some Help With Preloader (getting It On Screen And Preloading) B4 Mc Is Loaded
Hey all Just having a slight difficulty with my preloader.

I have recently modified it so that the preloader nicely fades in, preloads and then fades out once the entire mc is loaded.

My problem is that is appears to function corrrectly when your on a nice high speed connected, but when you stimulate the download under 56k for example, the preloader will either fade in and then out before the entire movie is loaded (meaning there is nothing on screen while the entire mc is loading) or it will not appear on screen until the entire movie is loaded (defeating the entire purpose on having one, it will appear on screen for 1 second).

Im not sure why it is doing this.

If someone could give me a hand would be greatly appreciated.
http://users.ncable.net.au/~timfrancis/final_main_testing_preloader.swf http://users.ncable.net.au/~timfrancis/final_main_testing_preloader.fla

Preloading Multiple Swf Files With One Preloader
I have a swf file that I am using for transitions in a flash site. The site will use multiple swf's and I want to be able to use this transition file over repeatedly to preloader the various levels. So, my question is where do I start to code this as the transition swf file is in a level too? I just want to be able to preload all the levels above the transition. I hope this makes sense.

Preloading Attached Movies Screws My Preloader(?)
hi,
i know that if you have movie clips you want to attach they are preloaded in the first frame of your movie. is this true? it seems so to me. This busts my preloader though, it comes up only at 90% of total (that is after loading the attaching movie clips i think). is there a way to solve this problem? can i move these movie clips' preloading to the next scene? any tutorials on this? please HELP.

Mx04: PRELOADER: BUT-only Preloading To A Certain Point/label
Hi, I know that there are millions of questions on here about preloaders but heres one i can't seem to find an answer to. Firstly i don't know much abut prelaoding but don't worry i'll figure that out myself what i would like to know is this:

Q:Is there a way in which i can preload my movie up to a certain label or frame No? Then use seperate preloaders to load in mc's on my main timeline as each one is 'clicked on'

All i seem to find are preloaders that do this; gettotal bytes = totalbytes loaded type thing when i really need something (if its possible) like;

preload up to mc "01 kitchen" then play
or
preload up to frame (4) then play.

My idea is I can preload the intro page, then when the user clicks onto a certain button they go into one of my mc's which i'm also going to preload. this way instead of preloading 2.5mb of site i can split it into severla preloading 'scenes'

Thanks in advance

[F8] Preloading... It's Loading Later Things Before It Loads The Preloader
I have made a lot of preloaders before but for some reason this one is being weird.

I set it up how it should be, actionscript is good. Preloader is in scene before new one. Everything works right, but it loads like 60% before it even shows the preloader. It's white for a few seconds then the preloader just jumps to like 60%.
And on the bandwidth profiler it says it has 60kb to load on the first frame... which I have nothing on the first frame.

Would be be because I'm using components? or I have a lot of actionscript in the next scene?

Preloading An External SWF Using The Same Preloader As The Parent Movie
I have an external swf that is randomly chosen (out of 5) and loaded into my main movie. This works great, but I'm trying to figure out a way to have this external SWF preload when my parent movie preloads, I'd like to have it included with the parent movie's preloader progress.

Also, I would like the parent movie to not continue playing until my loaded swf file has completely played.

Any help on this would be greatly appreciated...

-John

Preloader In Document Class (Seems Like A Day For Preloading Issues)
Normally i have a separate preloader swf to load my main movie.

My application uses a document class and stupid flash waits until the whole movie is loaded before calling the constructor.

I wanted to put my loading script in this document class because I am only allowed to upload one swf to the site i am submitting my swf to.

My app has just the one empty frame. everything is loaded in the document class to be put on stage.

i tried putting a preloaded in frame one directly on the stage but this didn't work either.

feeling stupid and frustrated.

any ideas,

thanks,

andre

Preloading Dynamic Data With A Visual Preloader
Okay, to first get an idea of what i want...

go to http://www.kirupa.com/developer/mx/p...transition.htm

i followed this tutorial fine..its all good, i even made the profile, gallery, photos.swf to load from a completely different site. Its all good. Not my problem now is. I want to create a visual preloader for this thing. As you can see. As the movie is preloading each separte swf the animation for the loading screen doesn't tell much. I need the users to see exactly how far their download has gone. How can i do this, from this tutorial given? I tried adding the preloader given here

(http://www.kirupa.com/developer/mx/preloader.htm)

obviously it doesn't work...It will only preload the default profile swf. But when i click on gallery, it doesn't show the preloading progess. i tried changing the code a bit to maybe make it work but i failed. Anywayz, here is my code for the preloader. Its just the movie clip in frame one, of the stage, on a separate "preloader" layer.

onClipEvent (enterFrame)
{
var bytes = _root.section.getBytesTotal();
var bytes_loaded = _root.section.getBytesLoaded();
if (bytes_loaded == bytes)
{
this.kirupatxt = "movie loaded";
}
else
{
this.kirupatxt = "loading (" + bytes_loaded + "/" + bytes +")";
}
}

I highly recommend you all take a look at both links and go through them. Then you will know what I am talking about.
*if you really need my fla, just ask me, i'll include it in the next post*

Preloading Dynamic Data With A Visual Preloader
Okay, to first get an idea of what i want...

go to http://www.kirupa.com/developer/mx/p...transition.htm

i followed this tutorial fine..its all good, i even made the profile, gallery, photos.swf to load from a completely different site. Its all good. Not my problem now is. I want to create a visual preloader for this thing. As you can see. As the movie is preloading each separte swf the animation for the loading screen doesn't tell much. I need the users to see exactly how far their download has gone. How can i do this, from this tutorial given? I tried adding the preloader given here

(http://www.kirupa.com/developer/mx/preloader.htm)

obviously it doesn't work...It will only preload the default profile swf. But when i click on gallery, it doesn't show the preloading progess. i tried changing the code a bit to maybe make it work but i failed. Anywayz, here is my code for the preloader. Its just the movie clip in frame one, of the stage, on a separate "preloader" layer.

onClipEvent (enterFrame)
{
var bytes = _root.section.getBytesTotal();
var bytes_loaded = _root.section.getBytesLoaded();
if (bytes_loaded == bytes)
{
this.kirupatxt = "movie loaded";
}
else
{
this.kirupatxt = "loading (" + bytes_loaded + "/" + bytes +")";
}
}

I highly recommend you all take a look at both links and go through them. Then you will know what I am talking about.
*if you really need my fla, just ask me, i'll include it in the next post*

Preloading External Movies Question - The Preloader Bar
hello peeps


i'll soon have a base movie with some external swf's that it will load using loadMovie

scenario:
i want a simple preloader to show whilst each external movie is loading (i'm using the loader component, so it's just a bar and some text)

what i want to know is:

do i have to insert a preloader into each separate swf, or could i just add some code to the buttons in the base movie to show the preloader?

i'm guessing the first point is the only way to do it because i can't see how the base movie would 'know' the size of the external movie?

Problem With Preloading Images With Advanced Preloader
Hi,

I used the advanced preloader tut in my flash project. The project is a jigsawpuzzle. I'm quite new with flash.

The problem is that the images don't show anymore (in the preview window on the top left and on the puzzle) when the images aren't imported in the first frame. Otherwise it works fine.

Can anybody help me to solve this problem?

You can find the fla here: jigsawpuzzle

Preloading Jpeg Files (preloader Sequence Error With IE)
// preloader
j = 1;
_root.createEmptyMovieClip('preloader', 12);
preloader._x = Stage.width/2;
preloader._y = Stage.height/2;
preloader._alpha = 0;
_root.createTextField('preloaderText', 13, (Stage.width/2)-25, (Stage.height/2)-25, 300, 100);
Int = setInterval(function () {
if (j<9) {
preloader.loadMovie('image'+j+'.jpg');
bytesLoaded = preloader.getBytesLoaded();
bytesTotal = preloader.getBytesTotal();
trace(bytesLoaded);
if (bytesTotal>0) {
if (bytesLoaded == bytesTotal) {
j++;
trace("image"+j+" loaded");
} else {
preloaderText.text = 'loading...'+bytesLoaded;
preloaderText.autoSize = "left";
trace(bytesLoaded+" of image"+j);
}
}
} else {
removeMovieClip("preloader");
removeMovieClip("preloaderText");
play();
clearInterval(Int);
}
}, 1000);


My problem is while it works fine with NETSCAPE > 6 browser it doesnt with IE 6

Now I use flash player 6 plugin on both browsers
I am using a DIAL UP
it works with IE with other people because they are using a faster connection
in IE i notice that the status bar shows a 'downloading' status when loading the flash movie yet it doesnt seem to continue after that.

the movie can be viewed at
http://www.onlinetnt.com/draft/flash/DIALUP_REDRAFT.swf

What is wrong here

Preloading Jpeg Files (preloader Sequence Error With IE)
// preloader
j = 1;
_root.createEmptyMovieClip('preloader', 12);
preloader._x = Stage.width/2;
preloader._y = Stage.height/2;
preloader._alpha = 0;
_root.createTextField('preloaderText', 13, (Stage.width/2)-25, (Stage.height/2)-25, 300, 100);
Int = setInterval(function () {
if (j<9) {
preloader.loadMovie('image'+j+'.jpg');
bytesLoaded = preloader.getBytesLoaded();
bytesTotal = preloader.getBytesTotal();
trace(bytesLoaded);
if (bytesTotal>0) {
if (bytesLoaded == bytesTotal) {
j++;
trace("image"+j+" loaded");
} else {
preloaderText.text = 'loading...'+bytesLoaded;
preloaderText.autoSize = "left";
trace(bytesLoaded+" of image"+j);
}
}
} else {
removeMovieClip("preloader");
removeMovieClip("preloaderText");
play();
clearInterval(Int);
}
}, 1000);


My problem is while it works fine with NETSCAPE > 6 browser it doesnt with IE 6

Now I use flash player 6 plugin on both browsers
I am using a DIAL UP
it works with IE with other people because they are using a faster connection
in IE i notice that the status bar shows a 'downloading' status when loading the flash movie yet it doesnt seem to continue after that.

the movie can be viewed at
http://www.onlinetnt.com/draft/flash/DIALUP_REDRAFT.swf

What is wrong here

Stop Preloader From Preloading Everytime The Page Loads
Hi all,

I have used Jesse's smooth preloader to get load my swf file (Thanks Jesse - works wonderfully).

Is there a way though that I can stop the preloader from loading the swf file every time I go to another page. I'd like it to load once and then go directly to the next scene so there isn't that delay in loading...

Here's the site:
http://projects.sixfoot.co.za/coda/newsEvents.htm

And here's the code:

PHP Code:



onClipEvent (enterFrame) {
    loading = _parent.getBytesLoaded();
    total = _parent.getBytesTotal();
    percent -= (percent - ((loading / total) * 100)) * .25;
    per = int(percent);
    percentage = per + "%";
    percentBar_mc._width = per;
    if (percent > 99)
    {
        _root.gotoAndPlay("main");
    }





Thanks as always...

Preloader Not Accurately Preloading...huge Lag Time While Browser Tries To Load
i'm using a preloader that I have used many times before...and has always worked. However for some reason, it's not workng properly now. When i load the url in my browser, I get a completely black screen (blk is my background color) for quite some time, until eventually my preloader pops up for a second and then the main part of my movie appears. (then loads in 1st external swf with home page content).
I assume that the long lag time i am seeing is the time it takes for the file to load into the browser....isn't that what a preloader is for?? So at least there is some indication of what you are waiting for?
One last thing: my main swf file is HUGE!! I can't seem to figure out why. My swf is 2.4 MB. MY SWF!!!! the FLA is 5.4 MB. To me...that seems rather large, and there really is nothing to make it that big. I use external swf's for my content to keep file size down....i don't get it....
Can I get a little help from someone...anyone.... please?
thanks in advance....

Here is the code from my preloader scene, from here it goes to Scene 1. My preloader is 3 frames, my main movie (Scene 1) is one frame. I'm working in MX2004Pro on a G5:

Frame 1.)
code: fscommand("fullscreen", "false");
play();
//////////// 1st Sound /////////////
transForm = new Sound();
transForm.attachSound("transSound");
transFormVolume = 75;
transForm.setVolume(transFormVolume);
///////////// 2nd Sound ///////////
staticTV = new Sound();
staticTV.attachSound("static01");
staticTVVolume = 50;
staticTV.setVolume(staticTVVolume);
///////////// 3rd Sound ///////////
laser = new Sound();
laser.attachSound("laser01");
laserVolume = 50;
laser.setVolume(laserVolume);

Frame 2.)
code:
// percent_display is the name of dynamic text box showing percentage of movie loaded
percent_display = (int((_root.getBytesLoaded()/_root.getBytesTotal())*100)+"% loaded . . .");
// Check to see if the movie is loaded.
if (_root.getBytesLoaded() != _root.getBytesTotal()) {
// If not, loop to the previous frame.
prevFrame();
} else {
// If loaded, play movie
play();
}

Frame 3.)
code: stop();
gotoAndPlay("Scene 1");

My Progress Bar mc has this script inside it's 2 frames:
code:
// in frame 1
setProperty(this, _xscale, (_root.getBytesLoaded()/_root.getBytesTotal())*100);
play();

// in frame 2
prevFrame();

Preloader Question Required For Preloading The Entire Set Of 5 Jpgs On 1 Swoop
Basically I was at first going to have five images using attachmovie inside the flash.

But I wanted to prelaod them all, no problem, however I wanted an intro, but this would not be possible as preloading from the first frame is only allowed using attachMovie, so that blows that out of the window.

So an alternative would be externally loading the images.

But what I want is for a preloader to preload all of the external images in one group.
Ok I can guess that these will not be updated for a long time so even maybe just preload five images in one set.

I have no idea how to approach this task, I have a random script in place, and a few other additions, but its the preloader I am strugling with in relation to my requirement.

Help please?

Anything samples, links to a tutorial matching my requirements, anything at all to help me solve this equation.

Cheers

Trev

Preloading External .swf's And The Main .swf All In The Main .swf's Preloader
Hello everyone

My question is would anyone know how to preload external .swf's and the main .swf all in the main .swf's preloader? All feedbacks are welcomed. Thank u.

toneDigital

Preloader Not Really "preloading"
I am using Flash MX 2004 and publishing in Flash 6 with Actionscript 1.

I have my flash project that works nicely but it's about 300k so I wanted to add a preloader. I tried a few and nothing worked, so I came across these instructions for making my own... http://raven.ubalt.edu/staff/simon/m...preloader.html

I followed all of the steps and it should work fine. But after testing I find that the movie preloads but doesn't show the "loading status bar" until the preload has completed. So this basically negates the preloader!

There must be something simple I am not doing when publishing or something that is causing this.

Thanks for your help!

Preloading .swf Before Preloading Main Movie
Ummm

Things are getting complicated lol

I have my main movie going ..AND I actually managed to get a pre-loader working ...

and it's all ok as long as you have adsl or cable connection - otherwise it is REALLY messy.

The main .swf uploads onto the web .. but the secondary swf have not yet loaded .. and so it is all out of synch .. if you wait a while and refresh you get it ... but argh it is horrible .....

so .. is it possible to block the preload of the main movie until it has preloaded its secondary swf's ??

I should imagine it's recoding the actions AGAIN .. can any one get me started please ..

Is this often a problem if you add swf to a main movie ???

tyyyy all

julia

Help Required Progress Indicator Bars. NOT PRELOADING BARS AND NOT A PRELOADING QUE
Help required ! progress indicator bars. NOT PRELOADING BARS AND NOT A PRELOADING QUESTION!

OK I have a swf called audio.swf which just contains a 15 minute streaming audio file that it just dragged along the time line.

I want to have some visual indicators in the swf, so that the user has some info of what is going on:

What I require within the swf are the following:

1.Progress Bar: How much of the movie has been played. This will obviously go up as the timeline for the swf progresses.
2.Streaming bar: Giving the user an indication of the amount of swf that has currently been downloaded.
3.Time (minutes and seconds) that the movie clip has been playing for
4.Elaped time (time remaining)

As you can see I have attached no fla, as I am sure that these 4 visual indicators are all fairly simple to code of any of you action script daddies out there.

Any help on one or all the 4 things I require would be brilliant.

If anyone could help me this would be more than appreciated.
Cheers

PRELOADING (dynamic Preloading?)
dear all

i hope someone could give me tips how to do this:

i have one main scene and 7 navigation-points. each of the 7 scenes are external movies which should be loaded.

but can they load in the background too, even if the user didnt select a point yet? and when he does, the progress bar would automaticly fill up as much as the movie is loaded already. and it should continue loading all the scenes in the background, while he is in one section.

i hope you know what i mean, excuse my english.

looking forward for a help asap. thanks a lot in advance!

PreLoading Scenes (PRELOADING)
Hi everyone. Ive had my website running for a while now www.coriolis-effect.co.uk Its nearly done all but preloading really. I want visitors to be shown that something is happening rather then just waiting. This has caused a fair percent of people to leave the site straight away especially those with crap connections. Anyway Ive had a look around on the forum a bit for help and I can't see anything about Scenes and preloading them. Maybe there is a way to just preload so many frames? Any help appreciated Lewis

http://www.purgeme.co.uk/lewis/Corio...lis-Effect.fla

How Do I Make A Fast And Easy Preloader Or A Hard Cool Looking Preloader
how do i make a preloader?? ive went thru many toutorials and they dont make sense to me i want a cool looking preloader if i can but if not!! a preloader that is jest flashing the words "loading" would be nice to know how to make....
im kinda new to flash MX and all Flash programs so could u explain verry well???

Copyright © 2005-08 www.BigResource.com, All rights reserved