Preloader Issue: Loader Shows Up Too Late
I'm having an issue with my preloader in AS2.The actual preloader works fine, but doesn't show up until about 10 seconds later (around 55% loaded). I have read articles on 'switching off' my movie clips that export in first frame to reduce load time and instead placing them in the second frame of the movie (off-screen). Well, this seems to help but still the preloader shows up too late...is there anything else I can try? I found a preloader in AS3 that works, but then some of my mc scripting in the actual website (AS2) won't work. I have also tried different load orders (top/down, bottom/up) but to no avail.Does this have anything to do with loading most of the content from an XML file?Any ideas?
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 10-14-2008, 01:15 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Preloader Shows Up Late Or Not At All...
OK everyone, I'm kind of learning actionscript by doing and reading a couple manuals but this has me stumped. My attached movie has a circular preloader I found online. It works fine on it's own but when I apply it to my movie it shows up late(like at 80% or so). The preloader is called circle.fla. My movie file is main4.fla which is published for AS 2.0.
I think I'm outclassed here and would GREATLY appreciate some help on how to make the loader work for my movie from you geniuses out there.
Preloader Shows Up Too Late Please Read
I have a flash file that uses some sounds which are being exported through the 'linkage option'.
I need/call the sounds in the main scene, _not_ within the preloader. However, my preloader (progress bar) shows up on the screen when it's already 95% done. I think it loads everything that is marked for export in the library first, before it displays anything on the stage.
Does anybody know how to change Flash's priorities, or is there something else I can do to show my preloader progress bar starting at 1%??
Thanks for your help,
Joepy
Loading Bar Shows Up Too Late
well i have this site intro with a preloading 1st scene.
it´s got a "% loaded" text and a loading bar (mc).
no bug, it works like a clock.
the problem is: on the web browser, the text and loading
bar will only appear when the movie is about 60% loaded,
although they are in the 1st frame of the movie.
is this a server problem, a browser problem, or am i
missing the point in flash?
thanks for any idea.
STUMPED How To Create Raster Preloader That Shows Full Loader ?
I'm always wondering how a preloader that uses images (probably an animation that was imported into AE and exported as frames) like for example on this site: http://www.foxhome.com/garfieldthemovie/main.html is created so it shows all the way through ? whenever I use non vector animation, it shows halfway through ? is it some type of external swf preloader ? please someone maybe can explain and give an example FLA.
thanks !
Loading Bar Shows Up Really Late After Clicking The Button
When press the button that opens a swf the loading bar shows up so late that u start thinking that the link to the button doesnt work... All tutorials I've seen tell the same, same code, same loop between first and second frame till all kb are loaded and goes to frame 3 where the movie starts. Did I missed anything?
..........thanks.
Loader Appears Too Late...
hello everybody,
please look at this website
http://www.lenarosahaendle.de/
sometimes - especially when pressed the big >Lena Rosa Händle<-Button -
the loader appears too late (at 80%).
can anybody explain why?
Flash CS3 Preloader Issue - SWF Plays Before Loader Finished
I'm very new to Flash (havent done it since Uni) - I've created a preloader that loads an external SWF file using an online tutorial.
The issue I'm having is that when the loading bar is complete and the SWF file shows, it has already been playing and is halfway through the file!
I'm not sure what I have to do, here is my code, any help at all would be appreciated
var myRequest:URLRequest = new URLRequest("banner.swf");
var myLoader:Loader = new Loader();
myLoader.load(myRequest);
myLoader.contentLoaderInfo.addEventListener(Event. OPEN,showPreloader);
myLoader.contentLoaderInfo.addEventListener(Progre ssEvent.PROGRESS,showProgress);
myLoader.contentLoaderInfo.addEventListener(Event. COMPLETE,showContent);
var myPreloader:Preloader = new Preloader();
function showPreloader(event:Event):void {
addChild(myPreloader);
myPreloader.x = stage.stageWidth/2;
myPreloader.y = stage.stageHeight/2;
}
function showProgress(event:ProgressEvent):void {
var percentLoaded:Number = event.bytesLoaded/event.bytesTotal;
myPreloader.loading_txt.text = "Loading - " + Math.round(percentLoaded * 100) + "%";
myPreloader.bar_mc.width = 198 * percentLoaded;
}
function showContent(event:Event):void {
removeChild(myPreloader);
addChild(myLoader);
}
Thank you!!
Why Is A Preloader Late?
Hi;
I'm confused and frustrated at this issue. I have a movie that is fairly large (1.8MB) and have a preloader in a "preload" scene, to take care of the preloading. Nothing fancy. Just some text that says they are loading 1.8MB of data, and a dynamic percent value displaying their progress.
The problem is that, the movie has to load about 300K before they see the loading message! Is there a reason for this? I thought that the whole point of having a preloader is that, it will show progress as soon as the movie loads.
Any help or info to clear this up would be grealy appreciate.
thanks;
J.
Preloader Is Late
I have a main swf movie that loads other swf movies upon clicking a link. Each smaller movie has a preloader. I launched my site and tested it on a slower modems and found that my preloader is popping up about 3-8 seconds AFTER I click a link. This will prove to be VERY frustrating for some users who may think the link is broken and continue to click... click... click.
Hoping to remedy this problem I opened my source files (one example attached) and found that my first frame is ranges between 16-22k in size, yet there is nothing that I have in that frame that is even close to that size. I deleted my preloader and the size stayed the same. What is going on here?
Please take a look at the file, and tell me what you think. Feel free to edit and repost the file.
Thanks ahead of time
Late Preloader ... =(
Hi, I'm creating a website using html, and all the swfs i create are embebed in the html, but whenever the viewer (could be me obviously) goes to a different section of the site the swf take a bit to load, and during that time the space occupied by the swf just shows blank!! I'm using preloaders this way: i place the preloader on scene 1 and the content of the swf is on scene 2! but the purpose of the preloader isnt being fulfiled!!!it should INSTANTLY appear when the site viewer navigates on the site,but that doesnt happen!! And the blank(which could be named as a "white flash")for BIG swf files lasts for 10 seconds or more!It's causing me big trouble!How can I bypass this?To make myself clear,what i want,is that the swf files whatever size they are INSTANTLY start to run!Appreciate any help!THANKS!
David
Preloader Appear Late
Hy again. I have a question about a loader "thing".
I have a Scene with a couple of buttons and an empty MovieClip.
When the user clicks a button, an external SWF load's into that empty MC. The Preloader that appears after the click on a button, is put on the first frame of that external SWF. The "thing" is that the preloader appears late...'bout 2-3 seconds.
I see on other sites that when i click a button, a preloader appears INSTANTLY! How can i do that...how can i make my preloader appear fast? It's not so big problem but i think that when a user navigate through my site...he's gonna think that the site is bad made...
Here is the link to my site where u can see the preloaders appear slow: www.diblue.3x.ro - click the ABOUT,WORKS,REQUEST buttons!
Help Late Night, Late Project, Beginning Student In Need
ok, i know it is something really stupid im not seeing...i am just starting actionscripting (flash mx 2004)
can someone look @ this and see what my code is missing? i just think i did not get much sleep last night and this all seemed so clear in class this morning and now it is eluding me - i feel like an idiot! any help would be appreciated - thanks - jb
[F8] Pre-loader Only Shows At 80%
I have tested the attached pre-loader and it only shows the first frame and progress bar at 80%.....
I am testing by pressing ctrl-enter when in test movie.....
Can anyone have a look and see why this would be happening?
Thanks
Preloader Kicks In Late...
Alrite I have a proloader with % on my flash movie. Only problem is when I stream it in Flash MX the screen is for about 15 sec then finally the preloader appears but it is already at 59% loaded and it continues from there. I need it to appear at first so people can see that it is actually loading from 0%. Waiting 15 sec won't work for me. Any ideas?
Preloader Starting 20k Late
My preloader bar doesnt even show up until it is already 20k loaded.. why isnt it starting at 0? Heres my script:
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);
}
I copied that straight from a flashkit tut, and it works fine except mines starting 20k late and leaving a big empty black screen while the first 20k loads, which looks very bad.
Anyideas???
Preloader Appears Too Late
I have a Standard Preloader that i downloaded on this site, with bar+percents.
I put the preloader into the first frame of my scene,
my movie.swf on frame 2.
THE PROBLEM IS the preloader appears late, the bar is at 60% finished...
It works but it seems that the movie preloads 60% BEFORE go to frame 1 where my preloader is.
I hope its clear, sorry 4 my english.
Help me and THX.
Preloader Appears Very Late.
Okay, I doing this flash..about 1 MB and after I complete the scenes, I start creating the preloader.
The preloader works fine on testing but problems appear after I upload it.
The movie went blank for about a min and then it appears with the percentage being already 64% and then continues way up to 100%. I'm puzzle about what's taking the preloader so long go appear...
I thought at first that maybe My preloader BG's file size is too big so I got rid of it but it's no use. My preloader's only 4 frames with 5 layers.....all words and a small button.
Anyone tell me wat's wrong?
Thanks.........
Preloader Showing Up Too Late
ok i made a site in flash, and i added the preloader to it, the same one i use for all my stuff, and i test it and it doesn't show up, so i upload it to see if it works on the internet... at first it didn't show up at all then a couple kb's before it was done loading it showed up. i have tried multiple preloaders and all of them do the same thing, what causes this and how can i fix it?
Preloader Starts Late?
Hi, I have a preloader that starts halfway through. I have done a few tests on different size movies. and none of them start from 0.
I know that flash has to load stuff from the first frame, and have tried maked the grapgics for the preloader external in the aim it would load it first, but didnt work. so I have done a test on a real simple 40KB movie that just has a movie clip(in the second scene) in with 3 images on seperate frames, each with a stop command in.
On the first scene is the preloader. which is structure like this
---1st frame
//initialize text fields
loadpercent = "0%";
loadBytes = "0 of " + Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000 + " Kb";
graphics for preloader (2 dynamic txt boxes, static text 'loading' and a movie clip of a simple bar, that gets resized in ac.
---2nd Frame
loadPercent = (Math.floor(_root.getBytesLoaded()/_root.getBytesTotal()*50)+"%");
loadBytes = (Math.round((_root.getBytesLoaded()/1024)*1000)/1000+" Kb of "+Math.round((_root.getBytesTotal()/1024)*1000)/1000+" Kb total Loaded.");
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
// Check for finished loading
// If loaded, final update to fields
loadPercent = "100%";
loadBytes = (Math.round((_root.getBytesLoaded()/1024)*1000)/1000+" Kb of "+Math.round((_root.getBytesTotal()/1024)*1000)/1000+" Kb total Loaded.");
gotoAndPlay("finished");
// Where to go once your movie is loaded
}
--3rd Frame
gotoAndPlay(2);
///Loops back to continuosly update text fields
---4th Frame 'finished'
nextScene();
can anyone tell me how to make the preloader start from 0 or close to it.
Thanks
Kaan.
Preloader Showing Up Late
I have just done a Flash website and tested it out online. However my loading bar seens to be showing up late. The site loads with a blank screen and the preloader only appears when the whole site is about to finish downloading. I have place my preloader in the first frame and everything else starts at the 2nd frame.
How do i resolve this problem?
Preloader Starts Late, HELP
I'm going crazy here. I made a preloader and to test it I put a jpeg image after it to see if it works. So far so good, works like a charm.
When I want to use it to load my site it doesnt work to well. The loader starts at +80%!
According to the bandwith profile my first frame where the preloader is, is the biggest frame. Its almost 50kb! The preloader is only 5kb and i'm not using any sounds. I am however using another font in my movie, not a default font, but i tried to change all text to _sans, but still same problem.
Would really really really appreciate some help on this.
onClipEvent (load) {
//get starting info
totalFileSize = _root.getBytesTotal();
startTime = getTimer();
startBytes = _root.getBytesLoaded();
//hide progress bar
//this._yscale = 0;
}
onClipEvent (enterFrame) {
//see how much has been loaded so far
bytesLoaded = _root.getBytesLoaded();
//convert to a value from 0 to 1
amountLoaded = bytesLoaded/totalFileSize;
//convert to a value from 0 to 100
percentLoaded = int(100*amountLoaded);
//set the scale of the progress bar
this._yscale = percentLoaded;
//this.fill._yscale = percentLoaded;
//set the text area in the main timeline
_root.loadingMessage = percentLoaded + "%";
//get speed
timeSoFar = getTimer() - startTime;
speed = bytesLoaded/timeSoFar;
//get the time left
bytesLeft = totalFileSize - bytesLoaded;
timeLeft = (bytesLeft/1000)*(speed/1000);
//convert to a number with one decimal place
speed = int(10*speed)/10;
//set the text areas
_root.bytesMessage = int(bytesLoaded/1000) + "kb/" +
int(totalFileSize/1000) + "kb";
_root.speedMessage = speed + "k/sec";
_root.timeMessage = int(timeLeft) + " seconds remaining";
//see whether that is everything
if (amountLoaded >= 1.0) {
_root.gotoAndStop("start");
}
}
Preloader Loads Up Late
Hi everyone, Im almost done with a site that Im doing for a client, but i just realized that the Preloader that I have been using all along isn't loading up right away. I know more then 1 person has had this question, i have read alot of those peoples post but just cant seem to figure out the answer. The script that im using is this.
stop();
myInterval = setInterval(preloader, 10);
function preloader() {
if (getBytesLoaded()>=getBytesTotal()) {
play();
clearInterval(myInterval);
}
bar._xscale = (getBytesLoaded()/getBytesTotal())*100;
myTextField.text = Math.round(getBytesLoaded()/getBytesTotal()*100)+"%";
loaded.text = getBytesLoaded()+" Bytes Downloaded";
total.text = getBytesTotal()+" Total Bytes ";
}
I have my preloader on the 1st frame in scene 1, scene 2 is where the rest of the site is. Is anyone able to help me out and look at that script and tell me why its not working, I would really really appreciate the help.
Thanks
Frank
Yes, Preloader Staring Late.
I know this has been discussed a million times on the forums and I have been reading a ton about preloaders etc. But for some reason my preloader is loading late. It loads about 80% of the file and then appears.
My .fla and .as files are attached in the .zip on this message. I have some fonts that I am exporting on the first frame. That's the only thing I can think of that is causing a problem.
Anyone have any advice? Thanks!
Preloader Kicks In FAR Too Late HELP
For some reason my preloader is only displaying after about half of the movie is cached. Nothing is exported in first frame.... i think. This is really killing my site, as all my pages open as preloaded external SWFs and the user has no idea anything is happening when the button is pressed to open a page (like the one attached) especially on a dial up connection.
PLEASE SOMEONE HELP!
the background images have been removed to keep the file size down on the fla
Preloader Kicks In FAR Too Late HELP
For some reason my preloader is only displaying after about half of the movie is cached. Nothing is exported in first frame.... i think. This is really killing my site, as all my pages open as preloaded external SWFs and the user has no idea anything is happening when the button is pressed to open a page (like the one attached) especially on a dial up connection.
PLEASE SOMEONE HELP!
the background images have been removed to keep the file size down on the fla
Preloader Late Start
http://aslcenter.gallaudet.edu/template.html
My question for you related to the above Flash movie is - I added a preloader. It works fine if you have a
high-speed connection, but when I simulate a 56k connection, the preloader
bar and % counter does not come on until about 60k or about 20%. I looked
at the AS and I can't figure out how to make it start at 1% - in other
words, much sooner.
i found a tutoral for this preloader at gotoandlearn.com . if you watch the simple preloader movie, you'll see what i did.
if you'd like, i can post the FLA for you to download to take a look at.
Thanks...
Preloader Starts Late
Hi, I've created a preloader for my 1mb+ flash movie. However, when I tried to load it, the screen was empty for a few seconds before the preloader suddenly pops up. By then, it had already loaded about 50%. I thought it was supposed to start immediately from 0% and load till 100%?
In the 1st frame I've the following AS:
totalBytes = Math.round(getBytesTotal() / 1024);
loadedBytes = Math.round(getBytesLoaded() / 1024);
percentDone = Math.round((loadedBytes / totalBytes) * 100);
if (_root._framesloaded >= _root._totalframes) {
gotoAndPlay("start");
}
2nd frame:
gotoAndPlay(1);
and the 3rd frame is labeled "start". I've also assigned a dynamic text with the var name: percentDone.
Can anyone help on this? Thanks very much!
Preloader Late Start
My preloader bar only start to show when it's over 70%, then finishes to fill up. Before then, i have to wait a little (though a little is too much)
How can i fix that?
jtax
Preloader Start Late
Anyone knows why is preloader start late? I've attached a FLA here, please let me know your ideas and suggestion.
On frame 1 I have:
loadpercent = "0%";
loadBytes = "0 of " + Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000 + " Kb";
On frame 2:
loadPercent = (Math.floor (_root.getBytesLoaded() / _root.getBytesTotal() * 100) + "%");
loadBytes = (Math.round((_root.getBytesLoaded() / 1024) * 1000) / 1000 + " / " + Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000 + " Kb " );
if (_root.getBytesLoaded() == _root.getBytesTotal()){//Check for finished loading
//If loaded, final update to fields
loadPercent = "100%";
loadBytes = (Math.round((_root.getBytesLoaded() / 1024) * 1000) / 1000 + " / " + Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000 + " Kb " );
gotoAndPlay("smi", 1);//Where to go once your movie is loaded
}
On frame 3:
gotoAndPlay(2);
On frame 4:
gotoAndPlay("smi", 1);
// proceed to next scene
Your ideas and suggestion will be greatly appreciated to have your support.
Preloader Coming Late
Dear Kirupa and friends,
I am using a simple loop type of code to have a % counter... You know.
The main interface is quite heavy and that's why I am using it. The script for loading is on the 2 first frames of the main interface.
I don't understand why this loader is taking a real long time to come up and only shows up at 85 % of the download, making it a bit useless.
check out
http://www.studio-meta.com/
with a bit of patience, you'll see what I'm talking about.
Thanks for suggestions.
Preloader Appearing Late
Hey guys,
I'm kind of new to flash, and I'm having trouble with a preloader in an external .swf (shameful I know ). The preloader works, but only for a brief period right before the movie loads, eg. the space remains blank for a minute or two, the preloader shows up at 95-98% through, and the movie loads straight after. The content loading isn't very large--at the moment it's only loading text. The site is here if that helps.
The code I've used is as follows
(first keyframe)
Quote:
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
(second keyframe)
Quote:
this.gotoAndPlay(1);
(third keyframe)
Quote:
stop ()
Note: The third keyframe also has the content on it.
I'm sorry if I'm repeating anything or asking a stupid question, but I searched around and couldn't figure it out...
Any help would be aprreciated.
Preloader Late Start
My preloader bar only start to show when it's over 70%, then finishes to fill up. Before then, i have to wait a little (though a little is too much)
How can i fix that?
jtax
Preloader Start Late
Anyone knows why is preloader start late? I've attached a FLA here, please let me know your ideas and suggestion.
On frame 1 I have:
loadpercent = "0%";
loadBytes = "0 of " + Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000 + " Kb";
On frame 2:
loadPercent = (Math.floor (_root.getBytesLoaded() / _root.getBytesTotal() * 100) + "%");
loadBytes = (Math.round((_root.getBytesLoaded() / 1024) * 1000) / 1000 + " / " + Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000 + " Kb " );
if (_root.getBytesLoaded() == _root.getBytesTotal()){//Check for finished loading
//If loaded, final update to fields
loadPercent = "100%";
loadBytes = (Math.round((_root.getBytesLoaded() / 1024) * 1000) / 1000 + " / " + Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000 + " Kb " );
gotoAndPlay("smi", 1);//Where to go once your movie is loaded
}
On frame 3:
gotoAndPlay(2);
On frame 4:
gotoAndPlay("smi", 1);
// proceed to next scene
Your ideas and suggestion will be greatly appreciated to have your support.
Preloader Appears Too Late
Hi there , i have a small problem with my preloader. The main swf has 104 kb and when i try to test it on the net, the preloader bar just appears around 39%. That's bad :-\, because i've made it so ppl could see something while the second scene is loading. The problem is not in the graphics i used in the preloader scene. It is very basic, actually, i just have a progress bar and a small mask.
Where's the problem ? Can anyone help me ?
Preloader Starting Late.
I know this has been discussed a million times on the forums and I have been reading a ton about preloaders etc. But for some reason my preloader is loading late. It loads about 80% of the file and then appears.
My .fla and .as files are attached in the .zip on this message. I have some fonts that I am exporting on the first frame. That's the only thing I can think of that is causing a problem.
Anyone have any advice? Thanks!
My Preloader Starts Late.
My flash site is hardly finished yet, but when I preview it, my preloader doesn't actually show up until it is about 75% loaded. Before then, it is just a white screen. Can anyone help?
Preloader Starting Late
i've tried several different preloader versions. im useing flash 8 but publishing & exporting in flash 6 the prob is my preloader which is for 6 wont start till about 82% then runs normaly. i didnt think this is a code issue but more so a publish settings issue. i can provide more info if asked.
thanks
bbb
Help Preloader Clip Loading Late (about 75% In)
Hi,
I'm having problems with a 'progress-bar style' preload clip which only appears on stage when the main movie is around 74% loaded.
The logic is pretty vanilla and attached to an enterFrame clipEvent. This clip is in turn is nested in a container clip which I can drag in and reuse in other sections of the project.
e.g:
>_root
>>_root.preLoader
>>>_root.preLoader.preLoaderCode (code is in onCLipEvent)
The clip compares bytesLoaded against bytesTotal of its _parent._parent (to break out of the nesting) and moves a masked progress bar clip accordingly until totalBytes is reached when the clip commands the top level movie it is nested within to advance to a frame label "start".
The movie seems to work fine when dragged into a test clip which has about 200K loaded into the next frame, and, in a sense, it works in my main file too except that the screen is blank until it's about three-quarters of the way in.
I have tried the following to see if it makes a difference but no change:-
*renamed the master symbol with a leading 'space' or '!' character to see if it loaded earlier
* put the preloader frame in its own scene and made this the first in the file
* saved the preloader as a separate .swf file and loaded it into the main movie with loadMovie
I haven't tried making the preloader a separate movie which transitions to the main movie because I want to reuse it for submovies I load into the main file so it's more use to me as a shared library symbol or a separate movie designed to be nested into the main movie with loadMovie().
Any ideas/solutions around this greatly appreciated,
Matt
AAaarrrggghhh...preloader Starts Late?
Hi guys...this is driving me nuts ...PLEASE HELP!!!
The preloader at the beginning of my FLASH web site "technically" works fine... BUT...Nothing is displayed on the screen for the first few seconds. Then the first scene (the preloader) kicks in at about 70% and all is fine. Why does it do that??...I see other preloaders working from 1%...
I know it is'nt the script because I have tried several different preloaders (and 3 different servers) and they all kick in around 70%.
Could this be a publishing problem??...
HELP would be vastly appreciated
Problem Preloader Showing Up Late
I have developed a preloader that I thought would work. For some reason the preloader bar with the percent downloaded only shows up towards the very end of preloading at 79%. I am testing this with the flash player (streaming at 56K) Can someone please help.
you may preview the .swf at
http://www.simetra.com/intro_2c.swf
and the .fla at
http://www.simetra.com/intro_2c.fla
Preloader Appears Late.. Because Of Video?
Hi
I have a simple preloader that displays the percent loaded of the swf. However, it only appears on the screen AFTER it reaches about 80%... after reading this thread:
http://www.actionscript.org/forums/s...ight=preloader
i think i understand why... but how does one make an flv not export in the first frame?
any help is greatly appreciated
Preloader Starts Late (I Know This Has Been Asked)
This is all while using the progress bar tut on this site.
I have nothing in my first frame except the bar and dynamic text field for the preloader. My content is on frame3. I know that flash exports sound, components, dynamic text, blah blah blah, on the first frame. (according to the bandwith profiler my first frame is larger than the 3rd!) Anyway, I knew this would be a problem. But what are the best fixes..if any. Ive seen numerous people with these problems but I dont have a fix.
Should I just dump my library?...Load in everthing?
Maybe use a different preload method?
Preloader Starts Late (I Know This Has Been Asked)
This is all while using the progress bar tut on this site.
I have nothing in my first frame except the bar and dynamic text field for the preloader. My content is on frame3. I know that flash exports sound, components, dynamic text, blah blah blah, on the first frame. (according to the bandwith profiler my first frame is larger than the 3rd!) Anyway, I knew this would be a problem. But what are the best fixes..if any. Ive seen numerous people with these problems but I dont have a fix.
Should I just dump my library?...Load in everthing?
Maybe use a different preload method?
External Swf Shows Up HUGE In Loader Component
hey everyone : :
i have a frustrating problem on my hands that i've never had happen before. now granted, i've only created 3 or 4 websties in flash before, but it's still new to me...
the problem: my external swf files being loaded into my site "frame" via a loader component are displaying way bigger than they should (just click on "about us" and you'll see what i mean). it didn't always do this. it was just all of hte sudden. the external swf files are the same size as the loader component and i've even tried both options of the "scaleContent" parameter on the loader too.
can someone please end my pain and explain to me why it's going all HUGE on me?
here is the link: http://beredefined.com/site.html
thanks in advance!
: : michael
Preloader Loads Very Late After Importing Sound Files
ok, here's another preloader question for you people out there. i finally had a working preloader code, everything was in frame 2, my preloader was in frame 1, and it worked quite nice. however, after importing some sound files to the library my preloader started to appear very late on the stage (like after 90 percent). could someone tell me what can i do? i'm guessing it has something to do with "export at first frame" option.
Attach Code
stop();
this.addEventListener(Event.ENTER_FRAME, indexStart);
var loaderbar:Preloader = new Preloader();
function indexStart(event:Event) {
stage.addChild(loaderbar);
loaderbar.x = stage.stageWidth/2;
loaderbar.y = stage.stageHeight/2;
loaderbar.loading_txt.text = "Loading " + Math.floor((this.stage.loaderInfo.bytesLoaded/this.stage.loaderInfo.bytesTotal)*100)+ "%";
loaderbar.bar_mc.width = 198 *(this.stage.loaderInfo.bytesLoaded/this.stage.loaderInfo.bytesTotal);
trace(this.stage.loaderInfo.bytesLoaded); //does not give anything until the preloader appears
if (this.stage.loaderInfo.bytesLoaded==this.stage.loaderInfo.bytesTotal) {
stage.removeChild(loaderbar);
gotoAndPlay(2);
event.currentTarget.removeEventListener(Event.ENTER_FRAME, indexStart);
}
}
HtmlText Issue-shows Html Tags On Render
Im experiencing problems with the following similar problem.
the textfield (adviceText) renders my html string with the html tags, so it isnt picking them up!
this is the code that doesnt work...
--------------------------------------
adviceText.html=true;
adviceText.autoSize = rue;
adviceText.htmlText =_parent["player"+pressed].theAdvice;
--------------------------------------
now the variable is correct and is a string i cant see a problem with. it comes from a hard coded (for now) xml file within a CDATA tag to allow the html tags to be ignored during the xml parse.
if i set the string in the flash document the text field will render correctly i.e.
---------------------------------------
adviceText.htmlText ="test<br>test";
---------------------------------------
im desperate for ideas, the above line of code if substitued works correctly so im assuming that means the text field is set up correct.
thanks
Preloader Shows Only 100%
I have a preloader.swf and a wedding.swf
The wedding.swf is pretty large and I want a preloader to show where it is at on the loading.
The preloader.swf loads the wedding.swf and I want the loading bar to represent how much of the wedding has loaded.
Also, is it possible to go ahead and start the wedding before it is fully loaded (streaming) but after say 50% is loaded????
http://www.reflectionsbydesign.com/assets/preloader.fla
http://www.reflectionsbydesign.com/assets/preloader.swf
I did see somewhere that when using this technique all references to _root in the preloader code needed to be changed to "this"
When I made this change the loading bar text said loading 0 KB of 0 KB and the wedding never loaded.
GRRRRR I feel so confused. Really appreciate all the help I have received in order to get this far.....
Thanks in advance, Cherie
Preloader Shows Up At 60%?
Hey all,
I am using this code as my preloader:
code: bytes_loaded = Math.round(_root.getBytesLoaded())+1;
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*100;
_root.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded >= bytes_total) {
_root.gotoAndPlay("start");
}
When i load my site the preloader doesn't show up until 60%. I was wondering is there a way to rewrite the code better so that it measures the preloader by bytes recieved instead of percent? Or is it only showing up at 60% because of image sizes on the preloader frames?
|