如何在单击具有向下滑动效果的按钮时向下扩展 Flex AIR 窗口。当我们将文件从一个位置复制到另一个位置时,类似于查看更多详细信息按钮的功能。提前致谢。
问问题
243 次
1 回答
0
You can change Native Window size and add resize effect when size changes.
<?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>
于 2012-06-03T00:02:12.833 回答