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
Similar Posts:
Nov 28, 2011
How do you get the list of file names of shared objects? I'm trying to make a file navigator
View 1 Replies
Jul 11, 2009
I am tring to create a simple mine game..so I created a couple movie clips one of which is to be assigned a value of "0" and the other is to be assigned a value of "1" randomly. That is if the one on the left has "0" the other should have "1" and that if I click the one having "0" value ,let it explode or do something..The problem is that I am not sure how to use "onClipEvent(enterFrame)" and on(press).. I named my MCs as "mcleft1" and "mcright
View 1 Replies
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
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
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
Nov 3, 2010
However, they work in other examples, even locally, when I download the source.
Code:
//Button
on(release)
[code]........
View 1 Replies
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
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
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
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
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
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
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
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
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
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
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
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
Mar 3, 2010
how do I load library objects by string list using Flash and AS3? I need to understand string lists, arrays, and sprites better.
WHAT I WANT TO DO Load enemies to stage using a string list "Orange ball, red ball, green ball etc"
EXPLANATION The tutorials I've been given are too basic, or they are incomplete examples that don't explain the classes being used.
Trace statements are not showing me how I'm accessing the name or class of an object.
[Code]...
View 1 Replies
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
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
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
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
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
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
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
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
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
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