In AS3, I go to a scene like this: gotoAndStop(frame, scene)
, but when I go to the same scene later on I want all the changes I made when I went there first to be undone. How can I do this? I thought I could maybe open a copy of the scene, but how should I do that?
Edit I guess that wasn't really clear, so I'll try to explain it some more. Basically, the scene contains symbols which are exported for Actionscript, and everytime the scene is played, I want the code for that symbol to run. This is the class which is linked to those symbols:
package level{
public class Block(){
public function Block(){
Mission.blockArray.push(this); //Adds itself to a static array
}
}
}
So, everytime the scene is loaded, I want every block to be added to the array. How should I do this?