| Previous | Next |
STF.getMonitorNumber(); DEPRECIATED - Replaced by STF.getMonitorNumber().
Availability
| Support | PC | Mac | Package |
|---|---|---|---|
| ActionScript 3.0 |
3.9.2 |
3.9.2 |
stm.screentime.STF |
| ActionScript 2.0 |
3.2 |
3.2 |
global |
  * Add the Screentime screensaver component to your Flash FLA or Flex project before using Screentime classes.
Usage
STF.getMonitorNumber() : Number
Parameters
None.
Returns
A number. 1 = primary monitor; 2 = secondary monitor.
Description
Method; Returns the monitor number on which the SWF is being played. Supports one or two monitor configurations.
ActionScript 3.0 Example:
The following sample determines whether the SWF has been loaded on the primary or secondary monitor and loads the approriate content.
import stm.screentime.STF;
function onGetMonitorNumberReturn(monitorNumber:Number) {
if (monitorNumber == 2) {
saver_mc.loadMovie("seconday_monitor.swf");
} else {
saver_mc.loadMovie("primary_monitor.swf");
}
}
STF.registerCallBack("getMonitorNumber", onGetMonitorNumberReturn, this);
STF.getMonitorNumber();
ActionScript 2.0 Example:
The following sample determines whether the SWF has been loaded on the primary or secondary monitor and loads the approriate content.
function onGetMonitorNumberReturn(monitorNumber:Number) {
if (monitorNumber == 2) {
saver_mc.loadMovie("seconday_monitor.swf");
} else {
saver_mc.loadMovie("primary_monitor.swf");
}
}
STF.registerCallBack("getMonitorNumber", onGetMonitorNumberReturn, this);
STF.getMonitorNumber();
See Also
 
| Questions or Feedback? | Previous | Next |
