一个小实验
Test.mxml
透明的按钮。
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="147" height="134" showFlexChrome="false">
<mx:Script>
<![CDATA[
import mx.core.Window;
public var varWindow : NewWindows = new NewWindows;
public function appNewWindow():void
{
varWindow.open(true);
}
]]>
</mx:Script>
<mx:Button x="10" y="10" label="Open" width="101" height="98" id="Open" mouseDown="this.nativeWindow.startMove()" rightClick="appNewWindow()"/>
</mx:WindowedApplication>
xml配置文件自己改(共三处)。
NewWindows.mxml
<?xml version="1.0" encoding="utf-8"?> <mx:Window xmlns:mx="http://www.adobe.com/2006/mxml" width="1280" height="800" layout="absolute" creationComplete="stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE"> <mx:Panel width="250" height="200" layout="absolute" x="72" y="40" mouseDown="Hello.startDrag()" mouseUp="Hello.stopDrag()" id="Hello" title="Hello"> </mx:Panel> </mx:Window>


浙公网安备 33010602011771号