Components - Progress Bar
a further request about preloaders, am trying to get the progress bar component working but with little luck. am pretty clueless when it comes to preloaders and any assistance or direction on this matter would help a lot.
FlashKit > Flash Help > Flash Newbies
Posted on: 10-13-2003, 10:34 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[F8] Progress Bar And Loader Components...
Hi there I'm having a little trouble with using the progress bar with the loader component.
I have them both in a movieclip and they work fine when you test just the movieclip, but as soon as I put the movieclip in a scene the progress bar doesn't work anymore.
Here's the code...
myProgressBarListener = new Object();
myProgressBarListener = function (eventObject) {
myProgressBar._visible = false;
};
myProgressBar.addEventListener("complete", myProgressBarListener);
myProgressBar.mode = "polled";
myProgressBar.source = "my_loader";
myProgressBar.conversion = "1";
myProgressBar.label = "LOADING %3%%";
myProgressBar.direction = "right";
myProgressBar.labelPlacement = "bottom";
my_loader.loadMovie("http://media.ft.com/cms/3a00e22e-8312-11dc-b042-0000779fd2ac.swf", true);
Like I said when I test the movieclip the progress bar work aas it's supposed to and disappears when loaded. However when I put the movieclip on the stage the progress bar bar stays at 0% and doesn't disappear when movie starts to load in.
Am I missing something?
Best
Steve
Scrollbar Components Breakin My Progress Bar
Hey there guys, maybe you can help me out. I have a progress bar that goes while my fla loads...but it doesnt show up untill 346k are loaded. Aparently there is 346k of data on frame one. Even though all I have on it is a progress bar. I think it is loading the scrollbar components im using on frame one. Is there a way around this? The stupid progress bar only shows itself for a second...and the movie is 3/4 loaded! I would include a FLA but it's more than the 300k limit.
HELP!!!
HOPELESS - Using Progress Bar/Loader Components
Hello everyone!
I'm about to start tearing my hair out, and I would be forever grateful for some expert advice.
I am using Flash 8, and want to use a single instance of the loader component with a single instance of the progress bar component to preload multiple external SWFs. I have it working fine for the first SWFs loading in, but when I try to preload in a different SWF further down the timeline using the same loader instance and progressbar instance it doesn't work.
If you can direct me to a tutorial of some kind or put me in the right direction I would be stoked.
Here is the code i'm using for the first external SWF:
PreloaderBar.setStyle("themeColor", 0xD51729)
PreloaderBarListener = new Object();
PreloaderBarListener = function (eventObject) {
PreloaderBar._visible = false;
};
ContentLoader.scaleContent = false;
ContentLoader.contentPath = "home.swf";
PreloaderBar.addEventListener("complete", PreloaderBarListener);
PreloaderBar.mode = "polled";
PreloaderBar.source = "ContentLoader";
PreloaderBar.direction = "right";
stop();
Then for the next SWF I want to load in I have added a keyframe in my actionscript layer further down on the timeline and inserted this code:
PreloaderBar.setStyle("themeColor", 0xD51729)
PreloaderBarProductsListener = new Object();
PreloaderBarProductsListener = function (eventObject) {
PreloaderBar._visible = false;
};
ContentLoader.scaleContent = false;
ContentLoader.contentPath = "products.swf";
PreloaderBar.addEventListener("complete", PreloaderBarProductsListener);
PreloaderBar.mode = "polled";
PreloaderBar.source = "ContentLoader";
PreloaderBar.direction = "right";
stop();
Just changing the contentPath to a different SWF
Please let me know if this is the right way to go about doing this, if there is an easier way, or if my code is completely wrong.
Thanks!
Quinn
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
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);
}
}
Use FCS Components In Flash MX 2004. Components Already Installed. Help
Hi,
I have Flash communication server 1.5 insatlled and Flash MX 2004 too. When I create new fla file and want to use Flash components, I don't find them to use. I dont see any panel etc to use them. Some one tell me how to list the components to add them in my Flash fla file please
Thanks
Removing Components From The Components Panel
This seems like a stupid question, but I can't seem to get my old components out of my Components panel!
I put some custom made components, just for a try, into the folder
C:Program FilesMacromediaFlash MX 2004enFirst RunComponents,
found them in the Components Panel, but wanted to get rid of them immediately. Deleted the components from the folder, but they don't seem to disappear from the panel! I have no idea where they come from, since I should not have them even on my hard disk anymore!
Cheers!
Flash Components Vs. Flex Components
I know almost nothing about Flex. Just wanted to establish that at the outset.
A client sent me an API component - an swc file - to use in a project I'm doing. I installed it in my Flash folders, but it didn't show up in the Components panel when I launched Flash. When I queried the client about it, he said that it was actually a Flex component.
My question is, what's the difference between a Component written for Flex and one written for Flash ? Can a Flex component be adapted for use in Flash ? In that what I received is a .swc, I'm assuming it has to have been written in ActionScript.
Any help would be hugely appreciated. Many thanks.
CS3 Missing Components Or How To Use Flex 2 Components In CS3
Does anyone have a good resource for how to use Flex2 components in CS3?
I found an install that said it would install Flex2 components in CS3, but all it added waas the UIMovieClip for packaging Flash MC in swc's for Flex.
Right now I am specifically trying to solve the missing dateField component in CS3.
But I would like to find out if anyone has found a good resource for alternatives to all missing components in CS3.
I'm hoping the answer is not to build them from scratch.
Thanks,
Hunter
Components Inside Components (Flash 8)
Hi,
I have an Accordion component which needs to contain a number of small forms, each of which is built as a MovieClip containing TextInput, Button, ComboBox, etc.
So, I build my little forms in Flash, make them into MovieClips, give them a linkage identifier and assign them the AS2 class "mx.core.View", as the documentation says.
Then I use ActionScript to attach these to my Accordion control, using my_accordion.createChild(). OK, fine. Works nicely.
The problem is that in the next few lines of code I also want to be able to populate the TextInput and ComboBox components which reside inside my accordion. I can't do it. Trying to do so fails silently. Tracing out the path to the Components shows that they are "there", but if i put some content into, say, one of the TextInputs up-front (i.e. in the Properties panel inside Flash) and then try to trace... my_acc.my_form.my_textInput.text... i get undefined.
So, it looks like the components inside the form inside the Accordion aren't yet "initialised" when I am trying to get/set their values. I've seen similar behaviour before, but it's not clear in the documentation how to get around it.
Anyone help? What is the correct way to use components inside components like this? I don't want to have to call a second function or put any code on the timeline or anything like that!
Many thanks,
Andy
Components Inside Components (Flash 8)
Hi,
I have an Accordion component which needs to contain a number of small forms, each of which is built as a MovieClip containing TextInput, Button, ComboBox, etc.
So, I build my little forms in Flash, make them into MovieClips, give them a linkage identifier and assign them the AS2 class "mx.core.View", as the documentation says.
Then I use ActionScript to attach these to my Accordion control, using my_accordion.createChild(). OK, fine. Works nicely.
The problem is that in the next few lines of code I also want to be able to populate the TextInput and ComboBox components which reside inside my accordion. I can't do it. Trying to do so fails silently. Tracing out the path to the Components shows that they are "there", but if i put some content into, say, one of the TextInputs up-front (i.e. in the Properties panel inside Flash) and then try to trace... my_acc.my_form.my_textInput.text... i get undefined.
So, it looks like the components inside the form inside the Accordion aren't yet "initialised" when I am trying to get/set their values. I've seen similar behaviour before, but it's not clear in the documentation how to get around it.
Anyone help? What is the correct way to use components inside components like this? I don't want to have to call a second function or put any code on the timeline or anything like that!
Many thanks,
Andy
Flash Components Vs. Flex Components
I know almost nothing about Flex. Just wanted to establish that at the outset.
A client sent me an API component - an swc file - to use in a project I'm doing. I installed it in my Flash folders, but it didn't show up in the Components panel when I launched Flash. When I queried the client about it, he said that it was actually a Flex component.
My question is, what's the difference between a Component written for Flex and one written for Flash ? Can a Flex component be adapted for use in Flash ? In that what I received is a .swc, I'm assuming it has to have been written in ActionScript.
Any help would be hugely appreciated. Many thanks.
Communication Components Do Not Appear In Components Panel
Hi! I've installed Flash MX and Flash Media Server. I would like to use the communication components in flash MX however, I can not see it in my communication components panel in flash MX. I've already added the communication components.fla to my ---Flash MX/First Run/Components directory under the
Macromedia Flash MX installation directory and updated the ASC files
in my /scriptlib/ directory.. But after adding this, only four components (audio conference, av presence, chat and connection light) appeared in my component panel. I need to use other components but its not available. What should I do? Any help will be appreciated.Textcommunication components
Add On To Using New Built Components Or For Building Components?
My version of Flash won't even let me use components created by other people... Is there a plug-in or an add-on that I have to get to use components that didn't come with Flash? Is there something else I need to get to build my own components? If so.. Where can I get it? Is there a homepage I may purshase it from? Where? How much?
Can Components Be Put Inside Components?
Does anyone know if components can exist and function properly within other components??
For example, I have a large form with radio buttons and checkboxes that is in a movie. This movie then shows up in a scrollpane and doesn't function at all.
Just curious if that is a limitation.
Thanks.
MX Components V MX2004 Components
Appreciate any help to this problem.
I'm working on a project using MX2004 and my business partner is working on the same project using MX only. I design and he codes. He has created a form in MX using a few components such as the Combo Box. However, when I recieve it, although it works fine I cant seem to swap the components to MX2004 - when I try I get a blank box/boxes!
Is this a known issue? He can't afford to upgrade to MX2004 at this stage or else we probably wouldn't have this problem!
Thanks, Steve
FMX Components Vs. FMX2K4 Components
Hi,
I would like to export movie clips as components and let other developers use those to create applications.
I have very little experience with components; I did use FMX components in the past.
I would like to let users change the components features, for instance, totally redo the animation of a button's components rollover effect.
1.Can this be done with FMX2k4 components (I think not).
2.Can this be done with FMX components?
3.Can I export FMX components with FMX2k4 IDE?
4.What effect will components have on file size and performance?
Thanks in advance,
DMZ
UI Components V/s Flash MX UI Components
I am having a problem with traceing a combobox using UI Components. I am tracing the value of the selected combobox using a combobox with the UI Components. I prefer the UI Components because they have the glow, rounded corners and are more attractive. the code works fine with the Flash MX UI Components. However, when I use the UI components it doesnt. The combobox populates however I can not trace. Does anyone have any suggestions? I use the following code to trace the value of the combobox:
myCombo.setChangeHandler("myFoo");
myFoo = function(myCombo){
trace(myCombo.getValue());
I also used this code:
myCombo.setChangeHandler("myHandler");
function myHandler(obj)
{
trace (obj.getValue());
trace (obj.getSelectedItem().label);
}
The code for the entire section is:
function getStateArray(){
myStates ="AL,AK,AZ,AR,CA,CO,CT,DE,FL,GA,HI,ID,IL,IN,IA,KS,KY,LA,MA,MD,ME,MI,MN,MO,MS,M T,NC,NE,NV,NH,NJ,NM,NY,NC,ND,OH,OK,OR,PA,RI,SC,SD,TN,TX,UT,VT,VA,WA,WV,WI,WY";
myStatesArray = new Array();
myStatesArray = myStates.split(",");
return myStatesArray;
}
myArray = getStateArray();
myArray.unshift("--");
myCombo.setDataProvider(myArray);
myCombo.setChangeHandler("myHandler");
function myHandler(obj)
{
trace (obj.getValue());
trace (obj.getSelectedItem().label);
}
Please help. Thanks in advance for any help.
Justice
Components Inside Components
I have built a custom component which I call 'VComboBox'. This component is composed of a single label and an instance of Macromedia's builtin ComboBox 'FComboBoxSymbol'. I named the instance of the FComboBoxSymbol to 'comboObject'.
Now when I drag a copy of my component onto the stage and in ActionScript I use the following code:
_root.myVComboInstance.comboObject.addItem("red", 0);
It works and adds the item into the combo box inside my custom component. However when I dynamically create an instance of my VComboBox it does not work at all, like below:
_root.attachMovie("VComboBox", myNewCombo, depth++);
_root.myNewCombo.comboObject.addItem("red", 0);
The combo appears but however no item is added. And when I click on the arrow for the combo to drop-down nothing happens. I am trying to find out what I am doing wrong? Is there a way to make this work? Also why is my custom component acting completely different based on whether it was created at design-time, or whether it was created dynamically at run-time? Any assistance would be greatly appreciated.
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"
Progress Bar
I want to make a load bar, that loads from down to up inside of
a shape of an ink bottle.
Progress Bar?
hey guys i'm new here ^_^ and i'm kinda new in flash animations...\
can somebody help me? how do i make a fake progress bar? ok so here how it goes... when i click a button the progress bar loads up and goes to the next frame
Progress Bar
hi,
can s.b. tell me how to add a progress bar into a video in flash mx? i mean the video progress bar not the loading one.
i mean i can insert it into the video, but it doesn't work. it doesn't go on and stays by 0.00 sek...
thx!
Dorian
Progress Bar
I'm using the Progress Bar component to load a jpeg into a loader component. I've gotten this to work fine. Except that I'm not quite sure how to make the progress bar component disappear once the it has finished loading the jpeg. Does anyone know how to do this? Thanks.
-Jay
Progress Bar
I have a swf file that loads on my web page. I would like to have a progress bar that tells the user how much more they need to download.
Can anyone help?
Progress Bar
I have no idea or nor do i understand how to make a progress bar for my movie. Can anybody make this as simple as possible? Or have an easier toturial with step by step pictures and instructions lol. Im sorry but i need someone to hold my hand on this one. Thanx
Progress Bar
What are the step by step on using the progressbar in Flash 2004? I am new at that component.
Thanks
Progress Bar - How To ?
I Have a `2 MB fullscreen(fscommand) SWF clip` that I`d like to monitor it`s upload progress for the surfer so he knows how long to wait until it loads.
I just can`t manage it.
Tried reading and rereading the Help files - to no avail.
Please , Dear helpers : How do I load a fullscreen(fscommand) with a progress bar to monitor it`s upload pace ?
Thanks heartily in advance
Progress Bar
Hi, I am new to Flash MX 2004 having just upgraded from Flash 4 (I know this may seem weird to some but I am an artist using Flash not a programmer). I have been looking for a simple tutorial about displaying a progress bar when loading my swfs. I am only familiar with the Flash 4 "If frame is loaded" script. Can anyone please help. I have spent several hours on this site searching and reading previous board messages and not got anywhere yet.
Thanks
JayDuke
Progress Bar
does anyone know how to i sent the progress bar back to 0% after its reached 100%?
Progress Bar
i can't seem to find any good progress bar tutorials i know i could use the components one but i want to make my own.
[F8] Progress Bar
I have a slide presentation...I am running it through a projector...I need a progress bar because it is sluggish when first loading...what would be the best way to do this...thanks!
Progress Bar
How would I place a simple gray loading progress bar into my swf file:
http://66.221.32.78/tony.html
imagine that page would be larger to load. say 1mb, can't you put a movie clip with some script on the first keyframe and then it loads your page? I looked at lynda.com and it just talks about making a preloader file that calls up a swf file to go into the container, can't get it to work is there a better way?
Progress Bar
I am trying to load an external file into a preloader, however i can't get the preloader bar to move at all. The external .swf gets loaded fine and in the correct amount of time. I have a ProgressBar called 'pBar' and a Loader called 'loader'. Here is the loading code:
loader.autoLoad = false;
loader.contentPath = "film4.swf";
loader.content._lockroot = true;
pBar.label = "%1 out of %2 loaded (%3%%)";
pBar.source = loader;
pBar.mode = "polled";
pBar.setStyle("themeColor", "0x000000");
pBar.setStyle("color", "0x000000");
loader.load();
why can't i get the loader bar to move?? Please help!!! cheers.
XML Progress Bar
Hi,
I'm using thois script to preload a XML file and the progress bar shows up and doesn't work until after published the second time in the flash again. What should I do I'm a newby. Thanks
Code:
var barWidth:Number = 200;
var barHeight:Number = 5;
this.createEmptyMovieClip("pBar_mc", 9999);
var bar:MovieClip = pBar_mc.createEmptyMovieClip("bar_mc", _level17);
bar.beginFill(0xC9DA2A,100);
bar.moveTo(0, 0);
bar.lineTo(barWidth, 0);
bar.lineTo(barWidth, barHeight);
bar.lineTo(0, barHeight);
bar.lineTo(0, 0);
bar.endFill();
bar._xscale = 0;
var stroke:MovieClip = pBar_mc.createEmptyMovieClip("stroke_mc", 20);
stroke.lineStyle(0, 0xFFFFFF);
stroke.moveTo(0, 0);
stroke.lineTo(barWidth, 0);
stroke.lineTo(barWidth, barHeight);
stroke.lineTo(0, barHeight);
stroke.lineTo(0, 0);
pBar_mc.createTextField("label_txt", 30, 0, barHeight, 100, 21);
pBar_mc.label_txt.autoSize = "left";
pBar_mc.label_txt.selectable = false;
pBar_mc._x = (Stage.width - pBar_mc._width) / 2;
pBar_mc._y = (Stage.height - pBar_mc._height) / 2;
var my_xml:XML = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success:Boolean) {
pBar_mc.onEnterFrame = undefined;
if (success) {
trace("XML loaded successfully");
} else {
trace("Unable to load XML");
}
};
my_xml.load("icons.xml");
//xml.load("icons.xml");
pBar_mc.onEnterFrame = function() {
var pctLoaded:Number = Math.floor(my_xml.getBytesLoaded() / my_xml.getBytesTotal() * 100);
if (!isNaN(pctLoaded)) {
pBar_mc.bar_mc._xscale = pctLoaded;
pBar_mc.label_txt.text = pctLoaded + "% loaded";
if (pctLoaded >= 100) {
pBar_mc.onEnterFrame = undefined;
}
}
};
Progress Bar
hi guys,
im using flash mx.
ive designed an interactive flash exe that runs on a cdrom. i have create some bttons so when the user clicks on each of them they open another flash swf file (which conatins large movie clips) using the load movie method.
the problem is, the swf file which have the movies take a lot of time to load from the cd. can some one tell me how to add a progressbar so the user wont get confused while the movie is being loaded.
[MX] Progress Bar
I have this progress bar thats one frame and everything has instance names. This code is on the frame itself. But when I preview it doesn't load anything
Code:
loader.contentPath = "http://www.hotlinkfiles.com/files/1415773_lsbug/webintro.swf";
pBar.source = loader;
Progress Bar
hello friends,
i am trying to create a progress bar in a movie. in that particular file i am playing three external swf files. but i want the progress bar to be interactive and can play the movie when ever it is draged and released on a particular place.
plz help me.
thanks and regards
Progress Bar Help
Hello
I followed Lee Brimelow's tutorial on creating a scrub progress bar.
When i test the movie the flv begins playing but the scrubber movie clip shoots away from the loader bar I created onto the 0 coordinate. I figured the script i used acknoledges the 0 coordinate as the start for the scrub movie clip.
How do i make it so that the scrubber movie clip starts at X= 243.2, which is the location of the start of my loader movie clip.
Here is my script.
Code:
//video
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
//buffer
ns.setBufferTime(15);
ns.onStatus = function(info) {
if(info.code == "NetStream.Buffer.Full") {
bufferClip._visible = false;
}
if(info.code == "NetStream.Buffer.Empty") {
bufferClip._visible = true;
}
if(info.code == "NetStream.Play.Stop") {
ns.seek(0);
}
}
trailer.attachVideo(ns);
rewind_btn.onRelease = function() {
ns.seek(0);
}
play_btn.onRelease = function() {
ns.pause();
}
var videoInteval = setInterval(videoStatus,100);
var amountLoaded:Number;
var duration:Number;
ns["onMetaData"] = function(obj) {
duration = obj.duration;
}
function videoStatus() {
amountLoaded = ns.bytesLoaded / ns.bytesTotal;
loader.loadbar._width = amountLoaded * 243.2;
loader.scrub._x = ns.time / duration * 243.2;
}
MP3 Progress Bar
Hi, I'm trying to get this progress bar "sndbarMC" to show in this MP3 player and no luck. Any ideas??
Thanks!
KingKahuna
Code:
mySnd = new Sound();
sndbarMC._visible = false;
mySnd.onLoad = function() {
totalseconds = Math.floor(mySnd.duration/1000);
totaltime = Math.floor(totalseconds/60)+":"+totalseconds%60;
sndbarMC._visible = true;
};
mySnd.loadSound("moment1-clip.mp3", true);
volume = 100;
pause = 0;
pauseoverBTN._visible = false;
function f1() {
buffered = Math.floor((mySnd.getBytesLoaded()/mySnd.getBytesTotal())*100);
if (buffered<100) {
totaltime = buffered;
totaltime = totaltime+"%";
}
sndbarMC._xscale = (mySnd.position/mySnd.duration)*100;
playedseconds = Math.floor(mySnd.position/1000);
playedtime = Math.floor(playedseconds/60)+":"+playedseconds%60;
if (action == "stop") {
sndbarMC._xscale = 0;
}
if (pause == 1) {
pausepos = mySnd.position;
mySnd.stop();
pauseoverBTN._visible = true;
}
}
setInterval(f1, 100);
stop();
Progress Bar
I have two movies connected together i want that while a second movie is being loaded a sort of progress bas should appear indicating the percentage done of that sort . how can this be done
Progress Bar
Hi
I would like to use a progress bar component to show the amount of time left before the next scene is shown. I would like it to count up to 7 seconds, then switch to the next slide. I would also like to be able to pause this action and resume it.
Progress Bar Help
i created a progress bar for a school project but it doesnt seem to be working, i tried and made a nice slik bar with my name on top which fades in and out all the time and the percentage at the bottom. but it doesnt seem to work when i try it and how do you attach it to the html file, like show the flash and then the website comes?
sorry for my bad english and this is my first post
i have also included the .fla file for people who are extremely helpful
http://www.sendspace.com/file/dcys9y
Edited: 08/07/2007 at 02:06:10 PM by Ahmed_7
Progress Bar - Please Help
Hi there,
I have desperately trying to solve a problem with a progress bar in my animation. I have got a button on my progress bar which shows at what stage the animation is. I would like to have the button controlling the animation in the way that I could drag it to any place on progress bar and the animation would move to this place. I am attaching the source code, so I hope it would be much clearer then. The link to download source code: http://www.sendspace.com/file/st7dlx
I would highly appreciate any advice and would be happy for any help.
Thanks a lot in advance.
Tomas
|