Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
New Developer
Posts: 56
Registered: ‎03-31-2011
My Device: Soon PlayBook
My Carrier: Turkcell

Application denied, gestures not working?

Hello,

 

My app is denied. The deny cause is the GESTURES were not working.

 

Thought that they werent testing app functionalities but, anyway.

 

I double-checked my application and couldnt find anything that disables gestures.

 

Will post some snippets, can you help me?

 

 

<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
		xmlns:s="library://ns.adobe.com/flex/spark"
		actionBarVisible="false" fontSize="17" gestureTwoFingerTap="fingertap();"
		overlayControls="false" tabBarVisible="true" title="x"
		creationComplete= "view1_viewActivateHandler(event)">

protected function swipeHandler(event:TransformGestureEvent):void {
				if (event.offsetX == 1) {
					addText( "+" )
				}
				else if (event.offsetX == -1) {
					addText( "-" )
				}
				else if (event.offsetY == 1) {
					addText( "/" )
				}
				else if (event.offsetY == -1) {
					addText( "*" )
				}
			}

private function addText( str:String ):void
			{ 
				earea.text += str;
			}
	
protected function view1_viewActivateHandler(event:FlexEvent):void
			{
				earea.addEventListener(TransformGestureEvent.GESTURE_SWIPE,swipeHandler);
				this.addEventListener(TransformGestureEvent.GESTURE_SWIPE,swipeHandler);
			}

 

 

Hope that I could explain it.

 

My aim is gesture right is adding pluses to the text etc. 

 

Thanks