# Gestureworks need help

**URL:** https://forum.kirupa.com/t/gestureworks-need-help/322399
**Category:** Uncategorized
**Created:** [May 20, 2011, 3:05am UTC](https://forum.kirupa.com/t/gestureworks-need-help/322399 "2011-05-20T03:05:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ilikebigbutts](https://avatars.discourse-cdn.com/v4/letter/i/dfb087/32.png) [@ilikebigbutts](https://forum.kirupa.com/u/ilikebigbutts)
#### Post date: [May 20, 2011, 3:05am UTC](https://forum.kirupa.com/t/gestureworks-need-help/322399/1 "2011-05-20T03:05:46Z")

</div>

hello im a AS2 migrant, AS3 is still pretty new to me.  
i tried gesture works, i installed the file and then points the SWC,

i have a simple box named square\_mc on the stage and i want to do a zoom and rotate gestures on it

heres the code:

```auto

 import id.core.Application;
    import id.core.TouchSprite;
    import gl.events.TouchEvent;
    import gl.events.GestureEvent;
    
    
        function startDrag_Press2(e:TouchEvent):void {
            e.target.startTouchDrag(-1);
        }
        function stopDrag_Release2(e:TouchEvent):void {
            e.target.stopTouchDrag(-1);
        }
        
        function gestureRotateHandler2(e:GestureEvent):void {
            e.target.rotation += e.value;
        }
        
        function gestureScaleHandler2(e:GestureEvent):void {
            e.target.scaleX += e.value;
            e.target.scaleY += e.value;
        }
                
                square_mc.addEventListener(TouchEvent.TOUCH_DOWN, startDrag_Press2);
                square_mc.addEventListener(TouchEvent.TOUCH_UP, stopDrag_Release2);
                square_mc.addEventListener(GestureEvent.GESTURE_ROTATE, gestureRotateHandler2);
                square_mc.addEventListener(GestureEvent.GESTURE_SCALE, gestureScaleHandler2);

```

and here are the errors:

Scene 1, Layer ‘Layer 1’, Frame 1, Line 15 1119: Access of possibly undefined property value through a reference with static type flash.events:GestureEvent.  
Scene 1, Layer ‘Layer 1’, Frame 1, Line 19 1119: Access of possibly undefined property value through a reference with static type flash.events:GestureEvent.  
Scene 1, Layer ‘Layer 1’, Frame 1, Line 20 1119: Access of possibly undefined property value through a reference with static type flash.events:GestureEvent.  
Scene 1, Layer ‘Layer 1’, Frame 1, Line 23 1119: Access of possibly undefined property TOUCH\_DOWN through a reference with static type Class.  
Scene 1, Layer ‘Layer 1’, Frame 1, Line 24 1119: Access of possibly undefined property TOUCH\_UP through a reference with static type Class.  
Scene 1, Layer ‘Layer 1’, Frame 1, Line 25 1119: Access of possibly undefined property GESTURE\_ROTATE through a reference with static type Class.  
Scene 1, Layer ‘Layer 1’, Frame 1, Line 26 1119: Access of possibly undefined property GESTURE\_SCALE through a reference with static type Class.

so where did i screwed up?
