Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r1097 committed - Only output to screen if it's available...

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r1097 committed - Only output to screen if it's available...


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r1097 committed - Only output to screen if it's available...
  • Date: Fri, 20 Jun 2014 02:29:14 +0000

Revision: 1097
Author:

Date: Fri Jun 20 02:29:01 2014 UTC
Log: Only output to screen if it's available

Check for presence of console and progress
text areas before attempting to use them.


http://code.google.com/p/ndt/source/detail?r=1097

Modified:
/branches/Issue151/flash-client/src/GUI.as

=======================================
--- /branches/Issue151/flash-client/src/GUI.as Fri Mar 21 10:33:50 2014 UTC
+++ /branches/Issue151/flash-client/src/GUI.as Fri Jun 20 02:29:01 2014 UTC
@@ -171,8 +171,10 @@
}

public function updateProgressText(completed:int, total:int):void {
- _progressText.text = "Completed " + completed + " of "
- + total + " tests";
+ if (_progressText) {
+ _progressText.text = "Completed " + completed + " of "
+ + total + " tests";
+ }
}

private function hideInitialScreen():void {
@@ -212,8 +214,10 @@
* Add text to the console while the NDT test is running.
*/
public function addConsoleOutput(text:String):void {
- _consoleText.htmlText += text;
- _consoleText.scrollV++;
+ if (_consoleText) {
+ _consoleText.htmlText += text;
+ _consoleText.scrollV++;
+ }
}

private function hideConsoleScreen():void {
@@ -377,8 +381,10 @@

private function clickRestart(e:MouseEvent):void {
hideResultsScreen();
- _consoleText.text = "";
- this.addChild(_consoleText);
+ if (_consoleText) {
+ _consoleText.text = "";
+ this.addChild(_consoleText);
+ }
_callerObj.startNDTTest();
}



  • [ndt-dev] [ndt] r1097 committed - Only output to screen if it's available..., ndt, 06/20/2014

Archive powered by MHonArc 2.6.16.

Top of Page