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);

Similar Messages

  • Dynamic Shared Object - Is This Possible?

    What I want in my app is to have 2 tilelists and an array collection of items which will populate the first tilelist and these objects can be dragged between both tilelists. Then the user can click a save button which will save the statuses of both tilelists so the items that are present/not present in each tilelist when the app is closed will still be there when the app is restarted.
    The problem is I want my array collection to be populated dynamically from mysql data on a server.
    I have no problem getting dynamic data from a mysql database into an array colllection via http request and I have no problem getting the shared object to work IF the array collection is defined within the app the usual way but I'm having trouble getting these 2 things to work together. 
    Can anybody tell me if it is indeed possible to have a dynamically populated array collection stored as a shared object on the user's system and would anyone be willing to help me out if I post my code so far? Cheers.

    Hi Greg. The way I usually post code is by clicking the small arrows above and then clicking syntax highlighting and then xml. The problem is this seems to remove all of the quotation marks ("") from my code which is what is causing the errors you mentioned. I've posted it below just by simply copying and pasting. I hope that works better. Cheers for your help:-
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="newsService.send(); initprofile1NewsAndSportSO()">
    <mx:Script><![CDATA[
     import mx.rpc.events.ResultEvent; 
    import mx.collections.*; 
    import flash.net.SharedObject; 
    public var profile1NewsAndSportSO:SharedObject; 
    Bindable] 
    private var profile1NewsAndSportaddLinksFullAC:ArrayCollection; 
    Bindable] 
    private var profile1NewsAndSportaddLinksAC:ArrayCollection; 
    private function newsResultHandler(event:ResultEvent):void{
    profile1NewsAndSportaddLinksFullAC=newsService.lastResult.newscategory.news
    as ArrayCollection;profile1NewsAndSportaddLinksAC=newsService.lastResult.newscategory.news
    as ArrayCollection;}
    // private var profile1NewsAndSportaddLinksFullAC:ArrayCollection = new ArrayCollection([
    // {label:"BBC News"},
    // {label:"ITV"},
    // {label:"Sky News"}
    // ]); // private var profile1NewsAndSportaddLinksAC:ArrayCollection = new ArrayCollection([
    // {label:"BBC News"},
    // {label:"ITV"},
    // {label:"Sky News"}
     private function profile1NewsAndSportReset():void{resetprofile1NewsAndSportAC();
    profile1NewsAndSportAddLinksTilelist.dataProvider = profile1NewsAndSportaddLinksAC;
    profile1NewsAndSportLinkChoice.dataProvider =
    new ArrayCollection([]);}
    private function resetprofile1NewsAndSportAC():void{profile1NewsAndSportaddLinksAC.removeAll();
    for each(var obj:Object in profile1NewsAndSportaddLinksFullAC){profile1NewsAndSportaddLinksAC.addItem(obj);
    private function initprofile1NewsAndSportSO():void{profile1NewsAndSportSO = SharedObject.getLocal(
    "profile1NewsAndSport"); 
    if(profile1NewsAndSportSO.size > 0){ 
    if(profile1NewsAndSportSO.data.profile1NewsAndSportaddList){ 
    if(profile1NewsAndSportSO.data.profile1NewsAndSportaddList != "empty"){ 
    var profile1NewsAndSportaddList:Array = profile1NewsAndSportSO.data.profile1NewsAndSportaddList.split(","); 
    var profile1NewsAndSporttempAC1:ArrayCollection = new ArrayCollection(); 
    for each(var str:String in profile1NewsAndSportaddList){ 
    for each(var obj1:Object in profile1NewsAndSportaddLinksAC){ 
    if(str == obj1.label){profile1NewsAndSporttempAC1.addItem(obj1);
    continue;}
    if(profile1NewsAndSporttempAC1.length > 0){profile1NewsAndSportAddLinksTilelist.dataProvider = profile1NewsAndSporttempAC1;
    if(profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList){ 
    var profile1NewsAndSportchoiceList:Array = profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList.split(","); 
    var profile1NewsAndSporttempAC2:ArrayCollection = new ArrayCollection(); 
    for each(var str2:String in profile1NewsAndSportchoiceList){ 
    for each(var obj2:Object in profile1NewsAndSportaddLinksAC){ 
    if(str2 == obj2.label){profile1NewsAndSporttempAC2.addItem(obj2);
    continue;}
    if(profile1NewsAndSporttempAC2.length > 0){profile1NewsAndSportLinkChoice.dataProvider = profile1NewsAndSporttempAC2;
    else{profile1NewsAndSportReset();
    private function saveprofile1NewsAndSport(event:MouseEvent):void{ 
    var profile1NewsAndSportaddList:String = ""; 
    if(profile1NewsAndSportAddLinksTilelist.dataProvider){ 
    if(ArrayCollection(profile1NewsAndSportAddLinksTilelist.dataProvider).length > 0){ 
    for each(var obj1:Object inprofile1NewsAndSportAddLinksTilelist.dataProvider){
    profile1NewsAndSportaddList += obj1.label +
    else{profile1NewsAndSportaddList =
    "empty";}
    profile1NewsAndSportSO.data.profile1NewsAndSportaddList = profile1NewsAndSportaddList;
    var profile1NewsAndSportchoiceList:String = ""; 
    for each(var obj2:Object inprofile1NewsAndSportLinkChoice.dataProvider){
    profile1NewsAndSportchoiceList += obj2.label +
    profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList = profile1NewsAndSportchoiceList;
    profile1NewsAndSportSO.flush();
    ]]>
    </mx:Script>
     <mx:HTTPService id="newsService" resultFormat="object" result="newsResultHandler(event)" url="http://www.coolvisiontest.com/getnews.php"/> 
    <mx:TileList id="profile1NewsAndSportLinkChoice" fontWeight="bold" dragEnabled="true" dragMoveEnabled="true" dropEnabled="true" height="166" width="650" top="5" left="521" columnCount="5" rowHeight="145" columnWidth="125" backgroundColor="#000000" color="#FFFFFF">
     <mx:itemRenderer>
     <mx:Component>
     <mx:Canvas width="125" height="129" backgroundColor="#000000">
     <mx:Image source="{'http://www.coolvisiontest.com/interfaceimages/images/'+ data.icon}" top="5" horizontalCenter="0"/>
     <mx:Label text="{data.label}" bottom="1" horizontalCenter="0"/>
     </mx:Canvas>  
    </mx:Component>
     </mx:itemRenderer>  
    </mx:TileList>
     <mx:TileList id="profile1NewsAndSportAddLinksTilelist" fontWeight="bold" dragEnabled="true" dragMoveEnabled="true" dropEnabled="true" height="166" width="385" top="5" left="128" columnCount="3" rowHeight="145" columnWidth="125" backgroundColor="#000000" color="#FFFFFF">
     <mx:itemRenderer>
     <mx:Component>
     <mx:Canvas width="125" height="129" backgroundColor="#000000">
     <mx:Image source="{'http://www.coolvisiontest.com/interfaceimages/images/'+ data.icon}" top="5" horizontalCenter="0"/>
     <mx:Label text="{data.label}" bottom="1" horizontalCenter="0"/>
     </mx:Canvas>  
    </mx:Component>
     </mx:itemRenderer>  
    </mx:TileList>
     <mx:Button click="profile1NewsAndSportReset()" id="reset" label="Reset" y="5" height="25" x="5"/>
     <mx:Button click="saveprofile1NewsAndSport(event)" id="save" label="Save Changes" x="5" y="38" width="113" height="25.5"/>
     </mx:WindowedApplication>

  • 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.

  • How to Get property values from Shared Object in client's load event - Very urgent

    I am using shared object to share data between two users. First user connect to shared object and set some value in shared object. Please consider that second user has not connected with the shared object yet.
    Now when second user connects to the server and try to get that property set by first user, he could get shared object but could not get properties of Shared object set by first user. I observed few times that Second user can get these properties within "Sync" event between two users. But I would like to get these values for Second user in any stage (i.e. in load event etc.). Whenever Second user tries to get the property of Shared object, the object will reset the actual property value and then return reset value.
    Anyone faced such issue while using shared object between two users. If so, I would appreciate if you could let me know your suggestions for following questions:
    1) Is there any way to get all the properties of shared object before sync event called, as I want to get it immediately when second user connect to the application and perform next task based on the values stored in shared object.
    2) Is it possible for second user to check whether any property has been set by first user? So that second user can use the property instead of reset it.
    Any kind of help would be greatly appreciated.
    Thank You.

    I am using shared object to share data between two users. First user connect to shared object and set some value in shared object. Please consider that second user has not connected with the shared object yet.
    Now when second user connects to the server and try to get that property set by first user, he could get shared object but could not get properties of Shared object set by first user. I observed few times that Second user can get these properties within "Sync" event between two users. But I would like to get these values for Second user in any stage (i.e. in load event etc.). Whenever Second user tries to get the property of Shared object, the object will reset the actual property value and then return reset value.
    Anyone faced such issue while using shared object between two users. If so, I would appreciate if you could let me know your suggestions for following questions:
    1) Is there any way to get all the properties of shared object before sync event called, as I want to get it immediately when second user connect to the application and perform next task based on the values stored in shared object.
    2) Is it possible for second user to check whether any property has been set by first user? So that second user can use the property instead of reset it.
    Any kind of help would be greatly appreciated.
    Thank You.

  • Synchronizing Shared Objects

    // Server side
    application.onAppStart = function()
    // ... code here
    application.users_so = SharedObject.get("users_so", false);
    // ... more code here
    application.onConnect = function(newClient, userID)
    // client object properties being setup, etc
    application.users_so.setProperty(userID, newClient);
    // ... more code
    application.acceptConnection(newClient);
    // Client side
    nc.connect(rtmpURL, userID);
    users_so = SharedObject.getRemote("users_so", nc.uri, false);
    users_so.connect(nc);
    When I call the above on the client side I should receive a
    copy of all users that are stored in the server's shared object
    indexable by users_so.data[userID] correct?
    on the server side I perform the following:
    application.acceptConnection(newClient);
    newClient.call("updateStatus", null, userID);
    on the client side the updateStatus method looks like this:
    nc.syncQuestions = function(userID:String)
    trace("--> "+users_so.data[userID]+" <--");
    }; (is the ';' necessary?!?)
    this prints: --> undefined <--
    WHY?!? :( --> is this because of a race condition between
    the nc.connect() and the users_so.connect() ??
    NOTE: My problem seems to arise when I try to re-connect
    (i.e. connect w/ client, close client, re-open client)
    Cheers

    I have the feeling it's a timing problem because you're not
    waiting for the onStatus event from the netconnection before you
    connect the shared object.
    Try adding an onStatus handler to your netconnection, and
    wait for a code of "NetConnection.Connect.Success". Then connect
    your shared object.

  • Shared Objects "cx_shm_external_reference" exception

    Hi all,
    i need to store an external reference in a shared object. I have a method of the class A which has a reference as import parameter. Is it possible to store this reference in a stored object so that i have access to this reference from another class B?
    With the following code i get the "cx_shm_external_reference" exception, when calling detach_commit() method.
    DATA: lo_handle TYPE REF TO zcl_server_shared_obj,
            lo_root TYPE REF TO zcl_server_shared_obj_root.
      TRY.
          lo_handle = zcl_server_shared_obj=>attach_for_write( ).
          CREATE OBJECT lo_root AREA HANDLE lo_handle.
          lo_handle->set_root( lo_root ).
          lo_root->go_server = io_server.
          CALL METHOD lo_handle->detach_commit.
        CATCH cx_shm_exclusive_lock_active
          cx_shm_version_limit_exceeded
          cx_shm_change_lock_active
          cx_shm_parameter_error
          cx_shm_pending_lock_removed
          cx_shm_wrong_handle
          cx_shm_already_detached
          cx_shm_secondary_commit
          cx_shm_event_execution_failed
          cx_shm_external_reference
          cx_shm_completion_error
      ENDTRY.
    Thanks, Florian
    Edited by: Florian Halder on Jun 4, 2009 1:26 PM

    Shared objects have to be self-contained. You cannot have references that point outside the shared object.
    Cheers
    Graham Robbo

  • Flex2 and shared objects

    Hello all
    We have made a cool FLEX application (which also in on Flex
    showcase) and it works like a charm with Firefox, while in IE it
    will go down in flames with an IE-exception after some minutes of
    active use.
    And we cannot find the error. We have a suspicion that this
    is related to our use of shared objects.
    The application displays financial charts, and the values are
    stored in the cache as a shared object, so it will display faster
    the next time. This works perfect with Firefox and in IE not.
    Please try this out:
    Radar Lite
    In IE, you break it by switching stocks in the grid control,
    this will trigger a get on new chartvalues that will be stored in
    shared objects
    I have been googling like crazy to find a solution of this
    problem, without success. Has anyone here heard of a problem
    similar to this. We could really need some help here.
    Thanks in advance.
    Lars

    Hi there
    I am facing the same problem , My problem is "I have
    developed a rss reader ,the App is running fine and getting refresh
    in Mozilla but the it is not getting refresh in IE . "
    I am trying to solve this problem from last 3 days but cant
    get it right ,
    I need some advice and also some sort of help of i can get
    from any one .
    thanks
    vivek manchanda

  • Issue with Shared Objects

    Hi all,
    I've a problem with a program working on Shared Objects technology.
    We have a Job, scheduled in 18 parallelism, and each one writes into the SHM controlled by a SHMA Class.
    At jobs ending, a program reads content from the area and sends an automatic e-mail with the results.
    Everything works well if the writer program is executed on-line.
    Otherwise, in background, seems that nothing is stored in the SHM.
    Here's the code executed by the writer program:
    FORM shared_memory_access  TABLES  it_fehler STRUCTURE rpfausg.
      DATA: errors_reference TYPE REF TO data.
      DATA: lx_pterl00       TYPE REF TO zcx_pterl00_collector.
      TRY.
    * --> Get SHM Access
          CALL METHOD zcl_pterl00_collector_root=>build
            EXPORTING
              invocation_mode = cl_shm_area=>invocation_mode_explicit.
    * --> It's ok?
          IF zcl_pterl00_collector_root=>area_exists EQ 'X'.
    * --> Fill Data:
            GET REFERENCE OF it_fehler[] INTO errors_reference.
            CALL METHOD zcl_pterl00_collector_root=>fill_area_with_data
              EXPORTING
                error_messages_dref = errors_reference.
          ENDIF.
        CATCH zcx_pterl00_collector INTO lx_pterl00.
          MESSAGE lx_pterl00 TYPE 'S' DISPLAY LIKE 'E'. "Non-blocking -> JOBS
      ENDTRY.
    ENDFORM.                    " SHARED_MEMORY_ACCESS
    Here is the section from the class handling the attachment to the SHMA:
    METHOD if_shm_build_instance~build.
      DATA: lx_collector TYPE REF TO zcx_pterl00_collector.
    * --> Automatic building of instance:
      TRY.
          CALL METHOD get_handle_for_update( inst_name ).
        CATCH zcx_pterl00_collector INTO lx_collector.
          MESSAGE lx_collector TYPE 'X'.
        CATCH: cx_shm_no_active_version.
          TRY.
              CALL METHOD get_handle_for_write( inst_name ).
            CATCH zcx_pterl00_collector INTO lx_collector.
              MESSAGE lx_collector TYPE 'X'.
          ENDTRY.
        CATCH: cx_shm_inconsistent.
          zcl_pterl00_collector=>free_area( ).
          TRY.
              CALL METHOD get_handle_for_write( inst_name ).
            CATCH zcx_pterl00_collector INTO lx_collector.
              MESSAGE lx_collector TYPE 'X'.
          ENDTRY.
      ENDTRY.
    ENDMETHOD.
    I cannot explain why multiple jobs do not populate the area...

    Hi Rob,
    if your requirement is to have many (18) active processes all updating the shared object, and very few simply reading the shared object, then versioning is probably not what you require.
    Versioning allows readers to continue to attach and read the active shared object instance while the updater gets their own instance of the shared object. When the updater does a detach_commit the old instance becomes obsolete and all new requests to attach will be diected to the new instance. The old instance will be cleaned up by garbage collection once all of its readers have detached.
    If your programs primarily attach for update then you will decrease performance with versioning because a new instance needs to be created at every attach for update.
    Perhaps you should just retry the attach for update after a small period of time has passed?
    If, on the other hand, you do have lots of other readers of the shared object you may well still find that it is more efficient not to have versioning. I build a web shop catalogue using shared objects and found that versioning severly hampered performance. This was because, once the catalogue was initialised, updaters were pretty rare but readers were constant.
    BTW make sure you keep the locks on the object as short as possible. Do all your preparation work first, then attach for update, update, detach as quick as possible.
    Cheers
    Graham Robbo

  • Using Shared Object Libraries

    How (or what) do we set when using shared object libraries?
    We have Java Native Methods which are implemented using C++ and stored in shared object libraries. We can build our project, but when trying to execute the project, the shared object libraries are not found. We had tried to set the external execution settings to include the library paths, but nothing seems to take affect.
    What do we need to set to run with the shared object libraries?

    RK,
    I appreciate your responce, hopefully we'll get this worked out. I will try to give you as much information as I can so you will hopefully understand the problem.
    We have added a Library Reference to our project - which is a jar file - this jar file contains our Business Objects which are implemented in Java. Within this Library Reference, there is a Java class which has a Native method. The method is implemented in C++ The C++ implementation of this method is within a C++ shared object library (libname.so).
    How do we let Creator know that we need to link in this C++ Shared Object Library at run time?
    The Modifers Properties for the method in the library reference are correctly set - that is they are set to Native. For a method within a java element, selecting or un-selecting this modifier simply changes the method declaration. It does not tell Creator where the actual implementation is (shared object library in this case).
    As originally stated, we tried to include our shared object library in the Execution Property of the properties window for the Java Element. Here is what we have done so far - all unsuccessful....
    Under the External Execution Property - we added the environment variable LD_LIBRARY_PATH set to our shared object library path. We also selected the Append Environment Variable (set to true). We are not able to modify the Library Path of the External Execution Property - it will not allow changes - all buttons are disabled in the pop up window.
    There are no properties for the Internal Execution within the Executor Properties, so there is nothing we can set there.
    We have tried to set the Debugger Execution properties in the same manner as the External Execution properties to run the project in Debug mode - and have the same problem - while executing the project, we get the error message which indicates that our shared object library can not be found.
    There are no property settings available on the J2EE Server Execution Properties to set.
    What do we need to set so that this Shared Object Library will be located during execution of our project under SJSC?
    Thank you for any suggestions you may have.
    --Scott                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Shared object help

    The game I am making is going to have a visually edited item.  Is it possible to save whole objects?
    The way I see it now I either have to database every possible item edit and save which one it is, or save every property of the item in a way where it can be re-created every time it's loaded.

    Yes, that last part of what you said is what you need to do, where it is via a database or a shared object... "save every property of the item in a way where it can be re-created every time it's loaded"  The choice is wheteher you want to bear the burden of storing the data on a your server versus storing it locally on the user machine.

  • Modifying Dependent Shared Objects in Executables

    I am attempting to perform the following operations on ELF32 format files:
    1) modify the names of the NEEDED shared objects that are referenced by an executable after the executable has been built.
    2) modify the embedded SONAME of a shared object file (adding one if it does not exist) after the shared object file has been built.
    3) modifying the NEEDED shared objects that are referenced in a shared object file after it has been built.
    The shared objects and executables are built from third party software that we have the source code for, but we do NOT want to modify the Makefile for each third party package each time we build a new version.
    Of the three items, the one that is proving the most challenging is the modification of the executable files after they have been built.
    Is there either a tool that enables me to modify these fields in the shared objects as well as the executables? Is there a way that I can re-link a shared object or executable file and then specify that modifications be made to the existing SONAME and NEEDED information?
    (I have attempted unsuccessfully to use the elf library on executable files. Even relatively simple operations, such as modifying the length of the dynamic string section in which the NEEDED shared object is stored breaks the executable file.)

    Hello Tomi,
    First, thank you for taking the time to write such a well
    though-out suggestion.  Are you familiar
    with the “LabVIEW Object-Oriented Programming: The Decisions Behind the Design”
    document?  I think the reason we chose to implement a ‘by
    value’ strategy, is that is more in line with the LabVIEW programming paradigm
    of dataflow, and would make sense to most of our LabVIEW users.
    I think your suggestion is interesting, and it does
    highlight the need to think outside of the conventional LabVIEW box and look to
    some of the innovative things other languages do.  However, I think we all agree that
    synchronization takes careful planning and extra work for the programmer.  Even with an ‘ideal’ solution I see no way
    around this.  For LabVIEW users today,
    one great way to get synchronized ‘by reference’ semantics with your objects is
    to use a single-element queue to pass your object.  The queue itself is passed ‘by reference’ and
    is inherently synchronized!  The does
    have the disadvantage of adding one more small layer of complexity to your
    program, but some complexity would have to be introduced in any situation.  The other disadvantage with this is that it
    is not always an intuitive way to implement your program and requires some
    amount of LabVIEW knowledge before one would generally come across this
    technique.
    In any case, I appreciate the time and effort you put in to
    your suggestion.  Please make sure that
    you submit the suggestion formally through the NI Product Suggestion Center so
    that it can be reviewed by some of the decision makers here.
    Thanks again,
    Travis M
    LabVIEW R&D
    National Instruments

  • 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

  • What is shared objects?

    Hi all,
       can you tell me what is shared objects and how it is used in abap objects, if possible explain with some examples.
    Thanks
    Sathish

    Hi Satish,
    <b>Shared Objects</b>
    Shared Objects are objects in the shared memory. Instances of classes and anonymous data objects can be stored. Named data objects can be stored as attributes of classes.
    <b>Shared Memory</b>
    The shared memory is a memory area on an application server, which is accessed by all of this server’s ABAP programs. Before shared objects were implemented, ABAP programs could access this memory area using the EXPORTand IMPORT statements exclusively with the SHARED BUFFER or SHARED MEMORY additions, and instances of classes or anonymous data objects existed exclusively in the internal session of an ABAP program.
    With the implementation of shared objects with Release 6.40, the shared memory was enhanced with the shared objects memory that stores shared objects. The size of the shared objects memory is determined by the abap/shared_objects_size_MB profile parameter.
    Shared objects are stored in what are called shared memory areas. You create and manage areas and their properties using Transaction SHMA .
    Now you got an idea of what shared objects are :
    Go to this link you will find screen shots and a smaple program here.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/900e3d9d-559e-2910-9dae-b132157a220f">shared_objects</a>
    Reward points if useful,
    Aleem.

  • 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

  • Itunes windows xp error message

    I recently upgraded to itunes 2. I was able to transfer music so everything appeared ok. Later when I opened itunes I got a message a certain file was missing and advised that I reinstall. So deleted itunes software and reinstalled itunes installer a

  • Baseline Date - Payment Terms

    Hi, The users have created the Payment Term for the Credit Management purposes and the same has been maintained in the Customer Masters. While creating the Payment Term, the Default for baseline date has been specified as "Document Date". Thus the ba

  • My 8826 tv out dont work

    Hello my MSI 8826 tv out dont work i use the RCA TV out but i dont see nothing in the tv ?( , are there some step for install this tv out?

  • In File-XI-MSAccess Scenerio, File is not Moving

    Dear All, I am having one .XML file in one folder & i m trying to move it to MS Access table. But it is not moving to MS Access. I have checked the adapters & FIle Adapter & JDBC Adapters are working fine ie. they are green. Also, when i am seeing in

  • How to setup a user account?

    i am new to the macbook air and have logged in and made an account but now i want to make another and have no idea how to.