stop(); var my_so:SharedObject = SharedObject.getLocal("ball6"); if (my_so.data.flag == undefined) { this.gotoAndPlay(2); } my_so.data.flag = 1;