Local shared object

I want to save local data on the end user's hard drive. I guess that I'm saving a cookie, which is identified through the name of the local shared object, in this case "my_swf-file.

I followed the swf via the file name version - Let's say for example "my_file_ver1 - 1.swf. This also works very well.

However, if I now save a new version of my file and publish it ("my_file_ver1 - 2.swf") - without other changes, then the local object is NOT found. How to keep data when I change the file name?

Morten

Attached code:


Use the localPath parameter to allow all files to your specified location to retrieve your sharedobject.

Tags: Adobe Animate

Similar Questions

  • Local shared objects can be moved to a new computer?

    We are waiting for 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 can't remember his previous note or level in the game.

    I understand that this information is usually stored in local shared objects. So my question:

    The LSO on our existing [Windows XP] can be moved to our new computer [Windows 7]? If so, I store it in the same location in Windows 7 as they are saved in Windows XP?

    Thanks for your advice.

    The dad

    I think that these data are stored in one of the following locations (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 just to, type the full path for these two records would be to use the environment variable % APPDATA %. you would type the following in the address bar of Windows Explorer:

    %AppData%\Adobe\Flash Player\AssetCache

    and/or

    %AppData%\Macromedia\Flash Player

    Now in Windows 7, they 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

    that would be by using the environment variable:

    %AppData%\Roaming\Adobe\Flash Player\AssetCache

    and/or

    %AppData%\Roaming\Macromedia\Flash Player

    What I would do, it is to copy all of the contents of two folders from XP to 7, before installing Flash Player on the new machine.

    Let us know if it worked.

  • Local shared objects

    I have a few questions about the LSO I can't find the answers in the manual or online...

    1 - will a LSO deleted if the user updates his flash drive?
    2 will be a LSO deleted from a user of safari if they "Reset Safari"?
    3. is there a way to backup LSO?

    Thanks for the time da. any guidance, help or are simple popular Hello.

    (1) I think that Yes, the cache can get erased on the new facility
    (2) I don't think so, he should only effect Safari and Flash has its own cache
    (3) not on the users system, unless you need to get fancy and back up everything to a DB server, and check against each unique IP that walks through the door.

    Also the user some control on the cover, may remove or limit the amount of memory used, this works well for things simple, like some prefs user for a site or something, but if you want to store any info long term, it would not be the best method... and I love SOs :)

  • Shared Object working locally, but not online

    My game saves your high score using the sharedobject object and the test it locally it works fine, but when the swf file is published and played online, it does not record the score of salvation. Is there some kind of new security problem with the registration of shared objects on the hard drives of the people now?

    you only need a sharedobject, but it will not cause a failure to use two.

    However, your 3rd line of code is problematic and should cause an error when you download (and it is no longer a sharedobject that hiscore associated with this server).

    You must use:

    {if (OwlHiScore.Data.HiScore)}

    hisc.mainScore.text = (OwlHiScore.data.HiScore) m:System.NET.SocketAddress.ToString ();

    }

  • Cannot bind to the shared object created with LabVIEW 2009

    I have problems referring to a shared library built from a LabVIEW VI under RHEL 5 with LabVIEW 2009.

    To illustrate the problem, I created a VI with a digital input and output that corresponds to a certain number. Then, I created a draft specification of build to create a shared library with a feature that makes use of this VI square. The shared object is created successfully (square.so).

    When I try to compile a test application written in C, that connects to this library, I get errors in the following link:

    cc  -I/usr/local/natinst/nidaqmxbase/include -I/usr/local/natinst/LabVIEW-2009/cintools build/square.so  test.c   -o test/usr/local/lib/liblvrtdark.so.9.0: undefined reference to `std::basic_istream >& std::basic_istream >::_M_extract(float&)@GLIBCXX_3.4.9'/usr/local/lib/liblvrtdark.so.9.0: undefined reference to `std::basic_istream >& std::basic_istream >::_M_extract(double&)@GLIBCXX_3.4.9'/usr/local/lib/liblvrtdark.so.9.0: undefined reference to `std::basic_istream >& std::basic_istream >::_M_extract(double&)@GLIBCXX_3.4.9'/usr/local/lib/liblvrtdark.so.9.0: undefined reference to `std::basic_ostream >& std::basic_ostream >::_M_insert(double)@GLIBCXX_3.4.9'/usr/local/lib/liblvrtdark.so.9.0: undefined reference to `std::basic_istream >& std::basic_istream >::_M_extract(float&)@GLIBCXX_3.4.9'/usr/local/lib/liblvrtdark.so.9.0: undefined reference to `std::basic_ostream >& std::basic_ostream >::_M_insert(double)@GLIBCXX_3.4.9'collect2: ld returned 1 exit statusmake: *** [test] Error 1
    

    Running ldd reveals that liblvrtdark.so.9.0 is used for the execution of labview.

    In order to investigate on what could be the cause of the problem, I have compiled the nidaqmx basic examples, and I don't have an error. Current running ldd as reveals that he uses liblvrtdark.so.8.2 for the view of laboratory, time of execution.

    My suspicion is that some components of labview are being compiled with gcc 3.4 while others are being compiled with gcc 4.1 (which is the default compiler in RHEL 5).

    Any ideas how I could fix the build errors?

    Thanks in advance for your suggestions.

    PS.

    I enclose a tar file with the source files and here are the details of the ldd:

    ldd build/square.so         linux-gate.so.1 =>  (0x008de000)        liblvrtdark.so.9.0 => /usr/local/lib/liblvrtdark.so.9.0 (0x00b9c000)        libc.so.6 => /lib/libc.so.6 (0x00110000)        libstdc++.so.6 => /usr/local/lib/LabVIEW-2009/patchlib/libstdc++.so.6 (0x009a7000)        libm.so.6 => /lib/libm.so.6 (0x00756000)        libdl.so.2 => /lib/libdl.so.2 (0x00256000)        libpthread.so.0 => /lib/libpthread.so.0 (0x0025a000)        /lib/ld-linux.so.2 (0x00b80000)        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00272000)
    
    ldd /usr/local/natinst/nidaqmxbase/lib/libnidaqmxbase.so.3.3.0         linux-gate.so.1 =>  (0x00e50000)        libnidaqmxbaselv.so => /usr/local/lib/libnidaqmxbaselv.so (0x00248000)        libc.so.6 => /lib/libc.so.6 (0x00689000)        /lib/ld-linux.so.2 (0x00b80000)        liblvrtdark.so.8.2 => /usr/local/lib/liblvrtdark.so.8.2 (0x00e51000)        libdl.so.2 => /lib/libdl.so.2 (0x00813000)        libpthread.so.0 => /lib/libpthread.so.0 (0x001b0000)        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x009c7000)        libm.so.6 => /lib/libm.so.6 (0x00b0a000)        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0050c000)
    

    Hi mimi,

    I'm happy to report that I managed to get the code to work. I have included some of the steps I experienced the problem in case it might help improve the documentation or future generations.

    In response to your question about the "error 1" reported by do, it's just an indication that detected a compiler error (it probably resembles the return code of the compiler).

    The errors ' undefined reference... @GLIBCXX_3.4.9 "have been narrowed down. The generated labview shared library, the square.so, links to /usr/local/lib/LabVIEW-2009/patchlib/libstdc++.so.6 which is a symlink to usr/local/lib/LabVIEW-2009/patchlib/libstdc++.so.6.0.9. I decided to compare this version of libstdc ++ that included with RHEL:

    strings /usr/local/lib/LabVIEW-2009/patchlib/libstdc++.so.6 | grep GLIBCXXGLIBCXX_3.4GLIBCXX_3.4.1GLIBCXX_3.4.2GLIBCXX_3.4.3GLIBCXX_3.4.4GLIBCXX_3.4.5GLIBCXX_3.4.6GLIBCXX_3.4.7GLIBCXX_3.4.8GLIBCXX_3.4.9GLIBCXX_FORCE_NEW
    
    strings /usr/lib/libstdc++.so.6 | grep GLIBCXXGLIBCXX_3.4GLIBCXX_3.4.1GLIBCXX_3.4.2GLIBCXX_3.4.3GLIBCXX_3.4.4GLIBCXX_3.4.5GLIBCXX_3.4.6GLIBCXX_3.4.7GLIBCXX_3.4.8GLIBCXX_FORCE_NEW
    

    So libstdc ++ RedHat does not include a string for GLIBCXX_3.4.9.

    With this in mind, I was able to get my test application to compile using the version of LabVIEW libstdc ++ using the following makefile:

    .PHONY: all cleanCPPFLAGS=-I/usr/local/natinst/nidaqmxbase/include -I/usr/local/natinst/LabVIEW-2009/cintoolsLDFLAGS=build/square.so \        /usr/local/lib/LabVIEW-2009/patchlib/libstdc++.so.6 \        -Wl,--rpath -Wl,/usr/local/lib/LabVIEW-2009/patchlib/
    
    all: test
    
    clean:        rm -f test *.o
    

    When you try to run the application, I got the following error:

    ./test: error while loading shared libraries: /usr/local/lib/liblvrtdark.so.9.0: cannot restore segment prot after reloc: Permission denied
    

    But apparently, it's because of SELinux prohibiting the use of libraries shared with moving text.
    This can be disabled by running /usr/sbin/setenforce 0 as root.

    The test application now works!

    See you soon,.

    RW

  • using the shared object

    The game I'm going to have a modified visual element.  Is it possible to save the entire objects?

    The way I see now I have either the database of every possible item edit and save whoever he is, or save each property of the item in a way where it can be re-created whenever it is loaded.

    Yes, this last part of what you said is what you need to do, where it is via a database or a shared object... 'save each property of the item in a way where it can be re-created whenever it is loaded' the choice is that you want to carry the burden of storing data on a server versus storing locally on the user's computer.

  • shared object why? If you already have all the data in a mysql database

    Hello.

    I see that a shraed object can be used to store the data locally is to say: what avatar you use, what level you are and what the screen you are currently on. But why you need or use a shared if object you all this info on a mysql database, anyway.

    In addition, a shared object can get destroyed as you clear the cache, as many people have. In addition, Governments are looking at the cookies and they start to hang.

    That is to say: should really so we have?

    I quite often to store a user name in a shared object and pre-fill the login form

    most of the browsers that will be for text html in any case boxes

    you could add an option "Remember me on this computer" connect directly, and then you would save username and password

    your site might only need to login to some privelidges, like posting in a forum. You may want to save the preferences for the shared object if they are applied before the opening of the session

    BTW, the shared object is not a cookie. clear cookies, cache and browser history make the shared object. In fact I bet that most of the users don't know how to delete it.

  • Shared object written do not?

    I have a client who has a video that is to play only once when a user visits. So I created a shared object to create a parameter that the video was played. It works perfectly on my site to test live and locally. However when the client he publishes on his ning site in the header it does not work. The strange thing is alive and locally on my server, you can see the object size and it is shared through the Advanced tab in the privacy settings of Flash. When on the server, the size is just two dashes? Ideas.

    Try:

    controls of existing shared object
    var mySharedObject = SharedObject.getLocal("calData","/");
    trace ("shared object played" + mySharedObject.data.played);

    If the variable date is it check it out
    If (mySharedObject.data.played! = null) {}
    trace ("found shared object do not play");
    }
    else {}
    trace ("must be playing the video");
    video_mc.gotoAndPlay ("Start");
    mySharedObject = SharedObject.getLocal("calData","/");

    mySharedObject.data.played = "yes";
    mySharedObject.flush ();
    }

  • FNDCPASS: error while loading shared libraries: libclntsh.so.10.1: cannot open shared object file: no such file or directory...

    Hello friends,

    After the end of my process of cloning... I try to change my login user ID pwd through FNDCPASS, but, unfortunately it show me this error as I try to used the @CMclean.sql. also, you cannot run.


    FNDCPASS: error while loading shared libraries: libclntsh.so.10.1: cannot open shared object file: no such file or directory...


    Score help out me

    Post the details of the version of the application and the operating system.

    Have you from the correct env file before running FNDCPASS? See (Doc ID 943005.1) for more details.

    If it comes to 12.1.x on Linux OS, please make sure that you follow all the steps by (Doc ID 761564.1) / (Doc ID 761566.1) and you have all applied pre - req OS packages.

    Thank you

    Hussein

  • libXi.so.6: cannot open shared object file: no such file or directory

    Hi all

    I install EBS R12.2 on OEL6.5

    I run:

    [root@crp2 ~] # / home/staging/startCD/Disk1/rapidwiz/rapidwiz

    Installation Wizard fast is to validate your file system...

    CMDDIR = / home/scene/startCD/Disk1/rapidwiz implementation

    Quick Installation Wizard will now launch the Java Interface...

    [root@crp2 ~] # Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/staging/startCD/Disk1/rapidwiz/jre/Linux_x64/1.6.0/lib/i386/xawt/libmawt.so: libXi.so.6: cannot open shared object file: no such file or directory

    I downloaded the number of towers which will libXi.so.6 which is XFree86-libs - 3.3.6 - 20.i386.rpm.

    But when I install it I have error

    [root@crp2 RPMS] # rpm - ihv XFree86-libs - 3.3.6 - 20.i386.rpm

    Preparing...                ########################################### [100%]

    file /usr/X11R6/lib/libXtst.so.6.1 to install XFree86-libs conflicts - 3.3.6 - 20.i386 with the xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386 package file

    How to solve this pleaseeee...

    Thank you

    MK

    Hello

    Refer to this blog post, it may be useful:

    Osama Mustafa Oracle blog: "java.lang.UnsatisfiedLinkError" when to run Oracle EBS

    Thank you

    A H E E R X

  • How to connect with Adobe Media Server random remote Shared Object

    Hello, I have my application on the web developed in Flash Professional CC and exported to Flash Player 13.

    In my web app, I have 2 classes: connection (which creates the connection with my Adobe Media Server) and GlobalObject (that creates the remote shared object).

    This is the code I have:

    Connection class

    import flash.events.AsyncErrorEvent;

    import flash.events.Event;

    import flash.events.IOErrorEvent;

    import flash.events.SecurityErrorEvent;

    import flash.events.SyncEvent;

    import flash.events.NetStatusEvent;

    import flash.net.NetConnection;

    import flash.net.ObjectEncoding;

    import flash.net.SharedObject;

    var nc:NetConnection = new NetConnection();

    nc.objectEncoding = ObjectEncoding.AMF3;

    NC.client = this;

    nc.proxyType = "best";

    nc.addEventListener (NetStatusEvent.NET_STATUS, netSAServerRTMPStatus);

    nc.addEventListener (IOErrorEvent.IO_ERROR, onIOError);

    nc.addEventListener (AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);

    nc.addEventListener (SecurityErrorEvent.SECURITY_ERROR, onSecurityError);

    NC. Connect ("rtmp://myAMS_URL:1935 / myApp", "myRandomChannel");

    var _ro:GlobalObject;

    function onIOError(e:IOErrorEvent):void

    {

    trace ("onIOError");

    }

    function asyncErrorHandler(e:AsyncErrorEvent):void

    {

    trace ("asyncErrorHandler =" + e.error);

    }

    function onSecurityError(e:SecurityError):void

    {

    trace ("onSecurityError =" + e.error);

    }

    function netSAServerRTMPStatus(event:NetStatusEvent):void

    {

    Switch (info.code)

    {

    case "NetConnection.Connect.Success":

    trace ("Connected");

    ConnectToSharedObject();

    by default:

    trace (e.info.code);

    break;

    }

    }

    function ConnectToSharedObject (): void

    {

    _ro = new GlobalObject();

    var randomRO:Number = Math.Random ();

    _ro. Connect (randomRO, nc, false);

    trace (_ro. Connected);

    If (_ro. Connected is true)

    {

    _ro.addEventListener ("onNewMsg", onNewMsg);

    _ro.sendNewMsg ("hello");

    }

    }

    function onNewMsg(e:Event):void

    {

    trace (e.Target.chatMsg);

    }

    GlobalObject class

    import flash.events.AsyncErrorEvent;

    import flash.events.Event;

    import flash.events.EventDispatcher;

    import flash.events.SyncEvent;

    import flash.net.NetConnection;

    import flash.net.ObjectEncoding;

    import flash.net.SharedObject;

    var so: SharedObject;

    var connected: Boolean;

    var _msg:String;

    function GlobalObject()

    {

    Super();

    }

    function connect(p_soName:String,_p_nc:NetConnection,_p_persistant:Boolean):void

    {

    create StoredObject

    So = SharedObject.getRemote (p_soName, p_nc.uri, p_persistant);

    so.client = this;

    Configure the onSync events

    so.addEventListener (SyncEvent.SYNC, onSync);

    connect to the SO

    so. Connect (p_nc);

    connected = true

    }

    function logout (): void

    {

    so. Close();

    }

    function onSync(evt:SyncEvent):void

    {

    trace ("onSync");

    }

    public void sendNewMsg(msg:String):void

    {

    so. Send ("mewMsg", msg);

    }

    function mewMsg(msg:String):void

    {

    _msg = msg;

    dispatchEvent (new Event ("onNewMsg", _msg));

    }

    The problem is that I have ever received the 'onSync' event, then, so I never got the messages. What I am doing wrong? I have to add or change?

    I have no code (C:\ProgramFiles\Adobe\AdobeMediaServer5\applications\myApp) server-side. All this code is compiled and exported as a SWF file, and this is the file that the user charge when go to my Web page.

    Hope someon could help me.

    Best regards

    Manel

    Hello

    The problem is solved! The point is that the AMS folder that I created were defined as 'direct' default app. Once I changed that, it work corretly.

    Best regards

  • move VMs from the local shared storage

    We are running ESXi 4.1 with local storage that we did experiments with VMware. Close have 2 new purchased hosts with a SAN for the shared storage, hopefully, they will arrive at the end of January. I need to build a couple of virtual machines to take care of a few issues until our new VM environment is set up. If I create a new virtual machine on my host with local storage and that you want to move to new hosts and the shared storage the arrival of our new purchase, I guess I can do it with vMotion? Other methods too? Also, is there anything I need to worry as move us VMS local shared storage storage and a new host of ramifications?

    Thanks for helping a newbie, Tom

    You will need Enterprise or Enterprise Plus access to Storage vMotion. vMotion moves a virtual machine from one host to the host running but no storage.

  • Shared objects: where are they?

    Hello!

    I run Mac OS X 10.6.8

    I want to remove the shared objects associated with my own website that I run on my own computer.

    The SWF file that contains my site stores the user name and the password I use to enter the site.

    To do a cleanup after the entrance and, of course, remember the wrong credentials, I removed the related objects shared:

    ~/Users/me/Library/Preferences/Macromedia/Flash Player / #SharedObjects / < some number > / < mySiteFolder > /.

    But it is not enough.

    I can not even access my own site!

    Is another place on my computer stores shared objects?

    I looked for some, but in vain...

    Please, help me!

    Thank you in advance for any solution.

    fix.  You must use the same name and path if.

    Depending on your original for path, you need to use a swf file the same name as the original and placed in your original directory.

    for example

    var so:SharedObject is SharedObject.getLocal ("yoursoname", "yoursopath");.

    so. Clear();

    If you have used ' / ' for your path then you should be able to use any swf in the same domain by using the same name and ' / '.

  • libclntsh.so: cannot open shared object file: no such file or directory

    Hello
    After reclassification of 10204 at 11202 successfully, we get the following in our informatica application error message:

    Database driver event...Error occurred loading library [libclntsh.so: cannot open shared object file: No such file or directory]Database driver event...Error occurred loading library [libpmora8.so]
    I checked the liberary is are:
    /u01/app/oracle/product/11.2.0/DB11gR2/lib]$ ls -l libclntsh.so
    lrwxrwxrwx  1 oracle dba 60 Jul 12 10:03 libclntsh.so -> /u01/app/oracle/product/11.2.0/DB11gR2/lib/libclntsh.so.11.1*
    Any Suggestion?

    Thank you
    Yoav

    Yoav wrote:
    Hi Brian,.
    Yes, I checked that informatica is ponting on the right LD_LIBRARY_PATH:

    On the right, but now we know that it is a 32-bit application that will need the 32-bit library files. So you will need to install Oracle Client 32 bit and have your application to connect to the database using that.

    HTH,
    Brian

  • The Adobe Labs Cirrus Server does support Shared Objects?

    Anyone know if the labs of adobe cirrus free service provides support for remote shared objects?

    Im trying to use a remote shared object to communicate between instances of my NearID flash application.

    Synchronization event does not fire after setting a property on the shared object, no errors are triggered either.

    function initialize (): void {}

    try {}

    SO = SharedObject.getRemote (false "distinctive sign", NetConnection.uri),

    }

    catch (error: Error) {}

    status_textbox. Text = Error.ToString;

    }

    SO.addEventListener (SyncEvent.SYNC, syncUpdateHandler);

    SO.addEventListener (NetStatusEvent.NET_STATUS, netConnectionHandler);

    SO.connect (NC);

    SO.setProperty ("nearid", NC.nearID);

    }

    function syncUpdateHandler(event:SyncEvent):void {}

    status_textbox. Text = "Sybc Trigerred ';

    }

    The help is much appreciated, thanks in advance.

    the name of Cirrus service code does not support shared objects. Cirrus isn't FMS.

    the * only * things done Cirrus are: accepts client connections P2P Research/introduction by peerID, bootstrap group RTMFP (via "server channel" if active group) and a short message relay function.

    things Cirrus does not: save data, stream video on demand, relay of client-to-Server stream between connected clients, shared objects, scripting on the server or any other function FMS side performs.

Maybe you are looking for

  • cannot re - pair watch phone

    Hello I thought I had lost my odd iwatch so it. Found today but don't can pair it with the phone. The method of camera never worked in the first place, unable to do it manually this time as watching isn't 'I' symbol. Any help will be appreciated. Tha

  • HP Pavilion 15 laptop: defective Ethernet Jack

    Hi all It seems that the RJ45 cable can not install propeerly into the socket on my laptop, I use a toothpick to jam it so the light comes on and I know it works. Can the adapter replace easily if I open the computer? where I buy the piece in Europe

  • How much is a 2009 Imac end 27 "a value?

    Apple iMac 27 inch late 2009 2.8 GHZ Quad Core i7 16 GB OF RAM 2 TB hybrid SSHD Today, what would be its value?  How much time could still be usable for?

  • ThinkCentre edge 72 video card

    Hi guys... I just bought a lenovo thinkcentre edge 72 and I have a question. My sistem is i5 6 mb l3 cache and 4 GB ddr3 1600 mhz... First of all, I would like to know what latency memory have because I want to buy another 4 GB of ram. Second... on t

  • Lost internet connection of WRT120N

    Hello! This is my problem: -I lose the internet connection at least 1 time / day. I have 2 wired and wireless 2 devices. -When the internet is down I am connected to the router (wired and wireless, the connection is not lost / disconnected cable...).