GhostWire ProgressBar - Usage
Using the GhostWire ProgressBar component
Just drag and drop an instance of the GhostWire ProgressBar from the components panel onto the stage. Edit the component parameters of the instance to suit your requirements. You will also need to set up a procedure to call the 'setProgress' method of the component to update the state of the ProgressBar instance. You can also use the 'setTargetInstance' method to get the component to automatically track the downloading progress of a target movieclip (see below)
---
How do I track the loading progress of a movieclip?
If you are loading an external JPEG or SWF file into a target movieclip, you can use the 'setTargetInstance' method of the ProgressBar component to bind it to that movieclip - the progressbar will then advances its state based on the loading progress of the target movieclip. For example:
_root.createEmptyMovieClip("loader_mc",1);
myProgressBar.setTargetInstance(_root.loader_mc);
_root.loader_mc.loadMovie("external.swf");
** If you wish to remove the binding, simply pass 'null' to the method - the ProgressBar instance will then stop polling/tracking.
---
How do I set up an indeterminate progressbar?
Indeterminate progressbars are used in scenarios where the duration of a process cannot be determined. You might want to use an indeterminate ProgressBar to let the user know that the application is attempting a client-server communication connection, and there's no no way to accurately determine how long it will take to complete.
In these cases, the 'mode' of the ProgressBar should be set to "loop". You can also use the 'setProgress' method, passing "-1" as the parameter.
---
How do I change an indeterminate/loop progressbar back into a determinate progressbar?
If an indeterminate process reaches a point where its duration can be determined, you may want to switch to a determinate ProgressBar. To do so, simply use the 'setProgress' method normally - the component will switch to a determinate mode automatically.
---
How do I adjust the speed of the loop in the indeterminate ProgressBar?
The component has a 'loopSpeed' property. Although this is not available at the component parameters panel, you can set this property via actionscript. The default 'loopSpeed' value is '5'. You can adjust this upwards to make the loop faster, or downwards to make it slower.
---
How do I use more or less bars in the loop/indeterminate ProgressBar?
The component has a 'barCount' property. Although this is not available at the component parameters panel, you can set this property via actionscript. The default 'barCount' value is '3' (indicating that three bars/ticks will be created). You can adjust this number upwards or downwards to fit your requirements, and then calling the 'setMode' method. For example:
myProgressBar.barCount = 5;
myProgressBar.setMode("loop");
---
How do I tweak the spacing between 'ticks' (when 'mode' has been set to 'ticks' or 'loop')?
The component has a 'barSpacing' property. Although this is not available at the component parameters panel, you can set this property via actionscript. The default 'barSpacing' value is '2' (indicating that there will be a 2 pixels wide space in between 'ticks'). You need to call the 'setMode' method after setting this property
Flash Components
Button :: CheckBox :: CollapsibleMenu :: CollapsiblePane :: ColorPicker :: ComboBox :: ContextMenu :: DialogBox :: InputField :: ListBox :: Loader :: Menu :: SlideMenu :: NumericBox :: Panel :: ProgressBar :: RadioButton :: ScrollBar :: ScrollPane :: SlidePane :: Slider :: TabView :: TextArea :: TreeView :: Window
See also
Documentation :: FAQs :: Testimonials
|