Click Button and Fly!

How can i make change the First Person or Camera position by clicking a Buttom?

In other words, With Which GUI-JavaScript command can I change my First Person or Camera View position, With a click on a button? I want to Fly from position A to position B

Thank you

Info i have version 2.5 noz 2.6 ok?

if you wanted to move a object from pointA to pointB you might want to try this script:

//second position var position2 : Vector3; var player : Transform; //button position var position : Rect; function OnGUI () { if(GUI.button(rect(position),"name")){ player.transform.position = position2; } }

i think this would work bye the way i have not scripted GUI for a while so i'm not sure that it will work.