Move to X and Y?

Hi all,

I am wondering if there is a way to make the stage move to specific coordinates on the release of a button. Here is an example:

The stage is 400 x 400 with a graphic that overlays by 200 on each side (meaning the graphic is 600 x 600) - is there a way to have a button clicked, and then slide the graphic or stage to a point that was previously unseen?

It is like tweening the graphic so that it becomes visible, but with the application I am looking to build, tweening for every movement would be beyond tedious.

Any help?

Hmm…you cant move the stage. Why dont you just move your 600x600 graphic?

on(release){
_root._x = ???
_root._y = ???
}

[quote=bataglia;2349497]nick…with this action you cannot move the stage…in fact you can’t move the stage with any action you want, this is very clear. also you did not define what object will move these actions… a simple example is to move an object from the stage…

my_btn.onPress = function() {
my_mc._x = 10;
my_mc._y = 10;
}[/quote]

open an empty flash file, draw something on the stage, and copy this code

onMouseDown = function(){
_root._x += 10
}

it move the stage

[quote=nick P;2349755]open an empty flash file, draw something on the stage, and copy this code

onMouseDown = function(){
_root._x += 10
}

it move the stage[/quote]

it can’t be true… it is! :stare:

dont woory, this happens to me more than id like to admit

Thanks so much everyone! Great starting point for me. I appreciate the help.