Getting lost with Array's and its functions :S

Ok I really screwed myself now. I have two Arrays, prevArray, and newArray. When I click a button I want newArray[0] to goto prevArray. I am really lost here on this. but let me see if I can do this right

newArray[“Scene1”, “Scene2”, “Scene3”]
now when you click a button I want the last line in newArray to go away, and be placed in prevArray.
so…
newArray[“Scene1”]
prevArray[“Scene3”, "Scene2]

There I think I explainded it right. LoL.
please if someone can help me hahaha.