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




Making A Preloader Showing The Amount Loaded So Far.



Sadly, I am currently a n00b to Flash. I currently have Flash MX. I'm trying to figure out how to make a preloader that shows the amount of the movie loaded so far, and once it's done, have a button to enter the site, and a sound letting the viewer know that it is done.

P.S. What I have so far of my movie is at http://www11.brinkster.com/o0oZx4o0o/My%20Site.swf/
I also don't know how to get a movie to play in the height and width i want it to in a browser window...



FlashKit > Flash Help > Flash Newbies
Posted on: 06-27-2002, 01:51 AM


View Complete Forum Thread with Replies

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

On Amount Loaded = Total Amount , I Want To Display Something Else.
I have a preloader for the movie, and while the preloader is loading, there is an animation going on. It says "Loading_", with the underscore flashing. I want to make the "Loading_" MC say something else when the amount loaded equals the total amount, in other words: when it reaches 100% loaded, i want "Loaded_" to change to "Finished". Can someone help me out?..I'm doing a website for a band and they want it done relatively soon.

Thanks,
David "O"

Preloader Not Showing Until 50% Loaded
I've tested my site using the bandwith profiler at 56k and It is showing my first frame as being about 128k which is where my preloader is placed and frame 2 which is my main movie being about 100k. My preloader doesn't even come on the screen until about 50% of the movie is loaded.Why does it do this when my preloader is very small? How does one go about making their movie start showing the loader from 0% like I see with so many flash sites?

Thanks in advance

Ik Preloader Not Showing Until 80-90%of Swf Is Loaded.
ive been using the ik preloader for many swf's. for some reason when i have a scroll componet in the swf the preloader is only show up after 80-90%of swf is loaded. the swf is 600k.
what could be causing it to act differently?

HELP - Preloader Showing After 100% Loaded
I use the same SWF file on multiple pages. even if it is loaded 100%, if you click another page link it will show that preloader for a fraction of a second and then play the already loaded file...how do i get that preloader only to show the first time and not on subsequent pages that use that same SWF file

see here:
http://www.corusa.com/

~Connor

Preloader Help..not Showing On Screen Until 28% Loaded..why?
Hello...can anyone tell me why my preloader shows up only after it says 28% has been loaded? Shouldn't it show from the beginning telling how much is loaded from beginning?

Preloader Not Showing For Loaded Movie
Howdy,
I have a main movie at level 0. This main movie has 6 buttons, each links to an external movie that loads into level 1. The external movies that load into level 1 have two scenes, a preloader scene and a main scene.

When testing my main movie (level 0) with the streaming option on, the external movies' preloader is not displayed when they are loaded into level 1. Is this because when testing a movie, the streaming option does not effect the external movies that are loaded? It just seems like it should. Is actually posting it on the internet the only way to test such a movie?

Thanks,
mperla

Preloader Not Showing Up Until 15% Of Movie Is Already Loaded
So when I preview my site in the simulated 56K mode my preloader doesn't show up until 15% of the entire site has loaded. My preloader is just some text that says 'loading' with a dynamic text field that displays the % loaded. There is nothing else on the first 3 frames. The rest of the site doesn't begin until frame 4. Why isn't my preloader showing up right from the beginning.

I have this code on my first frame:


Code:
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
percent = Math.round((loaded/total) * 100);

preloader.percent_loaded = percent;


and this code on my third frame:


Code:
if(this._framesloaded < this._totalframes){

gotoAndPlay(1);

}


Thanks!!

Preloader Not Showing Up Til Movie Is 100% Loaded...
So I'm working on a website, it's fairly large. 337kb. Everythings working fine except the preloader. When you go to the website it just shows the x up in the top left and the browser loads it, then when it shows the movie it shows the preloader at 100% for a quick second and plays into the next scene. Any idea what it's doing this? I've never had a problem with flash loading my movie before even showing the preloader, it's really odd and I don't know what to do.

Here's my code for the preloader incase it's something to do with this which I don't think it is...

Code:
Frame 1

a = getBytesLoaded();
b = getBytesTotal();
c = Math.ceil((a/b)*100)+"%";
if (a == b) {
gotoAndPlay(3);
}



Code:
Frame 2

gotoAndPlay(1);


Simple as that. I've used this preloader a bunch of times with nothing but good results. Anyone have any ideas what the problem would be?

Preloader Is Showing Up After Content Is Loaded?
Hey guys and gals, I'm having a problem that I have never encountered before.
My site loads before the preloader. So, the site is blank blank blank blank during loading then preloader flashes once the loading is complete and then it goes to the second frame. I have nothing but the preloader in the first frame.

I thought it had something to do with a font I have in the library so I removed it from the library and got the same result.
Could it be that in the second frame I have a couple mc's with alpha set to 0?
I'm also importing :
import com.mosesSupposes.fuse.*;
ZigoEngine.simpleSetup(Shortcuts,PennerEasing,Fuse,FuseFMP);
but not until the second frame.

http://www.thesupermarket.us/rp/

Preloader Not Showing Till Movie Fully Loaded
I've made a preloader for my movie (1.5 mbs), but when it is loading online, the screen is blank until the movie is fully loaded and then the preloader blinks by briefy and then goes to the main movie. Why is this happening?

Nick

Coding For Date & Time + Showing The Amount Of Guests
Hey sup people, Im building a new flash interface, and I've always wondered what the coding was to show the amount of guest users that are on your flash site at any given time. Aswell, Im looking for coding to show the current date & time in EST for flash apps. Any help, tutorial links, suggestions, and or .fla's would be great !

Whats The Coding For Date & Time + Showing The Amount Of Guests
Hey sup people, Im building a new flash interface, and I've always wondered what the coding was to show the amount of guest users that are on your flash site at any given time. Aswell, Im looking for coding to show the current date & time in EST for flash apps. Any help, tutorial links, suggestions, and or .fla's would be great !

Preloader Making My Loaded Movie Fuzzy?
I added a preloader to a movie and It made a loaded mc within the main movie fuzzy? when I delete the preloader code the image in the movie clip
is sharp and focused??? flash MX

Preloader Making My Loaded Movie Fuzzy?
if i delete the preloader code/mc the image of the building displays shape
but if i keep the proloader code in the movie and publish the building is fussy,
not sharp image????

Making A Preloader Play Even If Content Is Loaded
I've done a preloader, and loads the movie fine, but it loads so fast, that the bar animation and the text going from 1% - 100% doesn't play at all. I want it to play through the animation quickly, even though the content is loaded.
Any ideas on how to do this? heres the preloader script i'm using :

bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*74;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(14);
}

Thanks

Making A Preloader Play Even If Content Is Loaded
I've done a preloader, and loads the movie fine, but it loads so fast, that the bar animation and the text going from 1% - 100% doesn't play at all. I want it to play through the animation quickly, even though the content is loaded.
Any ideas on how to do this? heres the preloader script i'm using :

bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*74;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(14);
}

Thanks

Making A Preloader Work With A _root Loaded Clip
Hello,

I have a main clip.
I load the mainclip into a preloader.swf

does ANYONE have a preloader.swf that works without loading the main clip into another clip? I have to load it on the stage, but when I do that, the preloader ceases to function.

Thanks in advance.

Making The Amount Of FPS Appear In A Dynamic Textbox
How can I do this?
code:
onClipEvent(EnterFrame) {
_root.fpstextbox = //
}


thanks!

Making A Movie Play A Certain Amount Of Times
Hi, sorry if this is a lame question. I have found solutions for actionscript 2 but now I am using AS3 I am totally stumped.

After looking around here i feel like a total noob!

Anyway i just want to play a movie, first time it reaches the end it goes to frame 8, then second time stops.

I am know it is a loop and setting a variable but I just can't get the syntax right.

AS3 is so complicated, makes my head hurt.

Thanks in advance for any help you can give me.

Making A Window Close After A Specified Amount Of Time
hi. how can i go about making a window close after a specified amount of time? after pressing a button named "end" on my page, i have an animation i want to play, and as soon as it's through playing, i want the entire window (website) to close. the window is not a pop-up, it's actually the website itself. i want it to stay open for approximately 4 seconds after pressing the button before it all closes down. any help would be very much appreciated. thank you!

p.s.- forgive any ignorance on my part in the forming of this question, or the wording used within. i know very little about flash at all. my girlfriend is making a webpage for my band and is having a hard time figuring some things out. so i'm trying to help her. she will completely understand your answers.

[F8] Scene Preloaders With Amount Loaded..
Hi.

I'm currently working on a web site put together completely in flash. Basically what I want to do is make it so the page compresses itself down into a loading bar when I want to transfer to another page, and then de-compresses into the new page, with the new content. If you want a visual of what I'm trying to do, I want something similar to what they have on this site:

http://www.falcon-nw.com/

On that site, the effect I want does not occur on the main page, rather when you click a link to go to the about/desktops/notebook pages...etc.

In simple terms, I want the site to shrink into a loading bar in the middle, and then grow out again with the new content. In essence, a scene preloader

I assume that an explanation of how to do this would be really complicated, so I'd appreciate it if you could post a link to an existing tutorial for this, or if you would make one and then link to it on this board.

Best,
-Nick.

How Can I Track The Amount Of Bytes Loaded (more Accurately)?
I want to use the MovieClip.loadMovie() method to load an external .swf file into my flash 5 movie.

The external file is just a jpeg that I've exported from fireworks as a .swf. It's 100kb.

Now, as the .swf file loads, I want to monitor how many bytes have loaded. I want to do this as accurately as possible because I like to let my users know how long they have to wait.

Seems reasonable, right? Wrong. I have read in Colin Moock's 'Actionscript- the Definitive Guide' that: "getbytesloaded() measures bytes in whole-frame chunks only. So if a movie's first frame is 200 bytes in size and its second frame is 3000 bytes in size, getbytesloaded() will return 200 and 3200 but never any increment in between".

So, assuming that my jpeg/swf file has all 100kb in one frame, I'm probably going to have a very long night trying to devise an accurate preloader movie.

Still, I reckon that if there's a will, there's a way. Can anyone point this newbie in the right direction? Thanks.

How To Stop Data Transfer When Certain Amount Of Bytes Is Loaded..?
Hai,,
i am doing a live preview for swf files.. so when user mouseover on thumbnail that particular movie shld be loaded and stop loading after few frames..
I made on MC and Loaded a External SWF to load and played it with streaming.. after it reached 75 frames i made the mc to stop playing but i cannot stop loading (data transfer).. it keeps on loading the whole file... how to prevent it..
pls tell me..
thanks a lot in advance

Preloader Not Showing In The Beginning? Did I Make The Preloader Wrong?
alright, it seems that my preloader does not show until the movie is about 85% loaded, and then after that it works fine. but how do i get the preloader to show from the begining? here is the site...

http://www.trikenit.com/6n/preloader.html

and here is the fla for the preloader

http://www.trikenit.com/6n/preloader.fla

if anyone could help me out with my preloader i would be so very grateful. thank you in advance.

Loaded JPG Not Showing Up
hello!
So I have an empty MC on the root timeline called 'picContainer'
in the first frame I have a the following line of code...
picContainer.loadMovie("goddess.jpg");
nothing loads. Both the swf and the jpg are saved in the same directory...yada yada yada...

I also tried just loading a swf and it WORKED
picContainer.loadMovie("testSwf.swf");
So I know my path is right and that everything is named right.

I've done this before and it worked! Does anyone know of any wierd bugs with loading jpgs into Flash?

ideas...thoughts...encountered this before??

thanks,
morgan

Showing How Much Of An External MP3 Has Loaded
I am trying to make a sound player for my website which downloads external MP3s and then plays them (not streaming) and I want to display the percentage of the file which has downloaded while the user is waiting. I've tried everything I know but can't get it to work. Anyone have any ideas?

Showing Loaded Percent
As I learned Flash some months ago, I was told this code to give to the first frame as preloader:

if (Number(_framesloaded)>=Number(_totalframes)) {
gotoAndPlay (3);}
else {
percents = Math.round((_framesloaded/_totalframes)*100 );}


I was also told that Flash could not recognize if some part of a frame is loaded, so - if I have a Flash consisting of three frames, in preloader it will only be shown 33, 66, 99-100% loaded. But as the time goes, I had visited many flash site, and found out, that alost everyone have loading in percents one after another (1%, 2%, ...)

So I need help - how to do it?
Thanks a lot.

Loaded External SWF's Not Showing Up
I have a host flash movie, which I have several external (sub) swf's that I wantto load into movie clips. The A.S. is by the books, and when I test it locally it works; however, when I upload it to my server and test online they do not load or show up? I have all the swfs in the same directory (flash). Any input.

Thanks.

FLVs Not Showing In Loaded EXE
I'm loading an EXE using the code:


Code:
fscommand("exec", myList[myValue].launch);


...where myList[myValue].launch contains the location of the file. This part works fine, however when the EXE loads, the FLVs which are part of it's presentation do not. I have all the files where the need to be (in the fscommand folder) and have run the EXE manually from that folder and the FLVs display without a problem, yet they do not when called by fscommand.

As a side note, the EXE being launched is a separate presentation so simply displaying the FLVs through other means is not an option I have available to me.

Thanks for any help I can get with this.

Images Loaded But Not Showing
I have an application in three steps: The first is a global one that will contain the two others. The second is a list of products which are shown as images. When you click on one of thoses images, it loads the third one which contains the details for the product in question. My variables used in the third one are section, subSection and product. section is the main menu from which it comes, subSection is the subMenu from which it comes from and the product is the image clicked on the second section.

Example: The first item of the main menu is called "Men". The first submenu of that main section is called "Masters" and in that section you click on the first coat. So section=1, subSection=1 and product=1.

Now when I load the third flash directly from the first one without going through the second one and by giving it the right value for the right variables, it loads the right text but no images are shown. But it sees the path for the image and you can click on them but you can't see them.

What gives?

Loaded Bitmaps Not Showing
I have a strange problem related to Bitmap Object.

What I do is loade an Image to a MoveClip attach a Bitmap to another MovieClip and draw the loaded image to the bitmap. The standard way of smoth loaded images.


Code:
public function onLoadInit( mc:MovieClip) {
var reflectonBitmap:BitmapData = new BitmapData( mc._width, mc._height, true);
smalReflecktionClip.attachBitmap( reflectonBitmap, smalReflecktionClip.getNextHighestDepth(), "auto", true);
reflectonBitmap.draw( smalImageClip);
}
this works just fine when when compiling and running it in flash but when I put the swf on a webserver a strange thing happens. If the loaded image is from the loacal file system everything works just fine. But if the loaded image is from another domain the image is visable on the movie clip it was loaded into but the bitmapattached MovieClip have the right size but it is white, with no image.

Any one got an Ide way this happens?

FLV In External AS2 SWF Not Showing Up When Loaded To AS3 Swf
OK. I have an AS2 swf that plays an external FLV. This SWF works fine. I am in the process of rebuilding a site using AS3. When I load the AS2 file into an AS3 file it loads fine. When I click on the button in the AS2 file with the FLV the videos audio can be heard but the video does not show up.

To put it another way... the file index is an AS3 file with a button that loads an external AS2 file. That part works fine. The external AS 2 file, has a button that loads an external FLV. When the button is clicked, nothing seems to happen (no player shows up), but the audio from the FLV can be heard.

What I am hoping for is someone who can point me in the right direction about loading external FLVs in AS2 files that are then loaded into AS3 files so I don't have to rewrite the entire site in AS3.

Thanks

Loaded Images Not Showing Up
so i've got a collection of images loaded via an xml file. it works just fine locally but when i upload it.. all of the sudden it's loading only the beginning 3 images as opposed to all of them. i'm at a loss for words. i got it working then it pooped on me.


ActionScript Code:
var intCounter:Number = 0;
           
            for(var t:Number = 0; t < how_many; t++)
            {
                boxes[t] = new MovieClip();
                addChild(boxes[t]);
                               
                loaders[t] = new Object();
                loaders[t].loading = new Loader();
                loaders[t].theRequest = new URLRequest(myXML.image[t].big_url[0]);
                loaders[t].loading.load(loaders[t].theRequest);
                loaders[t].loading.contentLoaderInfo.addEventListener(Event.INIT, imgLoaded);
            }

            function imgLoaded(event:Event):void
            {
                loaders[intCounter].loading.content.y = 0 - (loaders[intCounter].loading.content.height / 2);
                loaders[intCounter].loading.content.x = 0 - loaders[intCounter].loading.content.width / 2;
                boxes[intCounter].addChild(loaders[intCounter].loading.content);
                intCounter++;
            }

Can't See The Loaded Text, Not Showing Up?
Hi

I have tried a few "dynamically load text/var into flash" and It never works. I can't get the info to show up. I am using Flash MX.
The text won't show up. not at all.

What is the problem?

I made sure that the text color was different to the background. I just don't know what's going on. Is it my own stupidity. I am getting really upset. I would really apprecaite a response as to what the problem could be.

Please, anyone?

Showing An Mc Dinamically Loaded
Maybe I'm stupid, but...
I have some mc (video1.swf, video2.swf, etc),
dinamically loaded into main movie.
The mc are loaded, using loadMovie, inside an empty
mc ("loader"), placed inside another mc ("window") that
stay on stage.
All .swf has first frame empty, with the AS "stop();".
What I want is that a button, placed inside mc "window", can
start the play of loaded mc caricato; if at this time the mc
loaded is, i.e., "video1.swf", the button must move the
playhead on second frame, and start the movie.
But, how I can target the "gotoAndPlay(2);" action to the
"videoX.swf"?

Preloader Only Showing After 30% (can I Preload A Preloader?)
Im trying to make a diferent kind of preloader. Its a dog that pulls the loader bar....

I made the dog MC animation, and i have a Bar_mc with this code

Code:
onClipEvent (load) {
_xscale = 0;
}
onClipEvent (enterFrame) {
counter = math.floor(_parent.getBytesLoaded()/_parent.getBytesTotal()*100);
_parent.counterpercent = counter+"%";
// if loaded, play;
if (counter>=100) {
_parent.gotoandStop(5);
// Alex troque isso para a ação quando tvier em 100%
} else {
// if not loaded, set the status bar width;
_xscale = counter;
}
}


So far so good, but it seems that the preloader will only appear after 30%, i guess the dog MC is heavy and it is stoping the loader to be displayed earlyer, all i get is a blank screen and near 30% all the elements pops out... Is there a way to preaload a preloader? , how can i fool that? pls my deadline is so near

Showing The Percentage Of Loaded Movie
1. When making a loading section, what action script do I use to show the percentage of loaded movie, and where do I put it?

Showing Percent Loaded Of A Particular Scene
PLease can someone tell me what I need to change in this preloader script so that instead of showing the percent of the total moviw loaded it shows the percent of Scene 1 (say) loaded.
textPre is the text box.
Here's the script:


onClipEvent (load) {
textPre = " ";
}
onClipEvent (enterFrame) {
textPre = _root.getBytesLoaded() / _root.getBytesTotal() * 100;
if (_root.getBytesTotal() == _root.getBytesLoaded() ) {
textPre = "done";
}
}


Do I need to change the _root to the scene1 somehow?
Thanks
Jill

CreateTextField - Fonts Not Showing Up When Loaded By Another Swf
I have the following problem:

I have a Flash file that uses an embedded font in the library with ActionScript linkage.
That font is used in Textfields that are dynamically created with createTextField(), .

The text shows up fine when I am running my swf.
But if I load that swf into another swf (aka preloader) with loadMovie(), the text doesn't show. I have to embed the font into my Preloader also, which becomes quite big (101kB just because of the font, otherwise it is 3kB), so that my main swf is not much bigger than that.

Anyone got an idea what I can do?

Text Not Showing When Loaded In Movie
I've got a swf with a text scroller in it. When I tst it it works fine. When I load it into another movie the text doesn't appear and the scroller doesn't work.
My actions are

Code:
loadVarsText = new loadVars();
loadVarsText.load("news.txt");
loadVarsText.onLoad = function(success)
{scroller.text = this.article;}
and on the scroller

Code:
onClipEvent(enterFrame) {
sbFrame();}
What am I doing wrong?

Not Showing All Dynamically Loaded JPGs?
Hi I've made the following FLASH app which dynamically loads JPG's into a row of images check out

http://www.lichinger.dk/testshop/get_artist_images.html

However not all of the images are loaded? Any idea why? I know that FLASH doesn't like progressive JPG's, and the images I use are all-nonprogressive.

Buttons In Movie Not Showing Up When Loaded
OK, this has been bugging me for about a week now. I have a movie, in which I load other movies into. You can see the site at:
www.tailgata*******.com

The problem is with the pictures section. If you go to:
www.tailgata*******.com/pics.htm you can see that the file there has two yellow buttons used to control the pictures, however when that same file is loaded into the main index file, the buttons disappear.

what the hell is going on?!?!?!?! I'm going crazy trying to figure this out.

p.s. If you want to look at the .fla files, they are there under the same name, the main file is index.htm and index.fla

Text Not Showing Up In Loaded Movies.
please explain to me why dynamic text and other such variables refuse to show up when i load another swf file into my movie.
Im trying to design a website where each section is stored seperately and loaded upon request of the viewer via the navigation. Each section is stored as a swf file. When i load the swf file into an empty movie clip, the text refuses to be displayed.

here are some of my actions:

loadMovie("bgfile.swf", _root.bg_image, "POST");

loadMovie("menu"+var1+"_"+var2+".swf", _root.content_clip, "POST");

dont mind the elaborate file names. The movies are found just fine.

Please help.

Loaded Swf - Offstage Items Showing
I have some external swf's that I am loading in, but when they are loaded in, I can see things that are "off stage" in the loaded swf.

Anyone know of any solutions to this?

Thanks!

Showing Loaded Text Through A Mask
Can anyone help?
I have a movie clip called contentHold. It is the movie for my easing menu. Inside the contentHold movie ,I have 2 movie clips with the instance names content1 and content2 and a dynamic text box with instance name bio residing on the content1 clip.I want to load text into the text file but it
doesn't load. I suspect the mask on the main timeline has something to do with it the code i am using to load the text is.
NText = new LoadVars();
NText.load("bio.txt");
//creating the loadVarsText function
NText.onLoad = function() {
bio.html=true
bio.htmlText = this.newstext;

Input Text Not Showing When Loaded
okay, so I have a contact page (contact.swf) that I load into a main page (main.swf). The contact page has form elements like radio buttons and input text fields. I am using _sans device fonts for the input text fields. When i test the contact.swf alone, the input text works, and the component radio button text shows up. When i test it loaded into the main.swf, it doesn't work...input text and radio button text don't show up. Anyone know what's up? Thanks in advance...

Delay In Showing Loaded Movies
Hi,
I have a main movie and six external swf's that I load with loadMovie with navigation buttons. I have a preloader in the mainmovie (thanks to OldNewbie). The swf's are between 5 and 20 kB. Everything works fine, but sometimes I still have to wait (about six or seven seconds with a dsl connection) for the swf's to show up, even when they are already 'in cache'. And then the preloader doesn't show either. It seems as if the file has been found but something keeps it from showing. I use no components, no strange fonts. I do use tweens in the external swf's, and in some of the tweens bitmaps. But also in the swf's without bitmaps it sometimes happens.

I wonder what is happening, technically.

I am also wondering if it has to do with using relative or absolute paths in the buttons referring to the external files. I use relative.
Does anybody know?

this is the link


thanks,
Jerryj.

Name._visible = False; Showing Up As The Swf Is Loaded
I am having an issue with things that are set to name._visible = false; showing up as the user opens the swf in a browser.

I have the code on the first frame of the movie...is there anything I could put before it to make sure the user does not see this appear until they click on something?

I don't have any issues seeing it when I open it as a freestanding swf...just when it is placed inside the site I am making it for.

Any ideas?

Thank you!

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