// Copyright 2007. Adobe Systems Incorporated. All Rights Reserved. package fl.controls { /** * The ProgressBarMode class defines the values for the mode * property of the ProgressBar class. * * @see ProgressBar#mode ProgressBar.mode * * @langversion 3.0 * @playerversion Flash 9.0.28.0 */ public class ProgressBarMode { /** * Manually update the status of the ProgressBar component. In this mode, you specify the * minimum and maximum properties and use the * setProgress() method to specify the status. * * @includeExample examples/ProgressBar.percentComplete.1.as -noswf * * @see ProgressBar#maximum ProgressBar.maximum * @see ProgressBar#minimum ProgressBar.minimum * @see ProgressBar#setProgress() ProgressBar.setProgress() * * @langversion 3.0 * @playerversion Flash 9.0.28.0 */ public static const MANUAL:String = "manual"; /** * The component specified by the source property must dispatch * progress and complete * events. The ProgressBar uses these events to update its status. * * @includeExample examples/ProgressBarMode.EVENT.1.as -noswf * * @see fl.containers.ScrollPane#event:complete ScrollPane complete event * @see fl.containers.ScrollPane#event:progress ScrollPane progress event * @see fl.containers.UILoader#event:complete UILoader complete event * @see fl.containers.UILoader#event:progress UILoader progress event * @see flash.display.LoaderInfo#event:complete LoaderInfo complete event * @see flash.display.LoaderInfo#event:progress LoaderInfo progress event * @see flash.media.Sound#event:complete Sound complete event * @see flash.media.Sound#event:progress Sound progress event * @see flash.net.FileReference#event:complete FileReference complete event * @see flash.net.FileReference#event:progress FileReference progress event * @see flash.net.URLLoader#event:complete URLLoader complete event * @see flash.net.URLLoader#event:progress URLLoader progress event * @see flash.net.URLStream#event:complete URLStream complete event * @see flash.net.URLStream#event:progress URLStream progress event * * @langversion 3.0 * @playerversion Flash 9.0.28.0 */ public static const EVENT:String = "event"; /** * Progress is updated by polling the source. The source * property must specify an object that exposes the bytesLoaded * and bytesTotal properties. * * @includeExample examples/ProgressBarMode.POLLED.1.as -noswf * * @see fl.containers.ScrollPane#bytesLoaded ScrollPane.bytesLoaded * @see fl.containers.ScrollPane#bytesTotal ScrollPane.bytesTotal * @see fl.containers.UILoader#bytesLoaded UILoader.bytesLoaded * @see fl.containers.UILoader#bytesTotal UILoader.bytesTotal * @see flash.media.Sound#bytesLoaded Sound.bytesLoaded * @see flash.media.Sound#bytesTotal Sound.bytesTotal * @see flash.net.NetStream#bytesLoaded NetStream.bytesLoaded * @see flash.net.NetStream#bytesTotal NetStream.bytesTotal * @see flash.net.URLLoader#bytesLoaded URLLoader.bytesLoaded * @see flash.net.URLLoader#bytesTotal URLLoader.bytesTotal * * @langversion 3.0 * @playerversion Flash 9.0.28.0 */ public static const POLLED:String = "polled"; } }