Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87055

Does this work on Windows?

$
0
0

Hi guys.

Can someone test if this works on Windows? Some say they get "white window" where progress bar should appear. Please?

I tested in on Mac CS6 to CC2014 and all look good, Have no idea why PC users get errors

 

buildMainWindow();

 

function buildMainWindow(){

  var mainWin = new Window("palette", "BVH Loader", undefined);

  var myButton = mainWin.add("button", undefined, "Do Progress Bar");

  myButton.onClick = function() {

       showPBWin();

  }

  this.windowRef = mainWin;

  mainWin.show();

}

 

function showPBWin(){

  var found = new Array (100);

  var PBWin = new Window ("palette", "Progress Window", undefined);

  var ProgressBar = PBWin.add("progressbar", undefined, 0, found.length);

  this.windowRef = PBWin;

  PBWin.show();

  doPB(found, ProgressBar);

}

 

 

function doPB(found, ProgressBar){

  for(var i=0; i<found.length; i++){

       ProgressBar.value = i+1;

       $.sleep(10)

  }

}


Viewing all articles
Browse latest Browse all 87055

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>