//actions for the main timeline stageWidth = "550"; stageHeight = "400"; stop(); //actions for the active ball - sound on (release) { one = new Sound(); two = new Sound(); three = new Sound(); one.attachSound("one"); two.attachSound("two"); three.attachSound("three"); one.start(0,0); two.start(0,0); three.start(0,0); } //actions for the active ball - timeline - frame 1 /:min_y = _height/2; /:max_y = (/:stageHeight/2)-(_height*.46); startDrag("", true, _width/2, /:min_y, /:stageWidth-(_width/2), /:max_y); x_limit = "5"; old_y = _y; old_x = _x; //actions for the active ball - timeline - frame 2 if (Number(_y)>Number((/:max_y-1)) and ((Number(old_y)<>Number(_y)) or (Number(_x-old_x)>Number(x_limit)) or (Number(_x-old_x)