[[[[[[ Preloader Progress Bar Help]]]]]
I 've made a flash 5 movie, wich is got a main movie with few telltargets into it. The main movie line is about 50 frame, the movies to be targeted from it, are 4 and the longest one is about 255 frames. So I've made a preloader progress bar into a new scene, and I divided the progress in 4 sections : 1% 50% 80% and 99% - 15 frames loaded, 25 frames loaded, 40 frames loaded and 50 frames loaded. Strangely the progress it stay still on the 1% and all the 50 frames are loaded without showing the progress. And that makes me very very cross 'cause If I remove all the tell targets the progress bar works fine. So the problem is the Tell Targets. I've tried to put "Ifframe loaded<_path of the target>" but nothing is changed. Can you please let me know why sometime Flash drives me mad not executing very simple operations like this ??
Thank godness for answering me !!
FlashKit > Flash Help > Flash General Help
Posted on: 02-11-2003, 05:25 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Progress Bar In The Preloader
how do we make a progress bar using flash....
i need a preloader showing how much of the flash file(.swf) has been downloded into the local system,,and the downloaded file progress should be shown to the user
how is that done.. can it be done with flsh or only with the help of macromedia director..
how can it be done in flash plz help.....
Preloader Progress Bar
I've looked through every tutorial and sample .FLA I can find, but I can't seem to find the answer I'm looking for. Fourm.com uses a preloader on every section. It shows a progress bar that animates as it loads, even on small files (under 15kb). Is there a way to make that progress bar work without motion tweening? I'd like to use onClipEvent to animate it dynamically if possible. Any ideas?
Thanks!
Using Progress Bar As A Preloader
The help topic on using a preloader is a bit confusing with reference to a progress bar as a preloader. I'm not sure what is meant by this:
"deselect Export in First Frame for any compiled clip symbols in your library.
Note: If you’re using the ProgressBar component to display loading progress, leave Export in First Frame selected for the progress bar.
"
Not sure where to find the option to select or deselect.
Progress Bar (not Preloader)
i want to show the current (play) progress of a swf without "tweening" a bar across the whole timeline of the scene, as i will have around 30 of these loadMovies. a script that could do this dynamically from the main swf would save alot of time.
ive looked around and see alot on preloaders/status bars but nothing to show realtime progress of the swf playing.
is this still a getBytesLoaded/total thing?
or sound.getBytesLoaded/total?
not really sure where to start!
im a graphic designer with flashMX 04 and an actionscript book so be kind.
No Progress On Preloader Bar
when i run in test the preloader shows up but there is no progress in the bar.
loadingbar is a rectangle movie clip. i used free transform and moved the registration point to the far left. thnks.
frame 1
bytesloaded=this.getBytesLoaded()
bytestotal=this.getBytesTotal()
this.loadingbar._xscale = (bytesloaded/bytestotal)*100;
if (bytesloaded == bytestotal) {
this.gotoAndStop(3);
}
frame 2
gotoAndPlay (1);
Preloader Bar Does Not Progress...HELP...eek
I have designed a web site using shell navigation (external swf`s loaded into master page using place holders) but for some reason i cant get the progress bar to work despite it previewing correctly. The data loaded values on the preloder update and work fine.
Its something do to with it being loaded externally
Go to www.omega-data.com and you will see what i mean.
Have attached a typical fla file
This is the last thing i need to get sorted ..its driving me bonkers
[F8] Preloader--progress Bar
Hi,
I want to install a preloader to my A2 website.
I found many options in the tutorials but I have a problem:
All the preloaders require to be installed in the beginning of the timeline.
I was working on my website since some weeks and it's sort of impossible to change all the frame numbers in the actionscript, well I just basically forgot the preloader...
could you suggest me a way to install a preloader functioning without it being in front of the movie?
all the best for 2009
Taner
How To Use The Progress Bar As A Preloader?
Is there not some way to put the progressbar on frame one of my movie, add some code and have it preload the rest of the movie?
I thought this thing was FOR that purpose... no?
J
Swf Progress Bar (not Preloader)
Hi all
I am attempting to place a progress bar into a swf that plays a separate swf or movie clip when triggered by a button. This is not a pre-loader bar, but a bar that displays what percentage of the movie clip has played. I can find plenty of online resources for a pre-loader, but nothing that helps for assembling a progress bar. Can anyone help?
Thank you in advance.
Need A Simple Preloader Progress Bar
Hello guys,
Can anyone sort me out with a simple preloader progress bar, I cant get any on flash kit to work in my movie.
Its a movie in one scene about 100 frames long. i need to put the preloader in the first few frames of the scene.
Thanks for your help and time.
Stefan150
Preloader Progress Bar Direction
I did a tutorial that showed me how to create a preloader with a progress bar that loaded the bar from left to right.
I modified it to progress top to bottom for my own needs but would like to make it progress from bottom to top.
Can someone tell me how to do this?
Here's the code:
onClipEvent (enterFrame) {
_yscale = _root.percentDone;
}
Also, this is a bar/image that becomes visible as the page loads.
Is there a way to make the bar disappear as the page loads & reveal an image on a layer behind it?
Any help is appreciated.
Thanks in advance.
jmitteco
Progress Bar Of Preloader Not Moving, Please Help
Hello,
I've made a preloader, and the action script is working because the percentage complete number increases correctly, and once it is at 100% it moves the playhead to where it needs to go next, but I can't get the progress bar to move and show the percentage in a more visual way.
Here are the steps I went through when creating my preloader:
on my preloader sceen main stage I created a layer named preloader
using the rectangle tool without a stroke I made a bar
I converted the bar to a movie clip named preloaderMc
it has left registration
In the property inspector I named the instance of the MC preloader_mc
I double clicked the MC to work inside it
I selected and copied the bar, pasting it in place on to a new layer called progress, then changed it's color.
I made this bar into a MC called progessMc, it has left registration
I named the instance progress_mc
Then in the transform pannel I unchecked the constrain proportions box and put the percentage to 1%.
I locked the progress layer.
I made a new layer named percent_fld
I drew a text filed on the stage- with dynamic text
I typed in 100 and positioned it at the right side of the bar
In the property inspector, in the variable box I typed in display
Then I changed the number 100 to 0 instead
Back on the main scene I clicked on the mc to apply action scripting to it
I opened the actions pannel and switched to expert mode
this is the code I entered in:
onClipEvent (enterFrame) {
mctotal = _root.getBytesTotal () ;
mcloaded = _root.getBytesLoaded () ;
mcpercent = math.round((mcloaded / mctotal) * 100);
display = mcpercent + "%";
progress_mc_xscale = mcpercent;
if (mcpercent == 100) {
_root.play ();
}
}
Then I saved my file and tested my movie.
Once the swf was exported I turned on the bandwith profiler, and show streaming and put the debug spedd at 14.4.
As I said above the percentage loader shows accurately, but the progress bar doesn't grow to fill the space as it is loading.
If you can figure out what the problem is, please let me know. Thanks!
Kim
Progress Bar Preloader When Percentage Is Less Than 100
I should be able to figure this out but I've been hunting with Cheney.
Using basic prelaoding code
onClipEvent (load)
{
total = _root.getBytesTotal();
}
onClipEvent (enterFrame)
{
loaded = _root.getBytesLoaded();
percent = int(loaded / total * 100);
text = percent + "%";
gotoAndStop(percent);
if (loaded == total)
{
_root.gotoAndPlay(2);
} // end if
}
this works if I want to load the whole movie before playing, What do I need to change if I want the movie to start playing when 25% is loaded? Or a particular frame?
I can use teh ifFrameloaded but I'd like a progress bar.
Can the progess bar still show 100% loaded when the movie is only loaded 25%? So in reality it is saying 100% of the required prelaod is loaded.
Thanks so much
My Progress Bar Won't Work (Not A Preloader)
I am trying to create a progres bar to show how much of a movie, playing inside a dynamically created movie clip, has played. The ProgressMC is inside of a MC called mcHoldControls which also contains the play, FF, REV, and stop buttons. These buttons all work.
This is how I created the holder:
_root.createEmptyMovieClip("mcHold", _root.getNextHighestDepth());
The LoadBar code is below:
function checkLoadProgress(){
var cf = _root.mcHold.currentframe;
var tf = _root.mcHold.totalframes;
var pct = (Math.round(cf/ct * 100));
_root.mcHoldControls.ProgressMC._width = pct;
}
_root.mcHold.onEnterFrame = _root.mcHold.checkLoadProgress
Thank you in advance for any assistance.
Adam
Not A Preloader Bar, But A Movie Progress Bar
I have a Flash slide show, and need to be able to tell the viewer how far along they are within it. Something similiar to what you see at the bottom of a Quicktime movie. Is this possible in Flash?
Newbie / Preloader-progress Bar Help
Hello - building my first site. created a preloader.fla and also a master.fla that i want the preloader to load into.
1. when i preview just the preloader file, it starts displaying my flash page before the progress bar is complete.
2. when i preview my master file, the preloader does not work, but 2 splash pages load on top of each other.
--------------------
my actionscript for my preloader is:
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
myListener.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number) {
var loaded:Number = Math.round((bytesLoaded/bytesTotal) * 100);
progressBar.gotoAndStop(loaded);
}
myListener.onLoadInit = function (target_mc:MovieClip) {
progressBar._visible = false;
}
myListener.onLoadStart = function (target_mc:MovieClip) {
progressBar._visible = true;
}
myMCL.loadClip("splash.swf", "container");
--------------------
my actionscript for my master file is:
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
myListener.onLoadProgress = function(target_mc:MovieClip, loadedBytes:Number, totalBytes:Number) {
_level50._visible = true;
var preloadPercent:Number = Math.round((loadedBytes/totalBytes) * 100);
_level50.preloader.gotoAndStop(preloadPercent);
}
myListener.onLoadComplete = function(target_mc:MovieClip) {
_level50._visible = false;
}
myMCL.loadClip("splash.swf", 5);
myMCL.loadClip("preloader.swf", 50);
-----------------------------------------
can anyone see right off hand what my problem(s) are? also, i've gotten to this point with online tutorials and books and it would be most appreciative if you could reply in as simple as possible newbie terms - thx developers!
Progress Bar As Preloader Prob
Hi,
I can't get the progress bar to disappear once a video via FLVPlayBack has loaded.
I'm using the following code... any ideas anyone...
myBarListener=new Object();
myBarListener=function(eventObject) {
myBar._visible=false;
}
Progress Of A Movie (not A Preloader)
I am simply trying to display the frame number of a movie as it plays.
I have a dynamic text box with a var(iable) called framenum. I use an off stage movie clip with the following code attatched to the movieclip:
onClipEvent (enterFrame) {
framenum = _currentframe;
}
(I believe that you don't need to target the movieclip if the code is associated with that clip, although I have tried this as well)
Why doesn't this work please ?
Thanks
Have A Progress Preloader Problem
here is the script that i am using.
Code:
myMCL.loadClip("load.swf", 50);
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
myListener.onLoadProgress = function(target_mc, loadedBytes, totalBytes){
_level50._visible = true
var preloadPercent:Number =Math.round((loadedBytes / totalBytes) * 100);
_level50.load.gotoAndStop(preloadPercent);
}
myListener.onLoadComplete = function (target_mc){
_level50._visible = false;
}
i have attached the prelaoder. i am wondering what i am doing wrong, because it is not working. could someone make a new fla file drop a pic into it, an then apply this script to see where i am makeing the mistake.
the purpose of this script is that it will load this particular image instead of numbers to display downloaded progress. if this doesnt make sence please ask.
thank you all in advance.
Preloader That Displays Progress
Hi, I
was able to follow this tutorial succesfully and all works fine.
http://www.kirupa.com/developer/mx/preloader.htm
I just have one question, why do I still get a white blank spot (with the same size of my movie) right before displaying the loading process... any clue?
You can see it here www.janav.com, I am using the preloader in the main page and also in the pictures link..., it shows more on Netscape than IE.
Thanks,
Jana
Progress Of A Movie (not A Preloader)
I am simply trying to display the frame number of a movie as it plays.
I have a dynamic text box with a var(iable) called framenum. I use an off stage movie clip with the following code attatched to the movieclip:
onClipEvent (enterFrame) {
framenum = _currentframe;
}
(I believe that you don't need to target the movieclip if the code is associated with that clip, although I have tried this as well)
Why doesn't this work please ?
Thanks
Preloader / Progress Bar For Loaded .swfs
Hi,
I'm trying to get a progress bar to work which shows how much of my movie has loaded. I downloaded one from the tutorial site, but can't get it to work.
I have my main .swf (hetm.swf) and within that, I load other swfs (section1.swf, section2.swf, etc.), at various times into a movie clip I call "CurrentSection". For each of these swfs, I want the progress bar to show how much is loaded. What I have is:
iBytesTotal = _root.CurrentSection.getBytesTotal();
iBytesLoaded = _root.CurrentSection.getBytesLoaded();
iBytes = (iBytesLoaded/iBytesTotal)*100;
trace(ibytestotal);
trace(ibytesloaded);
setProperty("pBar", _xscale, iBytes);
sStatus = iBytes add "%";
There's other code (in other frames), but this is where I think the problem is. It seems as if its getting the totalbytes, and bytesloaded for the CurrentSection movie clip, not the swf that I'm loading into it. The trace commands both show a value of "10" (whereas section1.swf is about 1.5 megs of video).
Any ideas?
Thanks
Maria
Show Progress Bar Preloader, For External Swf
I've made preloaders inside the external swf's and loaded them that way. But I have files created through SwiftMp3, so I can't put the preloader in these files. So how can I go about showing a progress bar for the file. I'll be loading it through LoadMovieNum, so I won't be targeting a container. I've tried ways I thought would work, but no luck. Any help would be appreciated, thanks!
Preloader Progress Indicator For XMLload
Is there any way to create a progress indicator for loading large XML content? Or am I stuck using a simple animated graphic that goes away after load? In other words is there a bytesloaded type thing for amything besides moview clips?
External Swf Preloader Progress Bar Problem
Please find attached 2 files home.fla and spinner.fla
Spinner.fla is an external movie that loads into home and is positioned using a placeholder
The Problem: the preloader bar works fine when I run the external spinner.fla movie on it's own, the problem is when I run the external spinner.fla movie via the main home.fla movie the progress bar does not appear although the loaded bytes etc works fine
Preloader That Displays Load Progress Tut
I've gone through the tutorial and it works on my computer. If I hit CTRL Enter twice I'll see the preloader play. It doesn't seem to work on my website though. I've cleared out the internet cache and the files but when I click on the link I just see an empty white box until the movie starts playing.
You can see the movie here: http://www.sweeperhead.com/dojo/videos.htm It's the upper left video I'm testing this on. Can someone please tell me what I'm doing wrong or... if you test it and you see the preloader let me know that too! I'm on a T3 at work and that might have something to do with why I'm not seeing it but I don't think the screen should be white for as long as it is...
Much Thanks,
Sara
Preloader - Change Progress Bar Width
hi there
i'm using the following preload code, courtesy of kirupa :
http://www.kirupa.com/developer/mx/p...epreloader.htm
I can't seem to get the progress bar width (or height) to change.
any ideas?
thanks
aidan
Preloader That Displays Load Progress Tut
I've gone through the tutorial and it works on my computer. If I hit CTRL Enter twice I'll see the preloader play. It doesn't seem to work on my website though. I've cleared out the internet cache and the files but when I click on the link I just see an empty white box until the movie starts playing.
You can see the movie here: http://www.sweeperhead.com/dojo/videos.htm It's the upper left video I'm testing this on. Can someone please tell me what I'm doing wrong or... if you test it and you see the preloader let me know that too! I'm on a T3 at work and that might have something to do with why I'm not seeing it but I don't think the screen should be white for as long as it is...
Much Thanks,
Sara
AS2 Preloader Question: Can I Use A FLV As The Progress Meter?
A friend of mine is creating a website for an in independent movie and has made a small video in After effects for the preloader. I cannot disclose to much about it so you going to have to bare with me. Basically he wants the video to play as its preloading sounds easy to me at first, but he wants it to only play once and its position in the clip represents the amount of the swf loaded. in short when the final frame of the flv (made in AE no audio) is shown the swf should be loaded 100%. Can this be done?
Thanks in advance.
PreLoader Problem- Progress Jumps To End
I've read the tutorials, I just can't figure it out.
This is the script:
//Doesn't show progress; Jumps to end.
totalBytes_txt.text = _root.getBytesTotal();
loadedBytes_txt.text = _root.getBytesLoaded();
remainingBytes_txt.text = totalBytes_txt.text-loadedBytes_txt.text;
percentDone_txt.text = int((loadedBytes_txt.text/totalBytes_txt.text)*100);
_root.loader.gotoAndStop(percentDone_txt.text);
ifFrameLoaded("scene 2", 3){
gotoAndPlay("scene 2", 1);
}
I also tried:
//Makes my loader shrink in lenght, very strange.
if(_framesloaded >= _totalframes){
gotoAndPlay("Scene 2", "start");
}else{
_root.loader._xscale = (_framesloader/_totalframes)*100;
}
What am I doing that i'm not suppose to or just not doing at all?
Help ... Thanks
Preloader Delay And No Progress Bar On External .swf Movie
I would really appreciate any help with this. Basically my preloader at the beginning of my parent flash movie works fine with the progress bar moving as it loads and beginning at 1% and rising to 100% etc.
I have then applied the same code to an external .swf and changed _root. to _.this which partly works but for some reason nothing happen until it gets to 54% loaded (the external file is a 1mb in size so there is a bit of a wait) and the progress bar doesn't move at all. Any ideas?
http://www.binaryfinarydesign.com/lambretta/index.htm
Here is my code:
Frame1:
loadpercent = "0%";
loadBytes = "0 of " + Math.round((this.getBytesTotal() / 1024) * 1000) / 1000 + " Kb";
Frame2:
loadPercent = (Math.floor (this.getBytesLoaded() / this.getBytesTotal() * 100) + "%");
LoadBytes = (Math.round((this.getBytesLoaded() / 1024) * 1000) / 1000 + " Kb of " + Math.round((this.getBytesTotal() / 1024) * 1000) / 1000 + " Kb total Loaded.");
if (this.getBytesLoaded() == this.getBytesTotal()) {loadPercent = "100%"; loadBytes = (Math.round((this.getBytesLoaded() / 1024) * 1000) / 1000 + " Kb of " + Math.round((this.getBytesTotal() / 1024) * 1000) / 1000 + " Kb total Loaded."); this.gotoAndPlay("rangestart");}
Frame3:
this.gotoAndPlay (2) ;
Frame4: is labeled "rangestart"
A Fancy Preloader - Progress Indicator Not On 1st Frame.
Alright, I've seen this done before. I'm trying to make a fancy preloader for transitions between pages on my site, where the progress indicator movie clip is not on the first frame of the timeline, but rather on the 8th frame. I'm having an impossible time getting it to work so that the first 8 frames will play instantly and then pause at the frame with the progress indicator.
Instead what I'm getting is a long delay before anything is displayed, and then it'll pause at the progress indicator when the bar is already 3/4 of the way filled. The method I've tried is to dump the entire preloader animation sequence into a movie clip and embed it on my index.swf on level 0, with it set to Export for Runtime Sharing. Then I call it from that URL from within my site pages, which are on level 4. Logically, that seems like it should work... but the Flash player is still re-downloading the whole damn movie clip before it starts displaying anything on my pages.
If anyone knows a hack that could make this sort of thing function properly, I'd really appreciate it.
Thanks.
F8 - Files Load, But Preloader Progress Bar Doesn't Appear
Can anyone tell me why the preloader script below might not be working correctly in all browsers? It definitely loads the files properly, but the progress bar does not show in firefox. It just shows a blank screen until the files are 100% loaded, then the enter site logo appears.
I have tried the following things:
1. Using relative vs absolute file paths for the external swfs makes no difference to the behaviour.
2. Changed publish settings to export AS classes in other than the first frame - didn't have any anyway. No change.
3. Unchecked "export in first frame" for absolutely everything. Tried both checking and unchecking this for the actual loader_mc. No change.
I'd post my fla instead of code, but I'm using Flash 8 and can't save any earlier than MX2004 and people don't really seem to look at them that much when I post them. If anyone would like to see, I will upload.
Please help, I'm at wit's end!
Preload code (on main timeline)
Code:
stop();
onEnterFrame = function()
{
if(!isNan(Percent))
{
Total = Math.floor (616);
//original code using getBytesTotal to get the total
//preloader behaves exactly the same in firefox no matter
//which method i use.
/*
(load_container._level1.getBytesTotal()/1000)+
(load_container._level2.getBytesTotal()/1000)+
(load_container._level3.getBytesTotal()/1000)+
(load_container._level4.getBytesTotal()/1000)+
(load_container._level5.getBytesTotal()/1000)+
(load_container._level6.getBytesTotal()/1000)+
(load_container._level7.getBytesTotal()/1000)+
(load_container._level8.getBytesTotal()/1000)+
(load_container._level9.getBytesTotal()/1000)+
(load_container.getBytesTotal()/1000);
*/
Loaded = Math.floor (load_container._level1.getBytesLoaded()/1000)+
(load_container._level2.getBytesLoaded()/1000)+
(load_container._level3.getBytesLoaded()/1000)+
(load_container._level4.getBytesLoaded()/1000)+
(load_container._level5.getBytesLoaded()/1000)+
(load_container._level6.getBytesLoaded()/1000)+
(load_container._level7.getBytesLoaded()/1000)+
(load_container._level8.getBytesLoaded()/1000)+
(load_container._level9.getBytesLoaded()/1000)+
(load_container.getBytesLoaded()/1000);
Percent = Math.floor((Loaded/Total)*100);
//trace ("total = " +Total);
//trace ("loaded = " +Loaded);
//trace ("percent = " +Percent);
if(Loaded != Total && Total >= 4)
{
loader_mc.gotoAndStop(Percent);
}
if (Percent == 100 && Total > 4)
{
delete this.onEnterFrame
loader_mc.gotoAndStop(Percent);
}
}
}
Loadfiles code - sitting on the container movie (which is on the stage) at the moment because I've been experimenting with moving it around. Not the best place, but where I put it doesn't seem to make a difference to the behaviour.
Code:
onClipEvent (load)
{
loadMovieNum("loop.swf", 1);
loadMovieNum("bottlesmasked.swf",2);
loadMovieNum("first.swf",3);
loadMovieNum("gallery.swf",4);
loadMovieNum("location.swf",5);
loadMovieNum("menu.swf",6);
loadMovieNum("private.swf",7);
loadMovieNum("winelist.swf",8);
loadMovieNum("nav.swf", 9);
}
onClipEvent (enterFrame)
{
//make the loaded movies invisible
for (i=1; i<10; i++) {
set("_level"+i+"._visible", false);}
}
Preloader Not Displaying Progress On Externally Loaded Jpg
Hi,
I am in the process of making an interactive tour plan, which quite simply is a floor plan of a building which when interacted with by the user shows a description and image of the room in question. With the image I am loading the jpeg externally (using a tutorial I found on the web) and it works fine except the preloader, which is a component does not work, it sticks on 0% and then the image pings in. I'm not really sure why this is happening - can anyone help?
The fla file can be found here: http://www.chaosdesign.com/englemere...ourWedding.fla
Many thanks
Bev
F8 - Files Load, But Preloader Progress Bar Doesn't Appear
Can anyone tell me why the preloader script below might not be working correctly in all browsers? It definitely loads the files properly, but the progress bar does not show in firefox. It just shows a blank screen until the files are 100% loaded, then the enter site logo appears.
I have tried the following things:
1. Using relative vs absolute file paths for the external swfs makes no difference to the behaviour.
2. Changed publish settings to export AS classes in other than the first frame - didn't have any anyway. No change.
3. Unchecked "export in first frame" for absolutely everything. Tried both checking and unchecking this for the actual loader_mc. No change.
I'd post my fla instead of code, but I'm using Flash 8 and can't save any earlier than MX2004 and people don't really seem to look at them that much when I post them. If anyone would like to see, I will upload.
Please help, I'm at wit's end!
Preload code (on main timeline)
Code:
stop();
onEnterFrame = function()
{
if(!isNan(Percent))
{
Total = Math.floor (616);
//original code using getBytesTotal to get the total
//preloader behaves exactly the same in firefox no matter
//which method i use.
/*
(load_container._level1.getBytesTotal()/1000)+
(load_container._level2.getBytesTotal()/1000)+
(load_container._level3.getBytesTotal()/1000)+
(load_container._level4.getBytesTotal()/1000)+
(load_container._level5.getBytesTotal()/1000)+
(load_container._level6.getBytesTotal()/1000)+
(load_container._level7.getBytesTotal()/1000)+
(load_container._level8.getBytesTotal()/1000)+
(load_container._level9.getBytesTotal()/1000)+
(load_container.getBytesTotal()/1000);
*/
Loaded = Math.floor (load_container._level1.getBytesLoaded()/1000)+
(load_container._level2.getBytesLoaded()/1000)+
(load_container._level3.getBytesLoaded()/1000)+
(load_container._level4.getBytesLoaded()/1000)+
(load_container._level5.getBytesLoaded()/1000)+
(load_container._level6.getBytesLoaded()/1000)+
(load_container._level7.getBytesLoaded()/1000)+
(load_container._level8.getBytesLoaded()/1000)+
(load_container._level9.getBytesLoaded()/1000)+
(load_container.getBytesLoaded()/1000);
Percent = Math.floor((Loaded/Total)*100);
//trace ("total = " +Total);
//trace ("loaded = " +Loaded);
//trace ("percent = " +Percent);
if(Loaded != Total && Total >= 4)
{
loader_mc.gotoAndStop(Percent);
}
if (Percent == 100 && Total > 4)
{
delete this.onEnterFrame
loader_mc.gotoAndStop(Percent);
}
}
}
Loadfiles code - sitting on the container movie (which is on the stage) at the moment because I've been experimenting with moving it around. Not the best place, but where I put it doesn't seem to make a difference to the behaviour.
Code:
onClipEvent (load)
{
loadMovieNum("loop.swf", 1);
loadMovieNum("bottlesmasked.swf",2);
loadMovieNum("first.swf",3);
loadMovieNum("gallery.swf",4);
loadMovieNum("location.swf",5);
loadMovieNum("menu.swf",6);
loadMovieNum("private.swf",7);
loadMovieNum("winelist.swf",8);
loadMovieNum("nav.swf", 9);
}
onClipEvent (enterFrame)
{
//make the loaded movies invisible
for (i=1; i<10; i++) {
set("_level"+i+"._visible", false);}
}
[flash8]preloader/progress Bar For Audio Player
i have the play/pause, next, and previous buttons done for my audio player, which dynamically loads the mp3s from an xml file. i also have a volume slider. the next item i'm trying to make is a progress bar/preloader. i want this to show the user how much of the song is loaded, and i also want it to allow the user to drag the position of the song with what is currently loaded thus far. i also want to show the user how long the song has been playing. (a different element) if you know how to help me accomplish this that would be great!! please understand that my knowledge of actionscript is limited so bear with me
btw...what is the best way to include script in a post?
Preloader Not Displaying Progress On Externally Loaded Jpeg
Hi,
I am in the process of making an interactive tour plan, which quite simply is a floor plan of a building which when interacted with by the user shows a description and image of the room in question. With the image I am loading the jpeg externally (using a tutorial I found on the web) and it works fine except the preloader, which is a component does not work, it sticks on 0% and then the image pings in. I'm not really sure why this is happening - can anyone help?
The fla file can be found here: http://www.chaosdesign.com/englemere...ourWedding.fla
Many thanks
Bev
AS3 Preloader - Does Not Show 'progress' On Live Site :: 6 Hours And Nowhere
Hi there, 6 hours later and im nowhere!
If someone can help it would be very much appreciated.
Trying to get a preloader to work with swfs, the swfs load in fine but the pre loader just does not show when in the "progress" state. When tested with 'simulate download' locally, it works fine however.
Here is the code:
Code:
function loadmovies(movieurl){
var myRequest:URLRequest = new URLRequest(movieurl);
var myLoader:Loader = new Loader();
myLoader.load(myRequest);
myLoader.contentLoaderInfo.addEventListener(Event.INIT ,initHandler);
myLoader.contentLoaderInfo.addEventListener(Event.OPEN,showPreloader);
myLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,showProgress);
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,showContent);
var myPreloader:Preloader = new Preloader();
function initHandler(e:Event) {
MovieClip(LoaderInfo(e.target).content).stop();
}
function showPreloader(event:Event):void {
stage.addChild(myPreloader);
stage.setChildIndex(myPreloader, stage.numChildren-1);
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 {
stage.removeChild(thisMC);
thisMC = MovieClip(myLoader.content);
myLoader.unload();
stage.addChild(thisMC);
thisMC.play();
thisMC.alpha=.5;
stage.removeChild(myPreloader);
}
}
Thanks.
Preloader To Monitor The Progress Of 8 Externally Loading Jpgs
I have successfully created a swf file that loads 8 external jpg files.
Now, when I import that swf into an empty MC in my main movie, I want to be able to monitor its download progress and provide the user with some sort of feedback. But so far, this monitoring has been unsuccessful.
The first frame contains the preloader and a stop(); command in the actions layer. The second frame contains the empty MC and code in the actions layer that says
stop();
_root.lowresloader.loadMovie ("levelAssault2006_02.swf");
This loads the external swf file.
The preloader in frame 1 has code attached to it that reads:
onClipEvent (enterFrame) {
if (_root.lowresloader.getBytesLoaded() == _root.lowresloader.getBytesTotal())
_parent.gotoAndStop(2);
}
I hate asking questions like this, as it is so confusing for me, much less someone else trying to puzzle out my post, but I hope someone can help me.
To facilitate understanding, I have uploaded a small 77KB zip file that contains the two flas I've used to construct this thing. You can find it at www.dwbgallery.com/stuff/Flashstuff.zip.
Progress Bar For Showing Progress Of Loading Data From A CFC?
Hi all,
I wondered if anyone knew any way of showing a progress bar when calling a CFC through actionscript? I have a CFC which returns a ton of data, and so would like to show the progress of the data being loaded.
I know you can do this when loading a webpage, through using URLLoader, and getting the progress by listening to the ProgressEvent.PROGRESS event. However, when I call the CFC, I don't use the URLLoader class. My code for calling the CFC service looks like below
Code:
var service : RemoteObject = RemoteObject( ServiceLocator.getInstance().getService( "productService" ) );
var responder : GenericResponder = this.initResponder( getProductOptionListResult, getProductOptionListFault, resultHandle, faultHandle );
var call : AsyncToken = service.findOptionsForProduct( product );
thanks in advance for your help!
Mark
AS3 - Coding A Progress Bar To Show Progress Of A Timer.
Coding a progress bar to show progress of a Timer.
I have a timer that is set for (8000, 0). Pretty much what I would like to do is show the progress of where the timer is at but with a graphic. Something simple like a loader bar. Pending on where the timer is at the progress bar would load accordingly.
I am going to give it a try with out help but thought I would ask on the forum incase someone has an idea of how to do this before I go on a wild goose chase. Anyhow here goes the chase. If I figre it out before someone can help me I will post my code here.
Thanks,
Artofacks1
Preloader - Not A "progress Bar" Type
Hi Guys
I'm wanting to create a preloader that slowly reveals a logo as well as % while preloading
I have tried the this one at http://www.freeopenbook.com/flash8-bible/BBL0244.html and it works, however but i want replace the progress bar with a logo that slowly reveals itself and still want to keep the percentage indicator.
I dont know action script so have no clue.
any help or pointers will be appreciated.
Preloader Progress Bar Not Move In IE, But Move Well In Firefox
I have been in this problem for several days. I really got frustrated about it. Pls. anybody can give me some help.
I created a general preloader using movieClipLoader object and draw a progress bar using movieClip. I set the progress bar's progress by setting bar_mc._x = percentage, and created as a swf file. when test it , it works well, when open it using firefox, it still work well, can show the gradual progress in the bar, but if I using IE 6 or 7 to open it, it will not show the gradual progress , just jump from 0% to 100% after the whole file is completely loaded.
I saw a note about progress bar not show graduate progress in Flash Player 9, so I uninstall it and install Flash Player 8 again, it is still like that.
I really don't know what 's the problem. Could any friends give me some suggestion or idea, that will be greatly helpful.
Thanks.
Progress Bar Not Showing Progress
Hi all
I have putted the code below in frame1, and then the actual movie in frame 2. The problem is that the code below doesn't show the progress unless i put the movie to start from say frame 5. Could someone please tell me why that is and any good progress bar code with percentage? I've actually tried a few tutorial sample and only this one works but need to move to higher frame no.
// stop the movie from continuing
stop();
// create a function called onEnterFrame
// with this name, it is an event handler
// and is called automatically by the flash
// player every frame at intervals specified
// by the frame rate of the movie
onEnterFrame = function(){
// percent loaded is loaded/total
var percent_loaded = _root.getBytesLoaded()/_root.getBytesTotal();
// assign percent loaded to preloader movie clip
// in the form of the variable named value
preloader_mc.value = percent_loaded;
if (percent_loaded == 1){
// delete the onEnterFrame event handler
// so that it is no longer being called
// every frame
delete onEnterFrame;
// tell the main timeline to play
play();
//gotoAndPlay(12);
}
}
Progress Bar
can anyone tell me how to create a simple preloader progress bar please
Progress Bar
hi,
I tried changing the color of the progress bar in the conponents... for some reason while it is in the library it is the color that i changed it to... but when i put it on the stage it is the default color.
What am i doing wrong?
Thanks!
Seth
Progress Bar Help
hey- I'm having trouble with a progress bar
im working on a fight club animation, and im not using very much actionscript. I needed to make a loading bar, and it seems to stick at 11% (at least on my computer). Also, the text saying what % it is at is not good quality. I find that it is good quality if i set it to static text, but then i obviously can't get it to change along with the bar. anyway.
Here is everything you would need to know.
The names of the Objects -
1. "Bar". the name of the semi-orange bar that should creep across (Graphic)
2. "Loader". the name of the movie (movie)
The Scripting i have set to "Loader"
onClipEvent (load) {
perc = Math.round((_parent.getBytesLoaded()/_parent.getBytesTotal())*100);
xperc = perc/100;
barlength = 364.9;
if ((perc == 100) and (bar._width == barlength)) {
_parent.gotoAndPlay(2);
} else {
nperc = perc+"%";
bar._width = barlength*xperc;
bar._x = -100+(bar._width/2);
}
}
onClipEvent (load) {
if ((perc == 100) and (bar._width == barlength)) {
_parent.gotoAndPlay(2);
// checks the percentage of the movie that is
// loaded. If the movie is fully loaded it tells
// the main timeline to goto frame 2 and play.
// It also checks to make sure that the loading bar
// has made it all the way across.
} else {
nperc = perc+"%";
// gives a percentage readout in the text box you created.
bar._width = barlength*xperc;
// makes the bar grow.
bar._x = -100+(bar._width/2);
// keeps the bar in place.
}
}
i copied and pasted this off of a tutorial, still not completely understanding it. I am sure the problem is within that. The only thing i changed was the barlength (4th line) from 200 to 364.9.
when the loading finishes, it should say "done" for a few frames, fade out, and cut to the movie. i know how to do this.
check out whats happening with it at
www.geocities.com/skifreak05
then click on "go here for fight club"
|