如何通过单击具有滑动效果的按钮向下展开Flex AIR窗口。当我们将文件从一个位置复制到另一个位置时,类似于查看更多详细信息按钮的内容工作。谢谢提前。
答案 0 :(得分:0)
您可以更改本机窗口大小,并在大小更改时添加调整大小效果。
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" resizeEffect="{resizeEffect}" width="250" height="183">
<fx:Script>
<![CDATA[
protected function expandButton_clickHandler(event:MouseEvent):void
{
nativeWindow.height = //height what ever you like
nativeWindow.width = //width what ever you like
}
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<mx:Resize id="resizeEffect" duration="500" />
</fx:Declarations>