1180: Call to a possibly undefined method Con2
import com.greensock.*;
import com.greensock.easing.*;
Multitouch.inputMode = MultitouchInputMode.GESTURE;
var bigCon2:Sprite = new Sprite();
stage.addChild(bigCon2);
var ccon2:MovieClip = new Con2();
bigCon2.addChild(ccon2)
bigCon2.x=0
bigCon2.y=0
stage.addEventListener(TransformGestureEvent.GESTURE_SWIPE , onSwipe2);
function onSwipe2 (e:TransformGestureEvent):void{
if (e.offsetY == 1) {
//User swiped towards bottom
TweenMax.to(bigCon2, 1, { y:bigCon2.y+500, ease:Sine.easeOut});
}
if (e.offsetY == -1) {
//User swiped towards top
TweenMax.to(bigCon2, 1, { y:bigCon2.y-500, ease:Sine.easeOut});
}
}
im not sure why im getting this error.. it worked well for my other script though..
