繁体   English   中英

Flex 4.6缩放事件

[英]Flex 4.6 Zoom Event

我刚刚在Flex 4.6中为移动应用程序启动了一个新项目,需要一些帮助来决定如何进行。

好吧,基本上,该应用程序将显示一个15x15的面板,就像拼字游戏一样。 因此,每个图块的宽度将由取决于设备最大宽度的公式给出,因此每行将具有15个自动调整的图块。

问题是我需要添加一些事件,例如ZOOM,范围从x1到x2,以及MOVE,在ZOOM大于x1的情况下,用户可以拖动板子。

哪个是完成此项目的更好方法?

我有以下代码:

<s:BorderContainer width="100%" height="60%" id="board_holder">
    <s:TileGroup width="100%" requestedColumnCount="15" requestedRowCount="15">
        <s:Rect radiusX="{radio_tile}" radiusY="{radio_tile}" width="{_ancho_tile}" height="{_ancho_tile}">
            <s:fill>
                <s:SolidColor color="#FB2A27" alpha="0.75" />
            </s:fill>
        </s:Rect>

        <s:Rect radiusX="{radio_tile}" radiusY="{radio_tile}" width="{_ancho_tile}" height="{_ancho_tile}">
            <s:fill>
                <s:SolidColor color="#FB2A27" alpha="0.75" />
            </s:fill>
        </s:Rect>

        <s:Rect radiusX="{radio_tile}" radiusY="{radio_tile}" width="{_ancho_tile}" height="{_ancho_tile}">
            <s:fill>
                <s:SolidColor color="#FB2A27" alpha="0.75" />
            </s:fill>
        </s:Rect>


               ....... he there are more tiles till complete the whole 15x15 board tiles

    </s:TileGroup>
</s:BorderContainer>

您可能需要GESTURE_SWIPEGESTURE_ZOOM请参阅Adobe的文档Touch,多点触摸和手势输入

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM