[英]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_SWIPE
和GESTURE_ZOOM
請參閱Adobe的文檔Touch,多點觸摸和手勢輸入
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.