HtmlDivInFlex02

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" viewSourceURL="srcview/index.html">
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
import org.pepe.samples.HtmlPanel;
private function popup():void
{
var win:HtmlPanel =
PopUpManager.createPopUp(
this,
HtmlPanel,
true
) as HtmlPanel;
win.title = "Div in Flex Popup";
win.htmlLayerName = application.parameters["htmlLayer"];
PopUpManager.centerPopUp(win);
}
]]>
</mx:Script>
<mx:Button label="doPopup" click="popup()" />
</mx:Application>