# Need help clearing the stage

**URL:** <https://forum.kirupa.com/t/need-help-clearing-the-stage/327701>\
**Category:** Uncategorized\
**Created:** [March 21, 2012, 12:05pm UTC](https://forum.kirupa.com/t/need-help-clearing-the-stage/327701 "2012-03-21T12:05:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tzeeth](https://avatars.discourse-cdn.com/v4/letter/t/2bfe46/32.png) [@tzeeth](https://forum.kirupa.com/u/tzeeth)\
**Post date:** [March 21, 2012, 12:05pm UTC](https://forum.kirupa.com/t/need-help-clearing-the-stage/327701/1 "2012-03-21T12:05:05Z")

</div>

Hi there!!!  
I have read some examples of clearing the stage, and have tried a lot of code but they don’t work for me ☹ . This is my code:

```auto

import mx.transitions.Tween;
import mx.transitions.easing.*;

var cities:Array = ["punto01", "punto02", "punto03","punto04"]
Stage.showMenu = false;
fscommand("fullscreen", true);

function mover (targetX, targetY){
currentX = marker_mc._x;
currentY = marker_mc._y;
var xTween:Tween = new Tween(marker_mc, "_x", Strong.easeOut, currentX, targetX, .5, true);
var yTween:Tween = new Tween(marker_mc, "_y", Back.easeOut, currentY, targetY, 1.5, true);
}

for (var i = 0; i<cities.length; i++){
var my_btn = this[cities*+"_btn"];
my_btn.myCity = cities*;
my_btn.onRollOver = function() {
mover( this._x, this._y);
marker_mc.gotoAndStop(this.myCity);
photos_mc.gotoAndStop(this.myCity);
}
} 

```

I need, just clear the stage when 30-40 sec have passed from the onRollOver function.  
Another thing I am trying is to change onRollOver to check instead a mouse click on the button. Could anyone help me? Thanks in advance!
