LOCAL SHARED OBJECT in CAIRNGORM

Hi,
I am new to Cairngorm framework.
I want to use Local shared object in Cairngorm framework,I am confused where i have to create and where i will get data and how i can add to lso.
If any example or suggestions  to use Local shared object It is helpful for me.
Thanks in Advance.
Regards
Naresh

Hi,
I am also new to flex.
But here is what I think.
You may want put it into servicelocator since sharedobject is not part of you cilent datamodel.
Use delegate to update your modellocator with value from sharedobject.
Hope it can help.
If you solved the problem, pls also post it and we can learn together:)
Best

Similar Messages

  • Local Shared Object not working in Firefox 2

    I'm using a local shared object in my flash animation so that
    the animation plays only once per user visit. It works fine in IE
    6/7, but doesn't work at all in FF (the movie still plays when I
    refresh the homepage, or come back to the homepage from another
    page).
    This is what I'm using:
    var my_so = SharedObject.getLocal("animationPlayed");
    if (my_so.data.played == undefined)
    my_so.data.played = true;
    my_so.flush();
    else
    gotoAndStop(258);
    } // end else if
    clearLSO_btn.onRelease = function ()
    my_so.clear();
    stop ();
    And this is the site:
    http://qualitycateringforkids.com/default.aspx
    Any ideas?
    Thanks
    RK

    Both of these load no problems in my FF3

  • Can no longer clear Local Shared Objects (Persistent Identification Element)

    The equivalent of a cookie in Flash is the "Persistent
    Identification Element" which is also called a "local shared
    object." The Adobe TechNote titled "How to manage and disable Local
    Shared Objects" at url
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=52697ee8
    provides a link to control deleting Local Shared Objects. That link
    contained in the TechNote is "Website Storage Settings panel":
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager07.htm l
    Until today, that was a good link that enabled me to clear
    the local shared objects. Today, however, the link leads to a
    totally different page of miscellaneous Adobe matters.
    Does anybody know the correct link to clear my Flash player
    of the local shared objects?
    Thanks very much.

    Your Template code is incomplete / corrupted. 
    That's why you can't edit it.
    Try opening your .dwt file in a plain text editor like NotePad.  Remove the editable regions from code.  Save.  Open in DW.
    You will need to SaveAs Template (same name as the one used by your child pages).  Add editable regions to match the ones in your child pages.  Save.
    Nancy O.

  • Problem Assigning Local Shared Object

    I have created a swf that increments a dollar amount every
    five seconds. My clients want this dollar counter to be consistent
    between HTML pages. That is where the local shared object comes in.
    I can create it fine, and even read it (I know this by a trace() I
    used). But for the life of me I can't get the value from the shared
    object passed to the dynamic text field as soon as the swf is
    loaded. It always starts at the beginning increment of 0.192!
    I'm pretty sure what is messing me up is either the function
    that formats the number to a dollar format or the function that
    increments the dollar value up every five seconds and saves that
    value to the shared object.
    Using the code below, you can create a flash file with a
    dynamic text labeled 'money' and the actionscript copied into the
    first frame on the timeline.
    Any help would be great appreciated!

    aasimmomin wrote:
    > Hi,
    >
    > I have 2 files *.swf files. The first one is creating a
    shared object while
    > the second one reads the created shared object.
    > The files works perfectly on my local machine and on my
    server, but the second
    > file is not able to read the shared object on the
    client's server.
    > Although both files work perfectly well on the client's
    local machine.
    >
    > I have checked and found that there is no synchronizing
    problem between the
    > writing and reading of the shared object.
    >
    > Could there be some settings on the client's server
    which may be missing?
    do not post same question to multiple forums, post in one and
    stick to it.
    http://www.adobe.com/support/forums/guidelines.html
    Adobe forums posting guidelines
    When posting messages...
    - in DON'T Section :
    Don't cross-post or double-post. Posting a message to more
    than one forum (i.e "cross-posting" is
    unnecessary, and creates extra traffic for you and others to
    read through. If you've already posted
    a question, please don't repeat your posts in order to get
    more attention- this makes it very
    difficult for others to see if and/or where your question was
    answered.
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006 :)
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Can Local Shared Objects Be Moved to a New Computer?

    We are awaiting the arrival of our new computer. My 8-year old son is concerned that when he plays his favorite Flash games on the new computer, the games won't remember his previous score or level in the game.
    I understand that this information is typically stored in Local Shared Objects. Therefore, my question:
    Can the LSOs on our existing [Windows XP] computer be moved to our new [Windows 7] computer? If so, do I store them in the same location in Windows 7 as they are stored in Windows XP?
    Thanks for your advice.
    The Daddy

    I think these data are stored in one of the following locations (in Windows XP):
    C:\Documents and Settings\[username]\Application Data\Adobe\Flash  Player\AssetCache
    and/or
    C:\Documents and Settings\[username]\Application Data\Macromedia\Flash  Player
    Easier than to type the full access path for these two folders would be to use the %APPDATA% environment variable; you would type the following into Windows Explorer's address bar:
    %appdata%\Adobe\Flash  Player\AssetCache
    and/or
    %appdata%\Macromedia\Flash  Player
    Now in Windows 7 these are in a slightly different place:
    C:\users\[username]\AppData\Roaming\Adobe\Flash Player\AssetCache
    and/or
    C:\users\[username]AppData\Roaming\Macromedia\Flash Player
    which would be, using the environment variable:
    %appdata%\Roaming\Adobe\Flash Player\AssetCache
    and/or
    %appdata%\Roaming\Macromedia\Flash Player
    What I would do is to copy the full contents of both folders from XP to 7, before installing Flash Player on the new machine.
    Let us know if this worked.

  • Are Cross Domain Flash Local Shared Objects (LSO aka Flash Cookie) possible

    Hi,
    I found several solutions for creating Flash LSOs from JavaScript (for example: http://www.nuff-respec.com/technology/cross-browser-cookies-with-flash )
    If Page (www.hostA.com/index.html) and the .swf file are from the same site, everything works fine.
    Now I'm trying to load the page form www.hostA.com/index.html, which includes www.hostB.com/flashcookie.swf (different sites). But then I cannot read or store the LSO.
    I have tried several configurations (crossdomain.xml,  Security.allowDomain("...") ), but nothing works.
    Is this kind of cross domain access to a LSO possible?
    Can a flash based advertisement delivered by a 3rd party save a LSO on my disc?
    Thanks
    -stephan

    I 100% agree!  We have an application that the Government requires information to be stored on the users computer as part of Multi-Factor-Authentication.  We originally wrote it as a browser application and when everyone and their brother started deleting browser cookies because of security concerns, we totally re-wrote it as a Flash application to take advantage of permanent storage.  This new "feature" in Flash Player is causing much concern because thousands of users will need to start answering lots of security questions every single time they use the application (ie: daily) and our staff is having to handle technical support questions that shouldn't exist.  Right now it's only IE that's causing the issue, but I'm sure every browser and Internet Security program will soon be adding this to their products.  There should at least be a way for the USER to white-list a specific Domain so Flash could exempt those sites from ANY external program trying to delete ALL Shared Objects/Local Storage/Flash Cookies.  The USER should be given that choice.  This would satisfy the extra privacy you are putting in there and still allow information to be stored from sites that require it.
    John

  • Where does flash stores the local shared object data

    HI All,
    I'm using shared object to store local data:
                    var so:SharedObject = SharedObject.getLocal(storageName);
                    // Store the data
                    so.data.userName = userName;
                    so.flush();
    Where does it actually saved on my hard disk (in windows vista operating system).
    10x,
    Lior

    http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Live Docs_Book_Parts&file=lsos_087_3.html
    The term local refers to the location of the shared object.
    In this case, Adobe Flash Player stores the SharedObject file locally
    in the client's home directory.
    When you create a shared object, Flash Player creates a new
    directory for the application and domain. It also creates an empty
    *.sol file that stores the SharedObject data. The default location of
    this file is a subdirectory of the user's home directory. On Windows,
    this directory is the following by default:
    c:/Documents and Settings/username/user_domain/Application Data/Macromedia/Flash Player/web_domain/path_to_application/ApplicationName/objectName.sol
    If you request an application named MyApp.mxml on the local host, in the Flex context, and within a subdirectory named /sos, Flash Player stores the *.sol file in the following location on Windows:
    c:/Documents and Settings/username/user_domain/Application Data/Macromedia/Flash Player/#localhost/flex/sos/MyApp.mxml.swf/objectName.sol

  • Local Shared Objects and multiple SWFs: mutexes necessary?

    I will have multiple SWFs on a single web page, each reading
    and writing the same SharedObject, which may be up to 100K in size.
    Will I need to create some sort of mutex scheme to ensure that one
    SWF isn't writing while another is reading, or do all SWFs on a
    page essentially run as a single-threaded application?

    >1) I don't think a SharedObject.flush is synchronous.
    I believe it is, as long as you're not attempting to write
    more data than the user has set for the Local Storage limit.
    http://livedocs.adobe.com/flex/3/langref/flash/net/SharedObject.html#flush()
    You'll note that flush is described this way: "Immediately
    writes a locally persistent shared object to a local file", and if
    it returns "SharedObjectFlushStatus.FLUSHED" that means that "The
    shared object has been successfully written to a file on the local
    disk". So I'd say that the normal operation of flush() is
    synchronous. However, the SharedObjectFlushStatus.PENDING state
    means that we've exceeded the limit set by the user, and are
    waiting for them to allow or disallow it. I believe (strongly) that
    that's the only case in which a netStatus event is sent.
    Do you read this differently?
    As far as multiple SWFs running as cooperative or preemptive
    multitasking processes, I'd really like to know the answer, but it
    probably doesn't matter. The more I read and think about this, the
    more it seems to me that Adobe has to prevent simultaneous reads
    and writes to a single Shared Object from taking place, as one use
    of it that I've read about is to share data between SWFs. For
    example:
    http://www.devarticles.com/c/a/Flash/Communication-and-Security-with-the-Flash-Communicati on-Server/1/

  • Security issues for Flash cookies, Local Shared Objects, .sol files

    Good day, all
    I just found out a bit about flash cookies from Wikipedia and http://epic.org/privacy/cookies/flash.html
    I was wondering if there was a security issue with these (as opposed to privacy issues)?
    It seems easy enough to prevent them being stored or delete them after they are set.
    Thanks,
    Hugh

    Hello Patricia,
    You wrote,
    I came to this forum to see if I could find out how to delete adobe's flash cookies
    You have to do it online via this website.
    Macromedia's Website Storage Settings panel
    Note: As the site says, the dialogue box is not an image, "it is the actual settings manager"
    I just tried it out and deleted the flash content from How Stuff Works, then revisited the site (How Stuff Works) and it didn't add it back, so it seems to work as stated.
    regards roam

  • Problems with Shared Objects - WIERD (or i'm just plain o'l stupid)

    Using F8, AS2.0
    What I am trying to do is to store an array inside of a slot
    in a Local
    Shared Object.
    (snippet from function)
    // leaderboardShare is the Local Shared Object
    // the variable scores is passed through this function
    // if no array exists, create one
    if (this.leaderboardShare.data[this.userId] == null) {
    trace("{SharedLearning.setLeaderboardScore} no score data
    for this user
    exists, creating scores array");
    // create a new array to hold scores for this userId
    var myScores = new Array();
    myScores.push(score);
    this.leaderboardShare.data[this.userId] = myScores;
    // traces out the newly added score, (325)
    trace("{SharedLearning.setLeaderboardScore} scores in userId
    array: " +
    this.leaderboardShare.data[this.userId]);
    } else {
    trace("{SharedLearning.setLeaderboardScore} score data
    exists, adding
    current score to array ");
    // traces out existing data in userId slot (325)
    trace("{SharedLearning.setLeaderboardScore} scores in userId
    array: " +
    this.leaderboardShare.data[this.userId]);
    // traces out Number
    trace("score is type: " + typeof(score));
    // temp array to hold data from existing LSO scores
    var myScores:Array =
    this.leaderboardShare.data[this.userId];
    // traces 325
    trace("myScores (before): " + myScores);
    // temp variable to hold latest score passed through (dont'
    really need
    this)
    var newScore:Number = score;
    // add latest score to current score array
    myScores.push(newScore);
    // TRACES 325, NaN
    trace("myScores (after): " + myScores);
    // overwrite existing scores array in LSO with new set of
    scores
    this.leaderboardShare.data[this.userId] = myScores;
    I know I can do this with any other object, what gives? why
    would the LSO
    even care what i'm passing to it. Who cares that it's not a
    number, the
    array doesn't care what you stick into it.
    I'm truly confused.
    Any help will help me drink less tonight after i'm finished

    Nevermind....
    I found a block of code above it that was making it crap out.

  • Storing Dataprovider in shared object

    I'm having trouble storing a dataprovider in a shared object. Writing the dataprovider object to my local shared object seems to work fine, but when I try to read this out of the shared object, it appears to have been transformed into a generic object. When I try to assign a local dataprovider variable to the dataprovider I've read out of the shared object, I get the following error:
    "cannot convert Object@3721e6c9 to fl.data.DataProvider"
    Any ideas?

    you can use:
    var mySo:SharedObject = SharedObject.getLocal("test");
    if (mySo.data.object0==undefined) {
        var obj1:Object = {name:"kg",title:"md, phd"};
        var obj2:Object = {name:"ck",title:"md"};
        var dp:DataProvider = new DataProvider([obj1,obj2]);
        for(var i:uint=0;i<dp.length;i++){
            mySo.data["object"+i.toString()] = dp.getItemAt(i);
        mySo.flush();
    } else {
        var dpA:Array = [];
        for(var s:String in mySo.data){
            dpA.push(mySo.data[s]);
        var dp1:DataProvider = new DataProvider(dpA);

  • Clearing a shared object

    I am using a local shared object on my site banner, so the
    animation only plays through once when visitors arrive at the site.
    Is there a way of using clear(); on the lso when visitors
    leave the domain or after say, 24 hours?
    Here's my code:

    that mostly depends upon how you want to retrieve the
    data/time. if you can accept the user's date/time (which should be
    consistant - it may be off by 12 hours, but it will almost always
    be consistantly off), you can use the date object to access the
    date/time. if you need more accuracy, you'll need to use some
    server-side code that will check the date/time at the server.
    which are you going to use? and are you just checking if
    24hours has expired since the sharedobject was last
    accessed?

  • Shared object files no longer saving in Chrome

    Google Chrome     12.0.742.112 (Official Build 90304)
    Flash     10,3,181,34
    OS: Vista 64
    Shared object files (.sol files) stopped saving to my local machine some time since 10pm on 6/28/11 (EST).  I assume Chrome updated when my computer randomly shut itself off in the evening of 6/29/11, and that it was after this that this bug started to occur (after research, it looks like Flash updated and caused this problem?).  Prior to this random shut off, Chrome had not been closed/restarted in 4-6 weeks.  I know for a fact that .sol files were storing properly late on 6/28.
    I also know that .sol files are storing properly on Firefox.  And that my flash storage is still set to Unlimited for all websites.  I have confirmed that it is not website specific (tested on 2 different sites).  I could not find any odd setting in the Chrome Options panel that would be causing this either.
    Any suggestions?  I play flash game professionally, and not being able to have my games save means I can't use Chrome until this is fixed.
    Thanks very much!

    Hi, I've put together some info that gives some background on this issue. It's a little lengthy, but wanted you to have an idea the areas that are involved in this. Cutting to the chase: Don't delete browser cookies either manually nor automatically as this removes the LSO's as well. My question that I had back in May was answered by using a third party to remove browser cookies, as CCleaner. However, I've read that CCleaner is also removing the LSO's. So any third party browser cookies you might want to use, I'd make sure before hand any risk involved.
    I don't understand why when this was all implemented and set up, that a simple choice wasn't made. Delete History, Delete browser Cookies, Delete LSO's. That's my opinion on it.
    http://kb2.adobe.com/cps/526/52697ee8.html      LSO's and Global Settings
       In addition to Security updates in this 10.3.181.14, there is included a Flash Settings Panel Manager.
    Users now have a simpler way to clear local storage from the browser settings interface – similar to how users clear their browser cookies today. Flash Player 10.3 integrates control of local storage with the browser’s privacy settings in Mozilla Firefox 4, Microsoft Internet Explorer 8 and higher, Google Chrome 11 (Available in Chrome Dev Channel), and a future release of Apple Safari.
      Flash Player Settings Manager as relating to Cookies/History/LSO's    5/20/11
    Please uncheck the checkbox in your browser to delete cookies upon exit. Starting with 10.3, Flash Player has implemented the Flash Player LSO clearing feature to remove Flash LSOs (sometimes mistakenly called Flash cookies) from the browser context. Therefore, if this checkbox is checked, your Flash Player LSOs (saved games, saved logins) will be deleted as well.
    So far, browser vendors who have implemented this functionality have chosen to combine cookies with Flash LSOs with regards to clearing history. This should give you the granularity that you need: If you clear your history and you tell the browser to clear cookies as well, Flash LSOs will be cleared. If you clear your history but you don't select cookies, Flash LSOs will remain on the machine.
    Of the currently shipping browsers, IE8, IE9 and Firefox 4 have chosen to combine cookies and Flash LSOs. Earlier versions of these browser don't support this new functionality. Other browsers may support this functionality in future versions.
    Hi OreaTivona, Please unselect the option to delete cookies when closing the browser. This will otherwise delete your Flash "cookies" (the correct term is LSO - Local Shared Objects) when you close your browser. As mentioned earlier, this is new in Flash Player 10.3. The Flash Player is now more tightly integrated with browsers due to privacy concerns. This has the effect that if you choose to delete cookies (either manually or on exit of the browser), these LSOs will be removed along with the regular browser cookies. Thanks, Stephen Flash Player team
    Thread of OreaTivona:  http://forums.adobe.com/thread/852349?tstart=60
    (eidnolb's question: Then if deleting browser cookies deletes the LSO's, how are cookies deleted? (Temp cookies?)
    (my answer above re: CCleaner)
    eidnolb

  • Shared Objects, iCloud, and inApp Purchasing

    Here is the scenario:
    All game data is saved in a Local Shared Object. This includes game un-locks and items that the user has purchased using in-app purchaes.
    Will the player be able to down load this shared object from the cloud if they play the game on another device?  Does Apple require in-app purchased 'items' to be stored in  a special way?  I've read some people having issues with Shared Objects in the past, so I'm curious on what the current 'best practices' are.
    Thanks,
    -dis

    Dis, Hi.
    If you want to use non-consumable IN APP PURCHASE - you don't need use any saving for restoring on other devices.
    Non-consumable it's products, that you can buy once. For unlock for example from LITE to FULL version. Than you can save it as Local Shared Object.
    When you will buy it again - APP STORE will not get money again but will return product as Buyed (as new) and you will see it as 'restored'.
    App Store don't provide any downloads. It's return only JSON parameters like 'restored', 'purchased' and etc. All rest you do on your device

  • Shared Object quirk

    Hi all,
    I made a slot machine. It's simple enough: hit the spin
    button, the reel movieclips play, and a random number is created to
    decide what the winner is. People will win hats, shirts, buffet
    vouchers, etc., and I have to limit the quantities for each, and I
    have to be able to report how many of each were spun after the
    event is done. For this, I've created a local shared object that
    stores each individual spin and also totals for each prize. I used
    the shared object so we can shut the machine down and move it to
    other parts of the city as we move around...and because it's a
    standalone machine with no VMWare or database access.
    The problem: I want to use another movie (which accesses the
    same shared object) to display the data in report format. If I
    spin, and then close the movie, and open the other one, there's
    nothing. What I have to do is spin and close the movie three times
    before there is anything showing up in the other movie. The problem
    is that I have several prizes unaccounted for.
    I'm thinking that either I start the local shared object in
    the wrong place, or am flushing it in the wrong place. Any advice
    would be greatly appreciated.
    Code is attached.

    Hi again,
    If someone can point me in the right direction as to where to
    look, I would greatly appreciate your help...Thanks!
    <pre>
    //start up the local shared object
    mySO=SharedObject.getLocal("spins","/");
    if(mySO.data.spinCount==null){
    mySO.data.spinCount="Spin Results";
    if(mySO.data.prizeTotals==null){
    mySO.data.prizeTotals="Prizes Used";
    mySO.flush();
    //done starting up the local shared object
    //Store data locally
    function sendDataToLocal(spinResult){
    mySO=SharedObject.getLocal("spins","/");
    inputOut=spinResult;
    theTime = new Date();
    spinTime= (theTime.getYear()+1900)+" .
    "+(theTime.getMonth()+1)+" . "+theTime.getDate()+",
    "+theTime.getHours()+":"+theTime.getMinutes();
    mySO.data.spinCount+="\n"+spinTime+":
    "+inputOut+"\n----------------------";
    mytempPrize=prize1+" Used= "+used1+"\n"+prize2+" Used=
    "+used2+"\n"+prize3+" Used= "+used3+"\n"+prize4+" Used=
    "+used4+"\n"+prize5+" Used= "+used5+"\n"+prize6+" Used=
    "+used6+"\n"+prize7+" Used= "+used7+"\n"+prize8+" Used=
    "+used8+"\n"+prize9+" Used= "+used9+"\n"+prize10+" Used=
    "+used10+"\nTotal Spins:
    "+(used1+used2+used3+used4+used5+used6+used7+used8+used9+used10)+"\n";
    mySO.data.prizeTotals=mytempPrize;
    trace(mytempPrize);
    mySO.flush();
    inputOut="";
    //Done storing data locally
    </pre>

Maybe you are looking for

  • How can I change the default mail account in mail v6.3

    I have in my mail preferences four accounts. The first one is a "Google IMAP" and all others are just "IMAP". When I'm composing a new email it defaults to the wrong account. Intuitively I think the the first account listed under mail preference woul

  • Do I need an adapter or a volt converter 220 to 110v for my ipod touch 2nd gen.

    I have and ipod touch 20nd gen and an ipod shuffle 4th gen. I live in Colombia where we have 110 v and I am traveling to Argentina where they have 220 v.  I've been reading that i may not need a power or voltage converter but just an adapter, because

  • ECM - no status update of IT0759 to "approved"

    Dear all We are using the new iView "Planning Overview" in MSS for the higher-level Managers to review the planning of their subordinate organizational units. When an organizational unit is completed and the higher-level Manager reviews this organiza

  • 10.6.3 Causes MacBook Pro to overheat.

    After I upgraded to 10.6.3, my MacBook Pro gets incredibly hot, then crashes with the message my 'Startup Disk is Full'

  • Is it possible to place multiple Annotations on the same cwgraph?

    Hi, I'm trying to add multiple vertical bars (annotations) on a cwgraph. Here is the code that I have for a command button: Private Sub Annotation_Click()     S = S + 2     CWGraph1.Annotations.Add     CWGraph1.Annotations.Item(1).Shape.XCoordinates