If anyone could help i would appreciate it so much. Sorry about the long post.
I am need to make a book of short answer questions to save to a usb drive and for multiple users. If you imagine a normal short answer questionnaire with multiple pages and instead of a person filling it out with a pen they are filling it out like an ebook with forms. Ideally it could be played in all systems, but mainly pc. The catch is, there will be different topics and hundreds to choose from so if someone wanted certain topics and not others they would get only those questions. My way of fixing this is to make each page its own swf and load each externally through a host swf and just change the actionscript on each frame to suit the swf that needs to be loaded. I can do this using AS2 and local shared objects, then i can put it into zinc 3.0 trial and it works fine, but obviously as i cant choose the location that the shared objects are stored, it does not work for my purpose. I tried adobe captivate, also cannot be stored locally. I have also got a simple text editor working saving it to swf then putting in zinc and save and load file work (using buttons and another file using a dropdown menu). The problem then is using that swf with the working text editor, and loading it externally into a frame of a main swf file and then using the save and load function does not work.
I have a few Questions about how to fix my problem.
- Does anyone know how to save text in multiple text input boxes into one txt file, or even multiple files, i cant get it to work. I can save and load one text box into one file but if i add more input boxes it doesnt work. Originally i had 1 working with this code, which i got from a tutorial and demo file and changed it to see what i could do.
var myFile = mdm.Application.path+"myinfo.txt";
sendInfo.onRelease = function() {
mdm.FileSystem.saveFile(myFile, thisText.text)};
getInfo.onRelease = function() {
thisText.text = mdm.FileSystem.loadFile(myFile);}
This works fine, but i really need multiple text boxes on a single frame. I added more boxes and code and I tried numerous methods to get 1 button to save and load all textboxes, and also tried multiple text boxes with multiple save and load buttons, but all i ended up with was 1 textbox displaying “undefined”. Is the above code suitable for Zinc 3.0?
-
Is a better way to achieve this through some sort of database where each text field can link to a cell and when loaded each cell will in turn load all the information back into the correct input field.
-
Is it possible to use flush() like with the shared object to automatically save the file or when the user clicks next page or closes the program it will save?
-
Is it possible to put a username and possibly password in the first frame of the flash file so that the text will automatically load as mentioned above without the user having to click load or save.
-
On actionscripting, when i click forward and back on my as3(which i am new to) main swf which loads the data external, the frames seem to keep the movie files there. and load on top of each other, how can i stop this? unload or some other fix?
-
Can someone help me with how to put some actionscript (3) into the first frame to make all the buttons called next goto the next frame and back goto the previous frame, or do they all need to be called seperate instance names? At the moment i have used different instance names on each frame to move to the next frame.
Sorry one last question
- Can the save button or load button function in externally loaded files. For example if i have 2 frames with 2 externally loaded swfs, can i get the load button to load the information in both of those at the same time or will i have to load each time user enters the frame.
I hope this makes sense and i hope it doesnt annoy anyone, i have tried so many things and it can be so stressful. If anyone can help i would be so greatful.