onClipEvent (load) { var Cookie = SharedObject.getLocal("saved_arc"); if (Cookie.data.saved_arc == 1) { this._x = 482; } if (Cookie.data.saved_arc == 2) { this._x = 248; } if (Cookie.data.saved_arc == 3) { this._x = -10; } if (Cookie.data.saved_arc == 4) { this._x = -240; } if (Cookie.data.saved_arc == 5) { this._x = -480; } if (Cookie.data.saved_arc == undefined) { this._x = -10; } } onClipEvent (mouseDown) { if (_global.Cookie.data.mouse_down != 0) { this.startDrag(false, -480, this._y, 482, this._y); slideto1 = false; slideto2 = false; slideto3 = false; slideto4 = false; slideto5 = false; } } onClipEvent (mouseUp) { this.stopDrag(); if (page == 1) { if (this._x>=400 & this._x<481) { slideto1 = true; slideto2 = false; slideto3 = false; slideto4 = false; slideto5 = false; Cookie.data.saved_arc = 1; Cookie.flush(); } if (this._x<400) { slideto1 = false; slideto2 = true; slideto3 = false; slideto4 = false; slideto5 = false; Cookie.data.saved_arc = 2; Cookie.flush(); } } if (page == 2) { if (this._x>=190) { if (this._x<=270) { slideto1 = false; slideto2 = true; slideto3 = false; slideto4 = false; slideto5 = false; Cookie.data.saved_arc = 2; Cookie.flush(); } else { slideto1 = true; slideto2 = false; slideto3 = false; slideto4 = false; slideto5 = false; Cookie.data.saved_arc = 1; Cookie.flush(); } } else { slideto1 = false; slideto2 = false; slideto3 = true; slideto4 = false; slideto5 = false; Cookie.data.saved_arc = 3; Cookie.flush(); } } if (page == 3) { if (this._x<=68) { if (this._x>=-60) { slideto1 = false; slideto2 = false; slideto3 = true; slideto4 = false; slideto5 = false; Cookie.data.saved_arc = 3; Cookie.flush(); } else { slideto1 = false; slideto2 = false; slideto3 = false; slideto4 = true; slideto5 = false; Cookie.data.saved_arc = 4; Cookie.flush(); } } else { slideto1 = false; slideto2 = true; slideto3 = false; slideto4 = false; slideto5 = false; Cookie.data.saved_arc = 2; Cookie.flush(); } } if (page == 4) { if (this._x<=-180) { if (this._x>=-270) { slideto1 = false; slideto2 = false; slideto3 = false; slideto4 = true; slideto5 = false; Cookie.data.saved_arc = 4; Cookie.flush(); } else { slideto1 = false; slideto2 = false; slideto3 = false; slideto4 = false; slideto5 = true; Cookie.data.saved_arc = 5; Cookie.flush(); } } else { slideto1 = false; slideto2 = false; slideto3 = true; slideto4 = false; slideto5 = false; Cookie.data.saved_arc = 3; Cookie.flush(); } } if (page == 5) { if (this._x<=-440) { if (this._x>=-530) { slideto1 = false; slideto2 = false; slideto3 = false; slideto4 = false; slideto5 = true; Cookie.data.saved_arc = 5; Cookie.flush(); } else { slideto1 = false; slideto2 = false; slideto3 = false; slideto4 = false; slideto5 = false; } } else { slideto1 = false; slideto2 = false; slideto3 = false; slideto4 = true; slideto5 = false; Cookie.data.saved_arc = 4; Cookie.flush(); } } } onClipEvent (enterFrame) { _root.bar.scroller._x = this._x/(-6)+80; this._parent.wallpaper._x = this._x/4-120; if (this._x>460) { page = 1; } if (this._x<260 && this._x>210) { page = 2; } if (this._x<30 && this._x>-30) { page = 3; } if (this._x<-200 && this._x>-260) { page = 4; } if (this._x<-460 && this._x>-500) { page = 5; } if (slideto1) { if (this._x<482) { slidespeed = 482-this._x; this._x = this._x+slidespeed/2; if (this._x>482) { this._x = 482; slideto1 = false; } } } if (slideto2) { if (this._x<247) { slidespeed = 248-this._x; this._x = this._x+slidespeed/2; if (this._x>248) { this._x = 248; slideto2 = false; } } if (this._x>247) { slidespeed = this._x-248; this._x = this._x-slidespeed/2; if (this._x<248) { this._x = 248; slideto2 = false; } } } if (slideto3) { if (this._x>-10) { slidespeed = 10+this._x; this._x = this._x-slidespeed/2; if (this._x<-10) { this._x = -10; slideto3 = false; } } if (this._x<-10) { slidespeed = -10-this._x; this._x = this._x+slidespeed/2; if (this._x>-10) { this._x = -0; slideto3 = false; } } } if (slideto4) { if (this._x>-240) { slidespeed = this._x+240; this._x = this._x-slidespeed/2; if (this._x<-240) { this._x = -240; slideto4 = false; } } if (this._x<-240) { slidespeed = -240-this._x; this._x = this._x+slidespeed/2; if (this._x>-240) { this._x = -240; slideto4 = false; } } } if (slideto5) { if (this._x>-480) { slidespeed = this._x+480; this._x = this._x-slidespeed/2; if (this._x<-480) { this._x = -480; slideto5 = false; } } if (this._x<-480) { slidespeed = -480-this._x; this._x = this._x+slidespeed/2; if (this._x>-480) { this._x = -480; slideto5 = false; } } } }