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:
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!