ActionScript 2.0 :: Flash 8 - Scoreboard With Shared Objects

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


Similar Posts:


ActionScript 2.0 :: Scoreboard With Shared Objects?

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

ActionScript 2.0 :: Game Scoreboard Using Local Shared Object?

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

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

ActionScript 1/2 :: Flash Log In From With Shared Objects?

Jul 10, 2009

So i want to create a flash log in and registration form for my flash game. THis game is played on your local PC not in the internet and i am using AS 2.0. So on the registration from i want to have two input text fileds: username and password. When you click on register the data from those fields to be saved as Shared Object and then on the log in when you type something in the log in fields (again two fields : username and password) the data that you wrote in those fields to pass trough the saved data as shared objects and if those two are the same then the log in is successfull if i want the movie to go on a certain frame whare it says access denied.

View 5 Replies

Flash :: Get All Shared Objects For Current Domain?

Aug 5, 2010

Using SharedObject.getLocal I can get access to what appears to be an infinite number of files simply by using unique identifiers in the method call; What I want to know is how can I retrieve a list of all active files or shared objects that have been saved for my current domain.

I'm trying to write a save game mechanism that allows you to save your game (potentially many megabytes) so using a single shared object seems like it might cause performance issues however if I use multiple objects I'm not sure how I'd find out what has been saved without using an object just to specify the id's of the other saves - then my question becomes what happens if this "header" object is removed or deleted - how can the player access the other files?

A snippet from the flash docs:

Local disk space considerations. Local shared objects have some limitations that are important to consider as you design your application. Sometimes SWF files may not be allowed to write local shared objects, and sometimes the data stored in local shared objects can be deleted without your knowledge. Flash Player users can manage the disk space that is available to individual domains or to all domains. When users decrease the amount of disk space available, some local shared objects may be deleted. Flash Player users also have privacy controls that can prevent third-party domains (domains other than the domain in the current browser address bar) from reading or writing local shared objects.

View 2 Replies

Flash :: Shared Objects Don't Work In Code?

Nov 3, 2010

However, they work in other examples, even locally, when I download the source.

Code:
//Button
on(release)

[code]........

View 1 Replies

ActionScript 2.0 :: Local Shared Objects / Flash Cookies

Jun 4, 2010

case: user clicks button and flash goes frame 2 what I want is that flash knows, that user has pressed the button once earlier. So flash goes straight to frame 2 if th user refresh the page. I ques I have to do this with local shared objects? How do I do it? Or should I use php/javascript?

View 8 Replies

ActionScript 3.0 :: Flash - Saving Objects In A Shared Object?

May 15, 2011

I'm trying to save an object to a shared object, the thing is that while i run it the first time it works perfectly, but as soon as the swf is closed and re-opened my object just disappears.If I'm not wrong this is because it's a custom class instance and the .data saves a reference to the object instead of the object which is deleted as soon as the program closes.My question is:I've tried saving each var in a different data.[something], having to save five variables might not be bad but what about twenty or more.

View 2 Replies

ActionScript 2.0 :: Where Flash Stores Shared Objects In Windows Vista

Jan 28, 2008

Does anyone know where flash stores shared objects in windows vista? I've been looking all over for them and I can't seem to find where it stores them.

View 1 Replies

ActionScript 2.0 :: List All Shared Objects That Are Assigned To A Flash Movie?

Apr 2, 2005

Is there a way to list all Shared Objects that are assigned to a flash movie?(like you push a button in the flashmovie and it lists the names of all the shared objects assigned to the flash movie)

View 2 Replies

ActionScript 3.0 :: Make A Flash Game Have Save Files Using Shared Objects?

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

Flex :: Flash Shared Objects Storage Location Changing Occasionally?

Feb 15, 2011

When running a flash application that I run locallyie I get to it from a browser but with a file pathNow, most of the time the shared objects are stored in%APPDATA%MacromediaFlash Player#SharedObjectsXXXX#localWithNetBut occasionally, it reverts and thinks this application is running on localhost%APPDATA%MacromediaFlash Player#SharedObjectsXXXXlocalhostwhich means all previous saved settings are gone.I'm wondering if anyone knows how flash decides if the application is infact localhost or localWithNet (local with Network access)

View 4 Replies

Flex :: Flash Shared Objects Storage Location Changing Occasionally

Jul 3, 2011

When running a flash application that I run locally i.e., I get to it from a browser but with a file path
file:///C:/Projects/test/bin-debug/Main.html#

Now, most of the time the shared objects are stored in
%APPDATA%MacromediaFlash Player#SharedObjectsXXXX#localWithNet

But occasionally, it reverts and thinks this application is running on localhost
%APPDATA%MacromediaFlash Player#SharedObjectsXXXXlocalhost
Which means all previous saved settings are gone.

How flash decides if the application is infact localhost or localWithNet (local with Network access). Rebooting can sometimes make it revert, but I've also had it stay localhost for a few days then revert.

View 1 Replies

Actionscript 3 :: Understading Flash / Flex Shared Objects And Hashing Technique

Jan 24, 2012

I was trying to observe how some of the top browser game makers are implementing the asset management and also study their animation techniques. So I was trying to crack my browsers cache and share-object paths to peep into the assets.What I have noticed is that all the files are hashed or encrypted with unreadable names and all of them have .sol extension example somethingbigandunredable.png.sol or somethinglesebigandhugtring. swf.sol and so on.I thought they are just suffixed with .sol and just removed the .sol and tried to open the png but its neither showing the previw nor opening in the browser. Same with the swf file.So I was wondering if there is any way to peep into their assets. I am aware of swf decompiler tool (currently using) which can extract only the unecrypted swfs.

View 1 Replies

ActionScript 2.0 :: How To Use Shared Objects

Feb 28, 2006

I had been wondering how to use shared objects for a long time and thanks a million to this mini-tut:url...I know how. The only thing is it says that to clear a shared object, you must type (used in his example) [code]but what if i wanted to delete a certain block of data on it, for example I have the shared object user.And i don't want to delete all of it, but just one block of data (specifically user.data.doc)[code]

View 5 Replies

Using Same Shared Objects Across Multiple FLAs?

May 4, 2010

I am creating a small game for a project im doing it is only ten levels long but I wish to include feature such as saving etc. I have one some research on Shared Objects and it seems to be the best method. The idea I wish to execute is to have at the end of a level after reaching the levels goal have a piece of code that runs and saves that the next level has been unlocked. This seems relatively simple. However i have done things awkwardly i think, instead of creating the whole game within a single fla. each level is a seperate file, eg. level1.fla, level2.fla etc. Is it possible to use the same shared object across multiple .fla's?

View 3 Replies

ActionScript 3.0 :: Shared Objects: Trying To Get A Grip?

Dec 1, 2009

I am reading the official Adobe PDF, Flash_as3_programming and am trying to get a grasp ofthe creation and use of Shared Objects. While the text does explain a lot, I am not understandingshared object store. When a .swf file is embedded in a web page, the shared object store wouldbe on the web site that hosts the .swf file? Is this a directory that contains files? How would an.swf file loaded into a client browser access these if they are on the remote host of the web site?

View 5 Replies

ActionScript 2.0 :: Persistent Shared Objects?

Jan 9, 2004

i'm overwriting the original SO each time i save to it here are my proto functions:

Code:
interfaceClass.prototype.saveLSO=function(){ //saves color set vars to local shared object (cookie) on disk
this.myN="gamecookie"; //name of cookie file
trace("saveLSO");[code]....

i know i should do some kind of test, but the way to do it eludes me.

View 2 Replies

ActionScript 2.0 :: Losing Shared Objects On Update?

May 25, 2009

I just recently made an online game and was asked to implement saving features. Everything works fine but a single detail... When I update the swf (right now I have a new version with corrected bugs) people are gonna lose all their saved data !

Is there a way to use the same shared objects over multiple swf ? Or simply to keep them over the version change ?

View 1 Replies

ActionScript 3.0 :: Sharing Shared Objects Between Swfs?

Sep 15, 2010

Anyway, Im currently making a flash game in a group as part of a university assignment. We have made several sections to this game in different swf files and need them to all be able to access the same sharedObject. Is this possible? At the moment, the two seperate swf's im using both have the same name for the object, so we assumed this would mean it would work between the two?

View 1 Replies

ActionScript 3.0 :: Shared Objects Accessed By Different SWFs?

Jan 25, 2011

how I can make a shared object be able to be accessed by different SWFs on the same server.

View 5 Replies

Flex :: Understanding Remote Shared Objects?

Oct 20, 2009

I have 2 questions about remote shared objects in Flex/ActionScript3:1) If I connect to a remote shared objects, but do not handle the SYNC event, will the shared object still receive data from the server? ie. will the server still broadcast data to this client ? This is what I expect

View 2 Replies

Actionscript 3 :: Shared Objects Be Accessed By More Than One Application?

Sep 15, 2010

I'm trying to access a shared object created by one flash application from another flash application. Is this possible? If so, what do I need to do?

If not, are there any other ways to share the information between the applications?

View 2 Replies

Actionscript 3 :: Shared Objects And Related Elements?

Sep 21, 2011

If I'm attempting to create a file that takes information a user inputs using input fields,save them, and then load them again later after the file has been opened and an option selected, what sort of things would I need to most research? I know there's something called sharedObject I need to research. What else? I've been searching Google, but I'm not finding anything covering this particular aspect.

View 1 Replies

ActionScript 3 :: Possible To Access Shared Objects In Another System?

Mar 10, 2012

Can we use or access shared object stored in another system? I'm storing some data in shared object in one system can I access that shared object data from another system? I think Shared objects are stored in local machine. Can we give the path to (specified system i.e., server) where the shared objects will store, and can we access that object through same path?

View 2 Replies

ActionScript 2.0 :: Shared Objects In A Projector File On A MAC

Jul 23, 2009

Can I create a "MAC" projector file that can use the shared object commands of the original .fla? It seems the projector does not use the shared object commands on the mac side but does if I create a windows projector. I am looking to create an autorun hybrid (Mac and PC) with shared object functionality.

I am using CS4 on a Mac. Latest OS

View 0 Replies

ActionScript 2.0 :: Shared Objects And Secure DB Queries

Aug 4, 2009

I'm working with a friend with some changes to their complex flash site after their previous developer jumped ship on them. In the process of making some edits I noticed that the previous developer had exposed all of their data to the world. Any slightly tech-savy user could pretty much read all the table data in their database by visiting a php page.

So here's the scenario I'm trying to solve.
- The flash site uses Shared Objects to save users access privileges when they log in successfully.
- There are frequent calls to the database to display information (whether logged in or not). The site calls a php page.. lets say... query.php?table="tablename" and returns all tables data... (what a mess). Only specific columns are needed to be returned to the user (whether they are logged in or NOT logged in). there is no check to see if the user is logged in or not when this page is called. so anyone can call a page and get this data.
- Only the ADMIN should get returned the full table set as they are the ones that need to see all the data in flash. however the same php query is called for the admin and for the regular user and any non-logged in user.

So. I guess I can limit the data set returned for the average logged in or not logged in user so the more sensitive data isn't shared. But how can I authenticate the logged in admin to share the full table data?

View 0 Replies

ActionScript 3.0 :: Method For Testing Shared Objects?

May 12, 2010

Is there a method for testing when a shared object has finished loading?because as you can see i have a considerable amount of variables to load, and they don't always load in time.causing many glitches.

ActionScript Code:
wep=saves.data.wep;
backupwep=saves.data.backupwep;

[code]......

View 0 Replies

ActionScript 3.0 :: Shared Objects Last Visited Frame

Mar 27, 2011

I have abc.swf that gets loaded into main.fla. abc.swf has about 15 frames on it's timeline. Even though I am using flash CS5 and AS3.0, I am doing the code in timeline right now. I wanted to know how do I use shared object to remember the last visited frame of the user and then to make sure it goes to that frame on the next visit?

View 1 Replies







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