ActionScript 3.0 :: Make A Shared Object Save A User Name For A Scoreboard?
Jun 22, 2011
how can i make a shared object save a user name for a scoreboard it works like this i made a mc that is the scoreboard and the scoreboard has text boxes in it and the game gets a popup when it starts with a editeble text i want that text to save on to a text box in the scoreboard mc how can i do that?
View 3 Replies
Similar Posts:
Oct 10, 2003
I would like to know how to save more than 1 score into the text file and not overwriting the previous score so that it can be displayed in the high score list...I'm not sure how to write the array and where to write itwrite a sample code of for example getting 3 scores, saving it and displaying it in the high score board ?
View 2 Replies
Jan 22, 2011
I'm using a loader for people to use to upload their own images for a background, and I want it to remember the image the next time they come to the page, so is there any way to save the loader data in a shared object? I haven't tried just using something like
Code:
sharedObject.data.dataName=loader
because I assume it doesn't work that way.
View 9 Replies
Sep 7, 2010
I've done this flash scoreboard with shared objects.but what i can done is it will replace the 1st score in my scoreboard, it won't have 2nd, 3rd, 4th and etc...the script i used is:
ActionScript Code:
submit_btn.onPress = function()
{
[code].......
View 0 Replies
Sep 2, 2010
I've done this flash scoreboard with shared objects. But what I can done is it will replace the 1st score in my scoreboard, it won't have 2nd, 3rd, 4th and etc...
The script I used is:
submit_btn.onPress = function(){
//create a new sharedObject called 'userName'
var mySharedObject:SharedObject = SharedObject.getLocal("userName");
var mySharedObject2:SharedObject = SharedObject.getLocal("userScore");
//assign (data) the sharedObject (mySharedObject) a var called 'name1', which has the value of whatever is in textField 'save_txt'
[Code] .....
I want to have each higher score goes to the scoreboard, so will have 10 highest score in my scoreboard. Here is my attached file in CS5 format.
View 4 Replies
Apr 10, 2010
Is there a way in which xml can be saved as shared object?
View 1 Replies
Jun 6, 2011
i`m going to attach movie from library i need when i click save button and close swf and run again the movieClip are loaded
View 3 Replies
Mar 4, 2004
I am trying to use the shared object to save the _x and _y positions of several attached MC's. The attached MC's have all been given a variable name and attached to a dynamically created MC called "world".I need to loop through all of the MC's in _root.world to save their postions to the shared object. Here is what I have tried,.... when I trace so.flush.. it traces to true but the object postions are not saved.......
Code:
_global.initSo = function() {
_global.so = SharedObject.getLocal("marinaSave");
// if the SharedObject object created a new shared object
[code]....
Am I using the for... in method correctly to loop through the MC's in _root.world and save their values?
View 4 Replies
Sep 14, 2010
I'd like to get the input text in the SWF to save on exiting the SWF without pushing a button. Here's what I have so far that incorporates pushing a button
Code:
var savedstuff:SharedObject = SharedObject.getLocal("Cookie");
btnSave.addEventListener(MouseEvent.CLICK, SaveData);
function SaveData(MouseEvent) {
[Code]....
View 1 Replies
Feb 9, 2011
I wanna to make some flash for save and load color...
Click button to change button color and click again return to old color and
Save lase color
When run project to show last save color
View 7 Replies
Feb 11, 2011
i want to create some 1 button for save and 1 button for load all shared object in my projectthis is my code for save and load and i want to create 1 button for save and 1 button for load last check point
ActionScript Code:
import com.dVyper.utils.Alert;
import flash.events.MouseEvent;
[code].....
View 0 Replies
Dec 3, 2011
I am new to ActionScript. I am designing a calendar with schedule just like outlook calendar. I have 30 or 31 small text boxes for each month. I would like to save data in the text boxes so that data remains in that even when the file is closed. I used the following code and it works fine.
[Code]....
My question is, I have totally more than 360 text boxes for 12 months. How can I save all data using shared object? I tried loop, Array and function with the above code. But it did not work. You can also tell me if there is any other way to save data using PHP MySQL or ASP? If so how to do that?
View 9 Replies
Dec 29, 2011
im creating a side scrolling game project in flash as3..
and one of the requirements is saving and loading the game.
this is what i wanted to do.
the game can save the name, score, and the specific location of the character,
or maybe im thinking of a checkpoint or a savepoint.
ive read some articles about shared object, and im thinking on using it, but i really cant get it.
View 5 Replies
Sep 21, 2006
I have developed a game in flash and I am trying to get a save and load function so that the user can come back to the game that they were playing. Can this be done using the Shared Object....
View 2 Replies
Dec 8, 2009
I'm playing with Local Shared Objects, and I was able to save and load simple data types like strings and integers. Pretty cool.
I want to Save/Load a Bitmap Object but I'm having problems. I think I got a Bitmap Object to save but when I loaded it back in, it was basically a blank bitmap. I located the actual .SOL file on my computer and opened it up. It had some basic Bitmap info like scale, rotation, visible, width, height, etc, but NOT the actual bitmap.
So I realized that I need to be saving/loading a BitmapData object instead of just Bitmap. BitmapData holds the actual bitmap pixels, I think. Anyway I saved out a BitmapData object. When i tried to load it back in, I get a type coercion error: "Type Coercion failed: cannot convert Object@df355b1 to flash.display.BitmapData". I dont get it because this error didnt occur for Strings, ints, or Bitmap Objects. Whats happening?
Also, I looked again at the .SOL file after saving out the BitmapData object, And I dont see any pixel data there. The bitmap I'm saving is 800x800 so the .SOL file should be pretty big but its just a tiny file so I know the pixels havn't been saved properly.
Here is the code I'm using (Simplified - error handling removed, etc)
Code:
// save
var mySo:SharedObject = SharedObject.getLocal("mysharedobjecttest");
mySo.data.testA = 14;
mySo.data.testB = "hello this is a test";
[Code].....
View 14 Replies
Jun 8, 2004
!--Does anyone know if it possible to save the local shared object(.sol) file at a desired location or to embed it within the flash movie?
2--Is it possible to create an image file at runtime from a flash projector file?
View 1 Replies
Mar 26, 2008
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.how I can store an instance of a custom class in a local shared object without it being corrupted in this way?
View 4 Replies
Dec 13, 2009
I'm trying to make a flash game have save files using shared objects and I'd like to keep all the data in one file with several children.
The three things I'd like to do are:Check whether the file exists (create a new file if it doesn't), then check whether to child named with text in an imput box exists, and if it doesn't create a new file (using the text in an imput box), and then set the value of that node to 0.
Then later I'd like to change that node to another number (the easy part).I'd also like there to be a way to disable the shared objects (incase the user doesn't allow shared objects).I've tried to do this myself using a few tutorials, but I could get it to work.I couldn't use the text in the input box to name the child,and I couldn't check the size of the child node to see whether it existed or not.
View 2 Replies
Nov 30, 2011
I'm using Flash and AS3 to write an app for iOS and for Android and I'm saving XML-data using shared objects. Now it struck me that when I supply an update to the app store and the user updates the app, will the shared objects remain intact or will they be replaced? I'd very much like them to remain as they were.
View 1 Replies
Aug 28, 2007
I am trying to have a local shared object in flash to detect whether a user is a new user or a returning user. If they are a new user I want to do newUser function and if they are a previous user I want to do a previousUser function. This should all be happening on an onEnterFrame.
Here is my code I have so far:
//shared object - cookie
newUser_test = SharedObject.getLocal("newUser");
newUser.text = newUser_test.data.title = "new user";
newUser.text.onEnterFrame = function () {
newUser.text = "new user";
} newUser.text.onEnterFrame = function(){
newUser.text = newUser_test.data.title = "previous user";
newUser_test.flush();
}
View 3 Replies
Jun 8, 2004
!--Does anyone know if it possible to save the local shared object(.sol) file at a desired location or to embed it within the flash movie?
2--Is it possible to create an image file at runtime from a flash projector file?
View 1 Replies
Apr 13, 2004
I'm trying to learn shared objects by attempting a basic function. I would like to have an .sol file remeber what buttons are clicked on by a user and assign an alphavalue for the buttons that have been clicked. Here's what I have..
[Code]...
View 8 Replies
Sep 2, 2011
When a user selects a record in a datagrid I launch a pop-up window with more detailed info. The user can make changes to the record in this window but they don't have to save them. For example, they can click the X to close the window.whenever a user makes changes I update the object directly.Is there a pattern for copying the object and then mapping the changes to it when a user confirms they want to save?
View 1 Replies
Mar 6, 2011
i've a problem with shared objects. i m trying to make popup window to appear only once. one of my files contains popup window's codes, other is main window's...
[Code]...
View 3 Replies
Jan 21, 2010
I'm trying to make text chat application using shared object. I'm using api Shared.getRemote("so",m_nc,true); to make the data persistent. It makes the file with extension fso. I want to save the chat history in notepad for further reference, and also load that data as per requirement.
View 1 Replies
Jun 11, 2011
how can i make a scoreboard? i have no idea how to do it
View 1 Replies
May 29, 2009
I need to create a scoreboard for my game. I want to be able to let my user submit the time it took to complete the game to my scoreboard. I have been able to purchase webspace with SQL, PHP. I have set up my SQL database. I have found a great tutorial about how to do precisely what I wanted on YouTube BUT after starting the tutorial I realised it was ActionScript 2, I REALLY need time type of tutorial but for ACTIONSCRIPT.
View 1 Replies
Jul 31, 2010
I'm trying to make a scoreboard of players.It works fine for strings (like the username) listing like:
User1
User2
User3
etc
using in PHP to seperate them. (Using Flash,PHP,MySQL Integration)This is how I get them from the db in PHP:
PHP Code:
while($row = mysql_fetch_array($result)){ $rankPos .= $nrow . "
"; //# Position $rankUser .= $row['user'] . "
"; //Username obviously $rankN .= $row[$rankBy] . "
[code]...
The problem with this is, when flash receives rankings such as time, they are seperated by newlines () which makes them strings instead of integers as they rightly should be.
I'm using a time to string function to convert the time as integer (getTimer()) to a format HH:MM:SS It's fine ranking the times in the getTimer format but it all becomes a mess when trying to display the string format instead. (Considering times for all players are linked in the same string passed by PHP as time
time
time
time (000000
[code]...
The reason they are split with newlines is because the rankings are displayed in a single dynamic text.I tried converting each time in flash using the int function, but what would you do for newlines? The time rankings just comes out as '0' because of the newlines.I've also tried using this following function to remove the newlines and then possibly put each time into an array.
Actionscript Code:
function time(input){ timestr = ""; for(i=0; i<input.length; i++){ if(input.charAt(i) != " "){ timestr += input.charAt(i);} } return timestr;}
[code]...
What would I check for in order to get each time into an array?Though I'd much prefer using a much more efficient and easy method for display high scores.
View 3 Replies
Sep 4, 2011
I need to create a scoreboard for my game. I want to be able to let my user submit the time it took to complete the game to my scoreboard. I have been able to purchase webspace with SQL, PHP. I have set up my SQL database. I have found a great tutorial about how to do precisely what I wanted on YouTube BUT after starting the tutorial I realised it was ActionScript 2, I REALLY need time type of tutorial but for ACTIONSCRIPT. I have searched google for over two weeks now, but cannot find anything that suits.
View 1 Replies
Nov 17, 2009
I need to make a scoreboard/timer that would show on a projector so that everyone can see the current points and the 8 second timer, all this controlled for a non-flash-user, considering someone else will have to do it cause I'm IN the gameshow, so it has to be easily-changable.
[[[I'd also like to mention I apparently heard that this could somehow be done sending information between flash and excel? The image attached is what it'd look like. Each peice is a graphic object in flash.
[Code]...
View 1 Replies