Shared Object - Save In Floppy Disk
As far as i know, shared object is use to store data locally (like cookies) in our machine..
But, i have one BIG question. My boss asked me to create one application using Flash MX that can allow users to store the data locally and in Floppy disk.
The scenario is like this, we got one e-learning project for ministry of education (for Year 2 Students). What we have to do is, to create quiz application which can be viewed through a CD. The student will answer the questions and they have an option whether save their data and answers locally in the machine (where they sit for the quiz) or save all the data and answers in Floppy disk and submit to their teacher.
My BIG problem is..is it Flash give us capability to create an application which can allow us to save our data in Floppy disk? I have solved one part - save locally in the machine using shared object but i have no idea to resolve another option (save in floppy disk). Please HELP ME...
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 04-07-2004, 05:27 AM
View Complete Forum Thread with Replies
Sponsored Links:
Shared Object - Save In Floppy Disk
As far as i know, shared object is use to store data locally (like cookies) in our machine..
But, i have one BIG question. My boss asked me to create one application using Flash MX that can allow users to store the data locally and in Floppy disk.
The scenario is like this, we got one e-learning project for ministry of education (for Year 2 Students). What we have to do is, to create quiz application which can be viewed through a CD. The student will answer the questions and they have an option whether save their data and answers locally in the machine (where they sit for the quiz) or save all the data and answers in Floppy disk and submit to their teacher.
My BIG problem is..is it Flash give us capability to create an application which can allow us to save our data in Floppy disk? I have solved one part - save locally in the machine using shared object but i have no idea to resolve another option (save in floppy disk). Please HELP ME...
View Replies !
View Related
Shared Object - Save In Floppy Disk
As far as i know, shared object is use to store data locally (like cookies) in our machine..
But, i have one BIG question. My boss asked me to create one application using Flash MX that can allow users to store the data locally and in Floppy disk.
The scenario is like this, we got one e-learning project for ministry of education (for Year 2 Students). What we have to do is, to create quiz application which can be viewed through a CD. The student will answer the questions and they have an option whether save their data and answers locally in the machine (where they sit for the quiz) or save all the data and answers in Floppy disk and submit to their teacher.
My BIG problem is..is it Flash give us capability to create an application which can allow us to save our data in Floppy disk? I have solved one part - save locally in the machine using shared object but i have no idea to resolve another option (save in floppy disk). Please HELP ME...
View Replies !
View Related
Read And Write To Floppy Disk
Hi
Is it possible to use Flash to create, write to / overwrite and append a txt.file. I can get it to read in no problem - but unable to create it initially. If this is possible the next problem is saving it to a specific location - ideally a users floopy disk. Obviously this has security implications etc and i suspect it is a no-no, but i need to check first before telling my client that. They do not want a database system to store anything but all of the uses will have their own floppies with their info stored on it - I know - dont ask.
A step further - ideally they actually would want to output/create from flash a word doc or pdf file - again storing info that could be read back in? - have never seen anything like this - is the creation of these document types even feasible from Flash? never mind retreival of the data?
Thanks for any help in advance. Tom
View Replies !
View Related
Shared Object Won't Save
I'm trying to create a simple high score board for my game. I have a shared object named hscores, which holds variables in the form hscores.data.nm1="PlayerName" hscores.data.sc1=2382, and so on down to nm10 and sc10.
All was going well until I introduced this code:
Code:
function hsBoard(nm, sc) {
var newPos = 10;
while (sc>=eval("hscores.data.sc"+newPos)) {
newPos--;
if (newPos == 0) {
break;
}
}
newPos++;
for (i=10; i>newPos; i--) {
var j = eval("hscores.data.nm"+(i-1));
var k = eval("hscores.data.sc"+(i-1));
set("hscores.data.nm"+i, j);
set("hscores.data.sc"+i, k);
}
set("hscores.data.nm"+newPos, nm);
set("hscores.data.sc"+newPos, sc);
hscores.flush();
}
Everything works fine; the high score boards displays correctly, sorting the top 10 scores into descending order.....
But the shared object doesn't save! When I close the game and re-open all of the high scores are re-set to their previous values.
The problem seems to be with the set("hscores.data.nm"+newPos, nm); commands. If I set the values explicitly, for example with:
Code:
hscores.data.nm1="Gary";
hscores.data.sc1=5000;
everything is fine; the SO saves properly. Any ideas whats wrong, or how can my code be re-written without using set().
View Replies !
View Related
Dont Want To Save Shared Object
Hi...
I'm using a shared object to store information about the navigation of an app I'm developing... I want to save data to it only when the user hits save... right now it is saving by itself... is there a way to disable autosave and only save when i run the flush() function?
thanks
View Replies !
View Related
Help How To Save Colours? / Shared Object
Here is the code:
_root.mcColorBar.mcColor02.onPress = function () {
for(i=1;i<=8;i++){
theColor = _root["mcMenu0"+i].mcColor;
theColor._alpha = 100;
theColorIcons = _root.mcBar["mcHighAb0"+i].mcColor;
theColorIcons._alpha = 100;
theUp._alpha = 100;
var colorful = new Color("theColor");
colorful.setRGB(0xFF9900);
var colorHigh = new Color("theUp");
colorHigh.setRGB(0xFF6600);
var colorHigh = new Color("theColorIcons");
colorHigh.setRGB(0xFF6600);
var colorHigh = new Color("_root.mcBar.mcHighAb01.mcColor");
colorHigh.setRGB(0xFF6600);
};
When the button is pressed, how to save the color applied into the movie clips? How to do it with Shared Object?!
I have 8 diferent movies. These movies needs to be loaded with the colors chosen before.
Can someone help me?! I posted this question in several forums. It is being very dificult to find someone who can help me.
Regards,
Diego Luis Oriani
View Replies !
View Related
Shared Object Does Not Save On A Few Machines
Hello,
I have created an application that is run locally. The first time the user logs in they must be connected to the internet. Anytime after if they login and there is no internet connection the log in is based off the values stored in a shared object from the initial login.
This works fine and dandy for most users except 3, who get a message that the shared object doesn't exist everytime. They are using the same version of windows and configurations. I checked that they are allowing stored objects to be saved, does anyone else know what could cause it?
Thanks
View Replies !
View Related
How To Save Color? / Shared Object
Here is the code:
_root.mcColorBar.mcColor02.onPress = function () {
for(i=1;i<=8;i++){
theColor = _root["mcMenu0"+i].mcColor;
theColor._alpha = 100;
theColorIcons = _root.mcBar["mcHighAb0"+i].mcColor;
theColorIcons._alpha = 100;
theUp._alpha = 100;
var colorful = new Color("theColor");
colorful.setRGB(0xFF9900);
var colorHigh = new Color("theUp");
colorHigh.setRGB(0xFF6600);
var colorHigh = new Color("theColorIcons");
colorHigh.setRGB(0xFF6600);
var colorHigh = new Color("_root.mcBar.mcHighAb01.mcColor");
colorHigh.setRGB(0xFF6600);
};
When the button is pressed, how to save the color applied into the movie clips? How to do it with Shared Object?!
Can someone help me?! I posted this question in several forums. It is being very dificult to find someone who can help me.
Regards,
Diego Luis Oriani
View Replies !
View Related
Save And Retrieve Shared Object On Linux
Hi,
I am using flash shared object to save certain user information on the Linux platform and using the same data whenever the same user re-login into the application. I have observed that as the number of users (i.e. shared objects) increase in number (approx 15-20 users) the application is no longer able to retrieve the already saved shared object for that user. However, the same application works perfectly on the Windows platform (I have created atleast 30-40 users on win but application does work fine.)
I am using the following code for the SO save functionality:
Code:
var objRecordSO:SharedObject = SharedObject.getLocal("record", "/");
objRecordSO.data.username = "Komal";
objRecordSO.data.score = 30;
var bSuccess = objRecordSO.flush(1024 * 100);
Please advice.
View Replies !
View Related
Save Movie Clip To Shared Object
my problem seems to be simple but i have no clue how to deal with it.
i have a main movie clip, lets say 'stage_mc'. stage_mc is modified by user by adding other movie clips('childs'). how to save the stage_mc with all the childs to SO. i would like the childs to have positions as user'll place and coloursthat user'll choose(user is allowd to paint the childs clips) .
thanks a lot
View Replies !
View Related
Save And Retrieve Shared Object On Linux
Hi,
I am saving certain user information using flash shared object and using the same data whenever the same user re-login into the application. I have observed that, on the Linux platform, as the number of users (i.e. shared objects) increases (approx 15-20 users) the application is no longer able to retrieve the already saved data of the user. Which means that if the same user logins into the application, the application get closed automatically instead of redirecting him to his page.
However, the same application works perfectly on the Windows platform. I have created atleast 30-40 users on windows but application does work fine.
I am using the following code for the SO save functionality:
Code:
var objRecordSO:SharedObject = SharedObject.getLocal("record", "/");
objRecordSO.data.username = "Komal";
objRecordSO.data.score = 30;
var bSuccess = objRecordSO.flush(1024 * 100);
Can anyone provide me a reliable solution for Linux as well...
View Replies !
View Related
Shared Object - Save Every Variable In A Level
I thought I found a way a long time ago that a person could save every variable present in a level of flash into a shared object without having to specifically define what each variable was and saving it individually. Does anybody know how to do this or have any tutorial links.
Thanks
Jason
starvingeyes.com
View Replies !
View Related
Save Information And Retriving Using Shared Object
i need to save some information in a shared object.
Example : User's id , address and telephone.
I also need to do a login , using the user id as verification, in order to retrieve the datas stored in a shared object.
Can anyone tell me how is it possible to do that ? maybe guide me with
some logics?
cos currently i am having problem as i have a few users, and my shared object stores only 1 user's datas.
pls help~ thanks a lot~
View Replies !
View Related
Shared Object Question - Save Score
Hi ,
I've got a simple game that has the following code on a button that re-enables the game again :
playAgain.label = "Play Again"
playAgain.button.onRelease = function(){
gotoAndPlay("PlayGame")
}
endGameMessage.text = "Thanks for playing.
It took you " + totalTime + " seconds to play the game."
question is....
I want to go about saving the data from +totalTime+ so it is displayed throughout the game..
any advice/help will be great..
thanks in advance
Lel
View Replies !
View Related
Shared Object - Save Every Variable In A Level
I thought I found a way a long time ago that a person could save every variable present in a level of flash into a shared object without having to specifically define what each variable was and saving it individually. Does anybody know how to do this or have any tutorial links.
Thanks
Jason
starvingeyes.com
View Replies !
View Related
Projector Movie Won't Save Shared Object Onto PC?
I've written a flash app that runs as a projector, and saves edited XML data out to a shared object on the local disk. It works great, except on one PC I have it installed on (the most important one...), where it seems to work fine, but doesn't actually save the Shared Object to disk. I have made sure that the flash projector settings are set to accept a file of any size.
I'm not a big Windows user, so I'm wondering if there may be something I'm missing. It saves the file on other machines. Is there a reason a Shared Object file might be deleted when the machine restarts or something?
Thanks in advance!!!
View Replies !
View Related
Save Information And Retriving Using Shared Object
i need to save some information in a shared object.
Example : User's id , address and telephone.
I also need to do a login , using the user id as verification, in order to retrieve the datas stored in a shared object.
Can anyone tell me how is it possible to do that ? maybe guide me with
some logics?
cos currently i am having problem as i have a few users, and my shared object stores only 1 user's datas.
pls help~ thanks a lot~
View Replies !
View Related
Radio/check Button And Shared Object Save
Hello
I've got a monster offline exe application with multiple menu items.
Challenge: Custom Personal Quick Menu
Create a menu page where users can 'check' off the menu links that they most frequently use. These checked links will be 'remembered' via a cookie or shared object and dynamically be called and displayed in a "quick menu". Does that make sense?
If anyone has any suggestions that'd be great. I'm at an absolute loss on where to start and if it's even possible. My actionscripting skill is somewhere down the road from a beginner, but not far
View Replies !
View Related
Help How Can I Save Multiple Variables To Floppy?
Hello everybody!
I need some serious help here...
I'm making an movie that will be used on a school to teach student some stuff. In this movie they have to fill in their name and so the first time they use it. After this they have to answer some questions during the course.
I want to let Flash save this all on a floppy, so they can give this floppy to the teacher to read it out. I know this is possible, but I dunno how.
I'm not an Flash expert, and I don't know anything about PHP & co. But I don't think I need this, because my movie is played from cd-rom, or harddisk...
Please help me!
View Replies !
View Related
Save Instance Of Custom Class With Local Shared Object
Hi there,
I am programming a web based application with Actionscript 2.0 classes for flash 8, and I want to save user data using the local shared object.
As the data is potentially rather complex I would prefer to store it in an instance of a custom class that I then stick in an array property of the local shared object data property.
However, when I try to do this, if I retrieve the stored object it seems to have lost all its instance methods. If I do a for in on it, I can see the private properties to which I have assigned my data, but as they are private I cannot retrieve them.
Does anyone know how I can store an instance of a custom class in a local shared object without it being corrupted in this way?
cheers,
Alex H
View Replies !
View Related
Save To Disk
I am trying to create a button that (on release) will download (save to disk) .jpg images. I know that browsers are currently set to display image type .jpg's not download like zips. Do I need to create a header for the file, so that browsers will not recognize the extension and by default go to 'save to disk'? Or is there a java script that will accomplish this?
I am going live soon with the site so any help would be greatly appreciated
luke
View Replies !
View Related
How Do I Save Something To Disk From Flash.
Hi,
I want to make a Flash Script that allows me to save a few coordontes to a file on disk. I have seen it done with Flash but I couldn't find the functions that allow me to do that.
I have another question I cannot find answer to: how do I drow a line in Flash. More specific: I want to draw a line from the point I pressed the mouse to where I release it. ( or from where I clicked first time to where I clicked the second time).
Can anybody give me a hint !!?
10ks.
View Replies !
View Related
Save To Disk From TextField
i have built a textField which receives input from a localConnection. the content is regularly updated.
i would the users to be able to save the content to disk, as a simple text file with line breaks, and paragraphs, that can be opened on Win and Mac.
is there a way of doing it with actionscript, or would i have to use php or other?
thanks
View Replies !
View Related
Save Loaded JPEGS To Disk ?
Does anybody know if it is possible to have a function that calls a save as dialogue from within flash?
For a CD presentation I want to load some JPEGs dynamically (MX) and when they are clicked on (or a button over or next to) a save as dialogue appears to allow the user to save a copy to their PC.
View Replies !
View Related
Save External File To Disk
I'm creating a flash based CD that has 10 or so images that will be dynamically loaded in the swf movie. What I want to be able to do is give the user the option of saving the image file to their computer.
I'm pretty handy with flash but certainly not an Actionsript guru, so any help would be greatly appreciated.
Thanks,
Aaron
View Replies !
View Related
Save A File To Disk With FLASH MX
I have a variable (e.g msg) and i want to save it to msg.txt.
[ I use the flash(swf) aplication locally not online so i won`t use php ].
The fscommand("exec",....) won`t work with parameters....
[i`ve created a "write.exe" file with VisualC++ wich has 2 parameters in the command line - file & text - and automatically saves the text to file. But flash MX won`t accept file parameters ]
How else does it work???????????
View Replies !
View Related
Save Image From Flash Into Hard Disk?
Hi there,
I have made a Flash 8 movie where there are several small images displayed. I have also converted those into buttons, when clicked, it loads an external image appropriately but bigger size (for example if user clicks on image1, it loads file image1.jpg).
Now I would like to enable users to save that image into their hard disk (after clicking the image, it appears a table to browse to the computer (like you click on a link of a zip file on the internet)
Can you tell me the action script for this???
Many thanks in advance
View Replies !
View Related
Capture Audio With Microphone And Save To Disk
Hello,
I would like to know if there is any way to record audio from user's output? Let's say I capture it using its microphone, and I want to create an audio file with it, or a swf file or whatever file it is. I need to save that audio for further playback. Can someone point me in any direction!? I have been surfing on this topic but I didn't find anything, apparently it can't be done, but I would love otherwise.
Thank you,
JCA
View Replies !
View Related
Save MovieClips As Images On Server Or Disk?
Hi friends,
I have a question, I've been trying to find out a way to save dynamically made movieClips in flash AS3 to a server and external pages in html. The thing is, people are suppose to make their own photos with different objects in flash and then export the photo/movieClip to an other webpage and make it display there. does anybody know how that is working?
/Draco
View Replies !
View Related
Save User`s "info" To Local Disk =Sol File
ok after asking in the forum for help with saving varables to a text file on the users local computer. I was told it cannot be done without the aid of a script or backend system to write the data.
this i thought was my only option for saving the information i needed.
I now want to eat my Hat and words, Because it can be done without the aid of a script or php,asp etc, all one needs is Flash MX and flash player 6 and up. ok enough rambaling lets do this........
SharedObject
Macromedia introduced shared objects with Flash MX. and works with flash player 6 and upwards! you need to find out what player the user has with action script or any other method before invokeing this command.
The shared object gives us the tools for storing actionscript data on the end user`s computer sharedObject supports local and remote, im dealing with local storage here, sharedOject, supports the following datatypes: number,string,boolean,undefined,null,array, and object.
Like cookies, shared objects are used to maintain data persistence. The object data is stored in an .sol file on the user's hard drive in the same directory as the Flash MX player. The files are stored in folders corresponding to the domain that generated the Flash movie.
here is some code i found for creating a two text box imput for name and email storing on a local system. play around with this and you will find you can do everything you require localy, even i may add somethings you shouldent.
on frame one of the movie add this code:
// Action script for sharedobject
// [Action in Frame 1]
if (init == null)
{
init = true;
so = SharedObject.getLocal("smooow.com/sharedObject");
if (so.data.name != null && so.data.email != null)
{
txtName.Text = so.data.name;
txtEmail.Text = so.data.email;
} //
}
ok next on your button called submit add this code to it :
// Action script for button
on (press)
{
if (txtName != null && txtEmail != null)
{
so.data.name = txtName.Text;
so.data.email = txtEmail.Text;
so.flush();
} // end if
}
ok thats all there is two it if you require more help with this do a google for "Sol"+sharedObject
and you will find some tutorials on sharedobjects, i hope this helps all the people like myself that simply want to store there arrays to a local txt like file
smooow
View Replies !
View Related
Shared Objects. How To Undo Shared Object
Hi guys,
Basicaly I created a simple login function by following the shared objects tutorial (http://www.kirupa.com/developer/mx/sharedobjects.htm).
I wanted a button placed on my wlecome screen allowing the user to go back to the creating screen of the shared objects.
So basically another shared object can be made.
Any Ideas?
View Replies !
View Related
Shared Objects - Save Value Of +totalTime+
I've got a simple grab and match game that has three labels : SetUpGame - PlayGame and EndGame which involves grabbing shapes that are floating around a game area and putting them on top of similar shapes. Once all of the shapes have been matched the playhead goes to the endGame frame which displays the value of totalTime.......
EndGame....
playAgain.label = "Play Again"
playAgain.button.onRelease = function(){
gotoAndPlay("PlayGame")
}
endGameMessage.text = "Thanks for playing. It took you " + totalTime + " seconds to play the game."
PlayGame.....
hits = 0;
startTime = getTimer();
totalTime = 0;
for (i=1; i <= shapes; i++){
attachMovie("PuzzlePiece", "p" + i, i + 300, {number: i})
attachMovie("DropZone", "d" + i, i + 150, {_x: i * 38+10,_y: 338, number: i})
}
StartGame........
shapes = 13;
function countHit(){
hits++;
if (hits >= shapes){
totalTime = Math.round((getTimer() - startTime)/1000)
_root.gotoAndPlay("EndGame");
}
}
I would like display the value of totalTime using a shared object, so the value from the previous game is always displayed on the game area.......anyone got any pointers/solutions.
thanks in advance
Lel
View Replies !
View Related
|