[rnbrowse-commits] SF.net SVN: rnbrowse:[153] branches/RNBGUI
Brought to you by:
cjsoftuk
|
From: <cjs...@us...> - 2008-08-02 14:07:24
|
Revision: 153
http://rnbrowse.svn.sourceforge.net/rnbrowse/?rev=153&view=rev
Author: cjsoftuk
Date: 2008-08-02 14:07:19 +0000 (Sat, 02 Aug 2008)
Log Message:
-----------
Fixing styler and slideshow
Modified Paths:
--------------
branches/RNBGUI/.actionScriptProperties
branches/RNBGUI/bin-debug/RNBGUI.swf
branches/RNBGUI/src/RNBGUI.mxml
branches/RNBGUI/src/rnbGui_codebehind.as
branches/RNBGUI/src/rnbMain.as
Added Paths:
-----------
branches/RNBGUI/bin-debug/bright.swf
branches/RNBGUI/bin-debug/simple.swf
Modified: branches/RNBGUI/.actionScriptProperties
===================================================================
--- branches/RNBGUI/.actionScriptProperties 2008-08-02 08:32:45 UTC (rev 152)
+++ branches/RNBGUI/.actionScriptProperties 2008-08-02 14:07:19 UTC (rev 153)
@@ -12,5 +12,8 @@
<application path="RNBGUI.mxml"/>
</applications>
<modules/>
-<buildCSSFiles/>
+<buildCSSFiles>
+<buildCSSFileEntry destPath="bin-debug" sourcePath="src/simple.css"/>
+<buildCSSFileEntry destPath="bin-debug" sourcePath="src/bright.css"/>
+</buildCSSFiles>
</actionScriptProperties>
Property changes on: branches/RNBGUI/bin-debug/bright.swf
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Property changes on: branches/RNBGUI/bin-debug/simple.swf
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: branches/RNBGUI/src/RNBGUI.mxml
===================================================================
--- branches/RNBGUI/src/RNBGUI.mxml 2008-08-02 08:32:45 UTC (rev 152)
+++ branches/RNBGUI/src/RNBGUI.mxml 2008-08-02 14:07:19 UTC (rev 153)
@@ -114,7 +114,7 @@
// TitleWindow container can return data to the main application.
}
- private function showWindow():void {
+ rnb4_gui function showWindow():void {
rnb4_gui::loginwin=loginwindow(PopUpManager.createPopUp( this, loginwindow , true));
PopUpManager.centerPopUp(rnb4_gui::loginwin);
rnb4_gui::loginwin["buttonLogin"].addEventListener("click", doLogin);
@@ -186,18 +186,18 @@
private function stylerApply():void {
try {
if (themecolorradio.selected==true){
- mx.styles.StyleManager.unloadStyleDeclarations("bright.css");
- mx.styles.StyleManager.unloadStyleDeclarations("simple.css");
+ mx.styles.StyleManager.unloadStyleDeclarations("bright.swf");
+ mx.styles.StyleManager.unloadStyleDeclarations("simple.swf");
resetTheme();
updateTheme();
}else if(this.themeradio.selected==true){
- mx.styles.StyleManager.unloadStyleDeclarations("bright.css");
- mx.styles.StyleManager.unloadStyleDeclarations("simple.css");
+ mx.styles.StyleManager.unloadStyleDeclarations("bright.swf");
+ mx.styles.StyleManager.unloadStyleDeclarations("simple.swf");
resetTheme();
- mx.styles.StyleManager.loadStyleDeclarations(themecombobox.text + ".css");
+ mx.styles.StyleManager.loadStyleDeclarations(themecombobox.text + ".swf");
}else{
- mx.styles.StyleManager.unloadStyleDeclarations("bright.css");
- mx.styles.StyleManager.unloadStyleDeclarations("simple.css");
+ mx.styles.StyleManager.unloadStyleDeclarations("bright.swf");
+ mx.styles.StyleManager.unloadStyleDeclarations("simple.swf");
resetTheme();
}
mx.controls.Alert.show('Save Succeeded', 'Saved', 4, this, null, this.information, 4);
Modified: branches/RNBGUI/src/rnbGui_codebehind.as
===================================================================
--- branches/RNBGUI/src/rnbGui_codebehind.as 2008-08-02 08:32:45 UTC (rev 152)
+++ branches/RNBGUI/src/rnbGui_codebehind.as 2008-08-02 14:07:19 UTC (rev 153)
@@ -119,7 +119,7 @@
{
ssTimer.start();
ssTimer.addEventListener(TimerEvent.TIMER,ssOnTimer);
- preloadNext();
+ initSlideshowPic(slideShowIndex+1);
}
rnb4_gui function ssNext():void
@@ -150,8 +150,8 @@
rnb4_gui function ssOnTimer(te:TimerEvent):void
{
timedOut=true;
+ ssTimer.stop();
if(loadedImage) showImage();
- ssTimer.stop();
}
rnb4_gui function showImage():void
@@ -223,12 +223,23 @@
if(pictureLoader!=null) pictureLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, loaderDoneB);
if(pictureLoader!=null) pictureLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, loaderDone);
pictureLoader = new Loader();
- pictureLoader.load(new URLRequest(rnb4_api::DownloadURL(slideShow[slideShowIndex])));
+ pictureLoader.load(new URLRequest(rnb4_api::DownloadURL(slideShow[index])));
pictureLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderDoneB);
pictureLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loaderProgress);
preloadBar.source=pictureLoader;
}
+rnb4_gui function initSlideshowPic(index:int):void
+{
+ if(pictureLoader!=null) pictureLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, loaderDoneB);
+ if(pictureLoader!=null) pictureLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, loaderDone);
+ pictureLoader = new Loader();
+ pictureLoader.load(new URLRequest(rnb4_api::DownloadURL(slideShow[index])));
+ pictureLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderDone);
+ pictureLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loaderProgress);
+ preloadBar.source=pictureLoader;
+}
+
rnb4_gui function preloadNext():void
{
//preload.visible=false;
Modified: branches/RNBGUI/src/rnbMain.as
===================================================================
--- branches/RNBGUI/src/rnbMain.as 2008-08-02 08:32:45 UTC (rev 152)
+++ branches/RNBGUI/src/rnbMain.as 2008-08-02 14:07:19 UTC (rev 153)
@@ -198,11 +198,16 @@
showWindow();
}
+rnb4_api function rnaapiLoginFailDialogCB(event:CloseEvent):void
+{
+ rnb4_gui::showWindow();
+}
+
rnb4_api function rnaapiLoginCB(event:Event):void
{
rnb4_api::lastData = rnb4_api::RQ.data;
if(rnb4_api::lastData.substr(0,3)=="-ER"){
- Alert.show("Error logging on to the network!\r\nPlease check your username and password.");
+ Alert.show("Error logging on to the network!\r\nPlease check your username and password.","Logon error",4,null,rnaapiLoginFailDialogCB);
}else{
rnb4_api::SID = rnb4_api::lastData.substr(4);
rnb4_api::loggedOut=false;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|