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


Similar Posts:


ActionScript 2.0 :: Where Are The Cookies (shared Objects) Stored On The Computer

Aug 16, 2004

Where are the cookies (shared objects) stored on the computer (win xp)?

View 5 Replies

Flex :: Know If The User Allows Storage Of Local Shared Objects (LSO)

Nov 25, 2010

There is a small feature I have implemented that makes uses of the Local Shared Objects to work properly.

I wish to be able to help the user self-diagnose if he is unable to use the said feature because he refused access for this computer to writing local shared objects and give him instructions to work around the issue if it applies to him.

I'm looking for something similar to the muted property of the Microphone class [URL] or the Camera class.

View 1 Replies

ActionScript 2.0 :: Set The Local Storage Limit For Shared Objects?

Jul 23, 2006

Is it possible to set the local storage limit for shared objects using action script rather than the Flash Player context menu?

View 2 Replies

ActionScript 3.0 :: Loading A Different Image Each Time Using Local Shared Objects?

Mar 17, 2011

This is the accompanying thread for the tutorial "Loading a different image each time using Local Shared Objects".Here you can post comments, questions and suggestions related to the tutorial.If it's not completely related to the tutorial, please start a new thread.You may subscribe to this thread (in the "Thread Tools" dropdown menu) in order to receive a notification when the tutorial goes live.

View 1 Replies

Flash :: Local Shared Object Path?

May 10, 2011

I have a Flash.exe projector that stores data in a Shared Object. Anything works fine if I launch it from my desktop. The Flash.exe will be recorded and used from a CD-rom. Will the path of the Shared Object change? Say, will it try to record itself on the cd?!

View 1 Replies

Flash :: Editing .sol-files (LSO / Local Shared Object)

Jan 18, 2011

I am looking for a way to edit .sol-files (LSO/Local Shared Object). I have tried searching quite a bit, but I have not been able to find any program that can edit AS3-files properly. Is there a solution for me out there?

View 4 Replies

Flash :: Dictionary In Sync With A Local Shared Object?

Mar 22, 2011

In one of the classes in my Flex application I have a dictionary, which is periodically updated from other parts of the application. It contains some sort of user preferences and I want to keep it in sync with a local shared object - the dictionary needs to be read during the class initialization and saved to the local storage when an element is changed, added or deleted.

The "Dictionary" object inherits only "Object" and does not have a change event - like the "collectionChange" in ArrayCollection. So I can't sync the dictionary just by listening for an event and manipulating the shared object in the event handler. The other possible solution would be to make the dictionary private and manipulate it using special methods in my class. Something like:

public function setValue(key:String, value:String):void
public function getValue(key:String):String
public function delValue(key:String):void

But using bindings will become a real nightmare and I will have to make changes in many other parts of the application.

View 2 Replies

Flash :: Retrieve The Actual Shared Object Local Path?

May 12, 2011

i have prepared a login screee. using shared object i have saved username and password, now i want to know the sol path. Is there any way to actually retrieve the shared object local path.like C:Documents and Settings[userName]Application DataMacromediaFlash Player#SharedObjectsXXXXXlocalhost ext.sol

View 1 Replies

ActionScript 2.0 :: Save The Local Shared Object(.sol) File At A Desired Location Or To Embed It Within The Flash Movie?

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

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

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

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

IDE :: Local Shared Object (LSO) On A CD-ROM?

Jan 28, 2010

Does anyone know if it's possible to save and access a LSO from an EXE projector on a CD?

Obviously the LSO couldn't be saved on the CD itself - would it be able to save the LSO somewhere on the users hard drive?

View 4 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 :: Refreshing A Local Shared Object

Oct 13, 2010

I am building an application that uses a Shared Object that is shared (ironically) between 3 separate applications. 1 application listens for updates, and the others update the app. The problem I am having is that I need the main application to be able to detect changes to the Shared Object. Unfortunately there seems to be no events to listen for that are not for 'remote objects'. Because of this I created a timer that gets a new local instance of the shared object every X seconds.I just call the following before I read or write to the sharedObject:[code]This is causing a CPU Hiccup every 3 seconds and bogging down the system. so all this being said, does anyone know of a clean way to refresh a copy of the sharedobject without creating a brand new instance of it

View 2 Replies

Read Local Shared Object With A Servlet?

Sep 16, 2009

read a local shared object with a servlet even if there is no flash present on a page? I want to set a local shared object like a cookie, and then access it again from a page that doesn't have a flash movie.If I can't do this, is it standard to have the initial flash movie call an external javascript to set a traditional cookie that can later be read?

View 1 Replies

ActionScript 2.0 :: Local Shared Object (LSO) In IFRAME

Dec 2, 2009

What are some possible reasons that an LSO will not update/store information when nested within an IFRAME nested in another IFRAME?The mark-up structure was not determined/dictated by me.

View 0 Replies

ActionScript 2.0 :: Local Shared Object OnRelease?

Oct 3, 2010

I have begun to use Local Shared Objects in my projects but i appear to have got a bit stuck. To be more specific, i have two input fields, first and last names, the user enters his/her first and last names into these fields, the user clicks the "Save details" button and the Local Shared Objects are then set to remember the two names. The text above the first and last name fields change from "Welcome guest" to "Welcome, First Last!". So at this point the whole system works.

The point at which the code fails to work is when the user navigates away from the page where he/she entered the first and last names. The user then returns back to that page and the Local Shared Object has been set to the two input fields which are now blank because of the scene change. The Local Shared Object is set to nothing but is still accepted as a variable and thus makes the text above the two text fields display "Welcome, !".

I understand that what i just wrote may appear a bit compicated, but what i am essentially needing to find out is how to set the Local Shared Objects to the two input values only once when the "Save Details" button is clicked, instead of constantly checking the values of the inputs and changing the Local Shared Objects.

In code:

Code:
save.onRelease //only do this once// = function() {
first_name_txt.text = name_details.data.first_name
last_name_txt.text = name_details.data.last_name
}

View 2 Replies

ActionScript 2.0 :: Shared Object Local/server?

Oct 4, 2007

Alright, so I have a projector application running, and an SWF on a server. The projector loads the SWF on the server.The projector will save all of the sharedobjects it creates in the local-host folder, whereas the swf on the server will store it in it's own folder "or example. I want to be able to have them both store shared objects in the same folder, so that they can interact with each other through shared objects. Even if I load the SWF from the projector, it still creates it's own folder.

I need to have this because it stores level data for a game I'm making, where all the levels are on the server, and you can download each one individually, and make your own levels, and upload them, so others can play. The data would be loaded from a swf on the server, and then create the S/O on the users computer. Then, the actual game would load this SO and then create the map, based on the data.

View 1 Replies

ActionScript 3.0 :: Local Shared Object Corrupt?

May 3, 2011

Do you see anything wrong with this?

PHP Code:
package import flash.net.SharedObject; import flash.display.MovieClip; public class Example extends MovieClip var currentStage:int;var SOData:SharedObject; public function Example

[code].....

View 3 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 :: 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

IDE :: Accessing Local Shared Object From Diff SWFs

Jan 19, 2009

I am facing a problem in accessing Local shared object from 2 diff. swfs. Let me explain the scenario clearly.I am developing a radio widget (in maindomain.com for ex)which has a button to open a html page (placed in contentserver.com) as a popup with specific wt and ht. The html page loads the same SWF file of radio widget from "maindomain.com", means whatever changes we do for the SWF in maindomain will be reflected automatically in the popup also.Here where the problem is:

1. Say I am playing radio station "A" in main window and added this station to favourite list (which is done by storing in Share object). So when i open the popup its reflect there.

2. Now when i change radio station "A" to "B" in the popup and added "B" to favourites and closed the popup.

3. When I refresh the main window, I can get both "A" and "B" in fav, as expected.

4. But if without refreshing in main window when I changed to some new station "C" and then open the popup, it has got only radio station "A" in the fav list.

I am pretty sure this is because of Sharedobject.flush(). The thing I am wondering is, why the station "B" which is also pushed to sharedobject when added to favourite is getting deleted when I flush() the SO.?I googled many forums but not satisfied solution for this. Even I tried to get the Sharedobject.getLocal("SO","/") every time before using data in it. but no use.Is it a Flash limitation accessing LSO from diff SWF?

View 4 Replies







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