| Previous | Next | |
STF.getMonitorNumber() : NumberA number.; ; 1 = primary monitor; 2 = secondary monitor.
Method; Returns the monitor number on which the SWF is being played. Supports one or two monitor configurations.
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();| Questions or Feedback? | Previous | Next |