ActionScript 3.0 :: SharedObject Not Saving Data?

Aug 29, 2009

I'm working with AS3 with timeline code. I would like to save date and time a user took a quiz. This information will help check when a user took a quiz. I can see the date and time as I want, but it isn't saved. SharedObject is not saving date and time. Here is my code. How can I do this?

var mySharedObject:SharedObject = SharedObject.getLocal("sampleCode", "/");
var today_date:Date = new Date();var thismonth:uint = today_date.getMonth();var thishour:uint = today_date.getHours();var thisminute:uint =

[Code].....

View 1 Replies


Similar Posts:


ActionScript 3.0 :: SharedObject Not Saving Data

Aug 30, 2009

I'm working with AS3 with timeline code. I would like to save date and time a user took a quiz. This information will help check when a user took a quiz. I can see the date and time as I want, but it isn't saved.[code]...

View 1 Replies

ActionScript 2.0 :: SharedObject Not Saving?

Jan 21, 2007

got my code working, and all information i enter in to my sharedObjects is working correctly as it should but isn't saving so when I close and then re-open the flash file the data isn't there? Admittedly I'm new to sharedObjects I'm using the [.data.] when entering info and then [.flush()] at the end of the function - is there anything I've missed?

View 5 Replies

ActionScript 3.0 :: Stopping SharedObject From Saving?

May 25, 2010

Is there a way to stop SharedObject from saving automatically when closing the window?

I'd like to have it only save when clicking a button.

View 3 Replies

Php :: Flash - Saving Variable Imported From SQL Using PHP Into SharedObject?

Feb 14, 2010

I am creating a game which uses the sharedObject to save each players progress locally. It also connects to a central database to create an online scoreboard. When a user inserts a score for the first time a unique ID is sent out of the database to the swf and saved as part of the sharedObject data.Absolutely everything works and the ID is saved to the sharedObject, however when the swf is restarted the ID does not load (even though the other variables saved in the sharedObject do load).I think it may be to do with the way it is formatted, perhaps to do with the XML but I'm not sure.

FLASH CODE
function saveGame(currID:Number) {
gameInfo.data["playername"+currID] = playername;

[code].....

View 2 Replies

ActionScript 2.0 :: Saving A Numeric Array To A SharedObject?

Apr 8, 2010

I'm saving several arrays into a SharedObject and I'm able to read them back fine from the SharedObject when the movie loads. However, one of these arrays contains numbers instead of strings, and the contents of this numeric array show up as 'undefined' when read back from the SharedObject.

View 0 Replies

Flash :: Saving Bytecode Of A Class (to SharedObject Or Database)

Mar 11, 2011

NOTE: I want to save the actual bytecode for the AS3 class, NOT an instance of it! A class is being loaded in externally and extracted via a URLLoader and then Loader.loadBytes. A single Class is then extracted out of that Application Domain and used in the project. Now, rather than saving the entire Loader (either via SharedObject or other means of storage) is it possible to "extract out" the bytecode of the needed class and all dependencies, which can then be "injected" back into an empty shell or something to be reused when needed?

View 2 Replies

ActionScript 2.0 :: MovieClip Table - Saving Variable With SharedObject

Jun 24, 2011

I am using a movieclip "table" that is attached on the enter frame event at the main scene. I am trying to save variable "money" and I use this code inside the movieclip, when I test the movie it shows me money1 as undefined and I cant find why! I have used _root. and doesn't work.

PHP Code:
var svar = sharedobject.getLocal("MY VAR");
svar.data.moneynew = money;
svar.flush();
money1=svar.data.moneynew;

View 1 Replies

Flex :: Upload Image Then Share Without Saving The File Using SharedObject Or Anything?

Jun 10, 2011

I'm currently working on a chat with uploading an image and sharing it. The problem is I can upload and display the image but I can't share it to the other side. Here is some code:

[Code]...

View 1 Replies

Data Integration :: Saving Data To A Local XML File?

Aug 22, 2006

I am seeing repeated comments on this discussion forum that it's not possible to save data from Flash into a locally stored XML file . . . but there must be a way to do this. Why is you can read data from a locally stored XML file but not update or add data to it. how absurd a design would that be, it simply wouldn't be logical!

View 8 Replies

ActionScript 2.0 :: Saving Data And Loading Data From A .txt File?

Sep 24, 2006

I have read through Shared Objects but i couldn't get it work...

I just have to save my data, maybe array into .txt file and later on
retrieve from the same .txt file...

Anyone here have an example or some source code so i can have reference on it?

View 6 Replies

Flash :: Sharedobject Don't Remember Data?

Sep 27, 2011

I have this code for sharedobject:

var mySharedObject = SharedObject.getLocal("republicofcode");
mySharedObject.data.clientID = my_vars.clientID;
mySharedObject.data.question = my_vars.question;

[code].....

View 1 Replies

IDE :: Can SharedObject.data.thing Be An Array

Nov 20, 2009

if I need to make several entries, or can I put an array into SharedObject.data.

View 1 Replies

ActionScript 3.0 :: SharedObject Data After Windows Shutdown?

Jul 3, 2009

Will sharedobject data be gone after windows shutdown?

View 2 Replies

Media Server :: SharedObject - Consuming Data?

Aug 21, 2009

Is it possible to set just one property of a remote SharedObject to clear itself?  I understand that calling "clear" on an RSO will cause ALL properties to fire the "clear" event and clear out; however, what I want to do is clear out the data in a specific property so that the "clear" event/message is fired (and not the "change" one since I already have some actions in that).
 
I suppose I could just set the property to an empty string and put guard code inside my handling of the "change" event/message, but, I'd rather not do that.

View 7 Replies

ActionScript 3.0 :: SharedObject Data--> Where Is It On The User's Harddrive

Oct 26, 2010

I've looked on Adobe's Flash Player guide and in the official docs, but it's not mentioned. I'm creating a game that saves your progress to the local drive using SharedObjects and want to reassure users about what's going on

View 3 Replies

Data Integration :: Creating And Saving Data

Aug 20, 2011

I'd like to know if there's a way to take data entered into a field in flash, save it, and call it later via an object.I don't want anyone to walk me through it if there is, that's not what I'm asking. I'm just asking what I need to know in order to do this. I'd like to build a certain flash app that takes information (such as a name, paragraph, and/or sentence) saves it, and can then be recalled when a user clicks a button... even if the user has closed out the application.I'm still relatively new to flash, I know enough to get by on basic projects, but I want to expand my knowledge so I don't end up stuck in a beginners rut.Would this require using PHP and Flash? Or can it be done entirely in flash via exporting data to a designated external file?

View 2 Replies

Data Integration :: SharedObject Saved On Hard-drive

Oct 22, 2006

I've created a SharedObject on My Computer, saved it in a movie, and ran the movie again and data came up well enough.My problem is, I want to delete the SharedObject saved on my hard-drive. I currenly have Flash 8, and Flash MX 2004 uses the .sol extention, but I can't find the SharedObject anywhere on my computer. With the release of Flash 8, did they change the SharedObject file extention? Is there a way to set up the path to which SharedObjects should be saved in your script file? The second parameter of the getLocal() method, stores a URL. Is that the same as a directory on your computer?

View 3 Replies

ActionScript 3.0 :: Make A Dynamic SharedObject Data Property?

Oct 13, 2011

I cannot find and information on how to make a dynamic sharedObject data property.
 
Simplified Code for what I need/want to do
  
var iData:SharedObject = SharedObject.getLocal(userInfo);
var dataArray:Array = ["a","b","c"];
var property:String = "prop"
iData.data.this[property] = dataArray;
 
That is what i was thinking.
 
It doesn't matter how the property is created, just that it needs to be done on the fly.

View 2 Replies

Media Server :: Cannot View SharedObject Data In Admin Console

Mar 2, 2010

I'm attempting to view Shared Object data in my FMS Administration Console, but I consistently get the error:Object encoding error; terminating connection.I'm using Flex 3 with FMS 3.5, I'm positive that everything is using AMF3. The Shared Objects do seem to work. I can connect to the shared object through another instance of the app and pull saved data but they are not inspectable in the administration console. Also,very often when a new instance connects to the server I get a RangeError and all of my Flash Player instances crash.

View 9 Replies

Java :: Send Data From Red5 To Flex Using Remote Sharedobject

Jul 3, 2011

I want to send data from Red5 to Flex using remote sharedobject.

my Red5 code :

this.addScheduledJob(5000,new IScheduledJob() {
@Override
public void execute(ISchedulingService jobs0)

[Code].....

it doesn't shows error or warning, but my flex function doesn't work, even Alert in my function not working.

View 2 Replies

Media Server :: SharedObject.NoAccess Error When Trying To SharedObject.getRemote?

Feb 18, 2012

I've installed developer version of Flash Media Server 4.5 and trying to get remote object, but no matter how I call my object all i get is this error .I've rad configuration guide and it told me that I should set StorageDir for shared objects, enable RPC (<RPC enabled="true">) and allow shared object (<Allow>users</Allow> in <RPC> - <SharedObject> tags)

View 1 Replies

Media Server :: Create A FMS Application That Is Broadcasting Some Data Across Connected Clients Using SharedObject

Feb 8, 2011

I'm trying to create a FMS application that is broadcasting some data across connected clients using SharedObject. I want only the Application to be granted to set SharedObject properties.

[Code]...

View 4 Replies

Xml :: SAVING Flash Data To XML?

Jun 25, 2011

I've been all over the interwebs, including Stack Overflow, for hours, trying to identify a solid, workable example of saving information in Flash into an XML file.

I want to take the positions of two different types of objects and export the lists of each to XML. We'll call the objects ball and bat.

[Code]...

View 2 Replies

ActionScript 2.0 :: CS3 Saving Data To Array?

Mar 18, 2009

I made this simple drawing game. I would like to make it so the user can save their drawings. What would be the best approach to doing this? I know it will require arrays.

View 4 Replies

Professional :: Saving And Loading Data To/from SWF?

Jul 23, 2010

I have created a simple flash animation for my employer. I basically have a square that changes color depending on which of three buttons are clicked. This is replicated about 30 times on the page. There is also about 15 circles that have a toggle button created so that when you click on the circle, they change between two colors. As I said, a very simple application.

Now, I need to save the data so that whenever someone new opens the swf, the current color combination is displayed. My way of thinking, with my limited AS3 experience, is that each button click, in addition to changing the color of a movie clip, should also send the data to a server. Then when someone opens the application fresh, I can use the URLLoader to load the most current data.

Am I on the right track, or am I missing it completely? I think I can figure out the URLLoader, but what code would I use to create the text file or xml file?Here is a snippet of my code:

var rtmColor:ColorTransform = f13335.transform.colorTransform;
var okColor:ColorTransform = f13335.transform.colorTransform;
var usColor:ColorTransform = f13335.transform.colorTransform;

[code].....

By clicking on either the rtm_13335, ok_13335, or us_13335 buttons, they will change the f13335 movie clip to the appropriate color (blue, green, or red). The default color is green.

What I would like to do is make the movie clip red, for example, then another person opens the swf, and the movie clip is red as opposed to the default green because I saved the current state to a text or xml file.

View 3 Replies

Professional :: Saving Data To Server Via SWF?

Jul 26, 2010

I have in mind a very basic swf file that allows someone to enter data (via dynamic text box), submit this data (via php), which in turns saves it as a file on the Server. This file (.txt) would be used to populate text on the main site. Most of this seems quite straight forward, and standard practice, apart from actually saving the data as a particular file and on the server (or overriding an existing file), which I'm sure comes up against problems such as FTP access and everything else, but I was wondering if someone might have an insight on how this could be done?

View 3 Replies

Actionscript 3 :: Saving Data To XML File?

Apr 12, 2012

I have a serious of games swf's loading externally from a main menu swf.What I'm trying to do is take name of the player which they input into textfield and sent it to the XML file. After this at the end of each game I want to send the time it took to complete also to the XML file.The problem I have is I don't know to to create a new user inside the XML file and then replace the default time of 00:00:00 with the time that the player has set.NameTextField is the name of the textfield.Hourtext, Minutetext and Secondtext are the names of the timer. (They are ordered like Hourtext ':' Minutetext ':' Secondtext.

AS3 code inside Flash MainMenu.swf
var XMLLoader:URLLoader = new URLLoader();
var Bytes:ByteArray = new ByteArray();

[code].....

View 1 Replies

ActionScript 3.0 :: Saving Xml Data To A File?

Oct 29, 2009

to save to an xml file that has been imported into an xml variable stored in a loader and modified. What I'm trying to do is import an xml list, add a new node with a key stroke, then save the newly modified xml list back into its file. I've seen quite a few threads about people saying you have to download third party software but is there a way to do it from within as3?

View 0 Replies

ActionScript 3.0 :: Saving Drawing Data In Xml?

Apr 19, 2010

i am working in action script 3 , is there any way that we can save mouse drawing data with color and stroke size in XML and retrieve back that data and present that in the same format and same position and edit again.?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved