blob: 2907b5cb185ac9cfc2e0cf89973e73a2c1f48079 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<mx:Application backgroundColor="0xFFFFFF" backgroundImage="" xmlns:mx="http://www.adobe.com/2006/mxml" width="800" height="700"
xmlns:comps="comps.*" >
<mx:Style source="Assets/myStyles.css" />
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
import comps.myTitleWindow;
import mx.controls.Button;
import mx.containers.Panel;
import mx.core.IFlexDisplayObject;
import mx.events.FlexMouseEvent;
public var iPopUp:IFlexDisplayObject;
public var iPanel:Panel;
public function openWindow(modalSetting:Boolean):void
{
iPopUp = PopUpManager.createPopUp(this, comps.myTitleWindow, modalSetting, "popup");
}
public function openWindow2(modalSetting:Boolean):void
{
iPopUp = PopUpManager.createPopUp(this, comps.myTitleWindowMXML, modalSetting, "popup");
}
public function closeWindow(popUp:IFlexDisplayObject):void
{
PopUpManager.removePopUp(popUp);
}
public function openWindow3(modalSetting:Boolean):void
{
iPopUp = PopUpManager.createPopUp(this, comps.MyCanvas, modalSetting, "popup");
}
public function openWindow4(modalSetting:Boolean):void
{
iPopUp = PopUpManager.createPopUp(this, comps.MyCanvasMXML, modalSetting, "popup");
}
public function openWindow5(modalSetting:Boolean):void
{
iPopUp = PopUpManager.createPopUp(this, comps.MyCanvasMXML2, modalSetting, "popup");
}
public function openWindow6(modalSetting:Boolean):void
{
iPopUp = PopUpManager.createPopUp(myPanel, comps.myTitleWindow, modalSetting, "popup");
}
public function centerMyPopUp():void
{
PopUpManager.centerPopUp(iPopUp);
}
public function addWindow(modalSetting:Boolean):void
{
iPanel = new Panel();
iPanel.title = "My Test PopUp: Modal Setting:" + String(modalSetting);
iPanel.width=220;
iPanel.height=150;
var btn2:Button = new Button();
btn2.label="close";
iPanel.addChild(btn2);
PopUpManager.addPopUp(iPanel, this , modalSetting);
}
]]>
</mx:Script>
<mx:TextInput id="ta" />
<mx:Panel id="myPanel" />
</mx:Application>