Navigation Menu

Skip to content

Commit

Permalink
handling of progressBar improved + missing manual mode of ProgressBar…
Browse files Browse the repository at this point in the history
… added
  • Loading branch information
sectore committed Sep 14, 2009
1 parent 370fe93 commit 1a05dad
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
Binary file modified bin/SparkApplicationUpdaterUI.swc
Binary file not shown.
21 changes: 10 additions & 11 deletions src/de/websector/utils/updater/ui/ApplicationUpdaterUI.as
Expand Up @@ -462,29 +462,28 @@ package de.websector.utils.updater.ui
}
}

protected function updaterDownloadProgressHandler( event: ProgressEvent ):void

protected function updaterDownloadStartHandler( event: UpdateEvent ):void
{
setCurrentSkinState( STATE_DOWNLOAD_PROGRESS );

if ( progressBar != null )
{
progressBar.setProgress( event.bytesLoaded, event.bytesTotal );
}
progressBar.setProgress( 0, 100 );
}

protected function updaterDownloadStartHandler( event: UpdateEvent ):void
{
setCurrentSkinState( STATE_DOWNLOAD_PROGRESS );

protected function updaterDownloadProgressHandler( event: ProgressEvent ):void
{
if ( progressBar != null )
progressBar.setProgress( event.bytesLoaded, event.bytesTotal );
}


protected function updaterDownloadCompleteHandler( event: UpdateEvent ):void
{
//
// avoid auto install
// because ( appUpdater.isInstallUpdateVisible ) doesn't work
event.preventDefault();

event.preventDefault();

setCurrentSkinState( STATE_INSTALL_UPDATE );
}
Expand Down
Expand Up @@ -160,6 +160,7 @@
label="" labelWidth="0" fontSize="0"
trackSkin="de.websector.utils.updater.ui.skins.firefox.ProgressBarTrackSkin"
barSkin="de.websector.utils.updater.ui.skins.firefox.ProgressBarSkin"
mode="manual"
/>

<s:Label
Expand Down
Expand Up @@ -7,7 +7,8 @@

<s:Rect
id="bar"
width="100%" height="100%"
left="0" right="0"
top="0" bottom="0"
>
<s:fill>
<s:LinearGradient rotation="90">
Expand Down
Expand Up @@ -18,7 +18,7 @@
<![CDATA[
import mx.graphics.SolidColor;
private static const CONTENT_BOX_WIDTH: int = 340;
private static const CONTENT_BOX_WIDTH: int = 320;
]]>
</fx:Script>
Expand Down Expand Up @@ -202,6 +202,7 @@
label="" labelWidth="0" fontSize="0"
trackSkin="de.websector.utils.updater.ui.skins.silver.ProgressBarTrackSkin"
barSkin="de.websector.utils.updater.ui.skins.silver.ProgressBarSkin"
mode="manual"
/>


Expand Down
Expand Up @@ -175,6 +175,7 @@
label="" labelWidth="0" fontSize="0"
trackSkin="de.websector.utils.updater.ui.skins.standard.ProgressBarTrackSkin"
barSkin="de.websector.utils.updater.ui.skins.standard.ProgressBarSkin"
mode="manual"
/>


Expand Down

0 comments on commit 1a05dad

Please sign in to comment.