- Flash chokes on mx_internal. Need to find a better way to determine screen widht/height from Application as

it is recommended to use FlexGlobals for SDK 4.5.
This commit is contained in:
Richard Alam 2011-07-23 20:22:52 +00:00
parent 9fe1dbb5f7
commit d5b4a7a88f
2 changed files with 8 additions and 6 deletions

View File

@ -28,7 +28,6 @@ $Id: $
<![CDATA[
import com.asfusion.mate.events.Dispatcher;
import mx.core.FlexGlobals;
import mx.core.mx_internal;
import mx.managers.PopUpManager;
import org.bigbluebutton.common.LogUtil;
@ -93,8 +92,10 @@ $Id: $
var point1:Point = new Point();
// Calculate position of TitleWindow in Application's coordinates.
settingsPanel.x = FlexGlobals.topLevelApplication.mx_internal.Application.width/2 - settingsPanel.width/2;
settingsPanel.y = FlexGlobals.topLevelApplication.mx_internal.Application.height/2 - settingsPanel.height/2;
settingsPanel.x = 0;
settingsPanel.y = 0;
// settingsPanel.x = FlexGlobals.topLevelApplication.mx_internal.Application.width/2 - settingsPanel.width/2;
// settingsPanel.y = FlexGlobals.topLevelApplication.mx_internal.Application.height/2 - settingsPanel.height/2;
PersistUserPreferences.saveSettingsVisited();
}

View File

@ -22,9 +22,10 @@
private function showWarning():void{
var userAlert:UserAlert = UserAlert(PopUpManager.createPopUp(this.parent, UserAlert, true));
userAlert.setAlert(warningText, optionalLabel, optionalCallback);
userAlert.x = FlexGlobals.topLevelApplication.mx_internal.Application.width/2 - userAlert.width/2;
userAlert.y = FlexGlobals.topLevelApplication.mx_internal.Application.height/2 - userAlert.height/2;
// userAlert.x = FlexGlobals.topLevelApplication.mx_internal.Application.width/2 - userAlert.width/2;
// userAlert.y = FlexGlobals.topLevelApplication.mx_internal.Application.height/2 - userAlert.height/2;
userAlert.x = 0;
userAlert.y = 0;
}
]]>
</mx:Script>