Saving in Flash Projector
A very simple question I believe, however, I've looked around and can't find the answer. I'll describe this as simple as I can:
Let's just say in my flash CS4 file, I created a movie clip called "Stoplights." I have placed this movie clip multiple times on the main stage. I can click on the stop light and change the color from green, to yellow, to red. Remember, each of these are a movie clip. Now, I can alter any one of those movie clips, which they are independent of each other. Then I want to be able to save the projector file, so, when I open it later, I can view it exactly as I have left it. At this point, there is nothing else I can alter except for clicking on the stop light movie clip and changing the color. (Each color of the movie clip is a stop frame.)
Sorry for over-explaining my situation. So, how can I do this. Also, it would be nice to create a new projector file every time I hit the "save" button. Thanks.
heinsc
Saving in Flash Projector
Thanks for the info Northcode. So, if I created a save button in flash and used the ShareLocalObject code, it will save and external file somewhere else. Correct? I believe I've found the .sol file in the Macromedia library. So, is there a way for me to use this .sol file to open the projector file at the same frame that it was when I clicked the save button? Lastly, if I used SWF Studio, do I still need to deal with SOLs or does that program use some other code/function? Thanks again.
heinsc
Saving in Flash Projector
Thanks Northcode!!! I've progressed a quite a bit further. But, I have one last question!: With using SOs, there has to be a code for you to save the current frame that you're on. I've already used this:
saving.onRelease = function () {
myData = SharedObject.getLocal("myData")
myData._currentframe.pond = pond;
}
loading.onRelease = function() {
myData = SharedObject.getLocal("myData")
pond = myData._currentframe.pond
}
Saving in Flash Projector
With the code above, I used it with an input text area and it saved and loaded correctly. However, I want to use a similar code to save and load the last frame of the movieclip that I was on when I closed the SWF. Thanks.
heinsc