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?

Similar Messages

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

  • 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

  • 9 shared objects performance question

    I have 9 shared objects 8 of which contain dynamic data which i cannot really consolidate into a single shared object because the shared object often has to be cleared.....my question is what performance issues will I exsperience with this number of shared objects .....I maybe wrong in thinking that 9 shared objects is alot.....anybody with any exsperience using multiple shared objects plz respond.

    I've used many more than 9 SO's in an application without issue. I suppose what it really comes down to is how many clients are connected to those SO's and how often each one is being updated.

  • How can i use the shared object already present in the system from java.

    explanation:
    Actually there are shared objects present in the jdk which is used by java itself.I want to know if i can use the methods in any library file(shared object) which is already present in the system.
    Or the question can be put this way how does the java call the native methods? (Can we do that explicitly) in our code.

    It isn't entirely clear what you mean by 'shared' objects and what the relationship with these shared objects and calling native code is.
    There are no shared objects in the Java language, only the java platform.
    The platform system properties are exposed via the System class (java.lang package).
    You are free to create your own shared objects by using static member access or some other mechanism.
    Your access to methods in any of the API's is dictated by the access type you have, normally public being the only completely open access allowing complete visibility.
    You can call native methods, thats what JNI is for. Calling native methods in classes other than your own is generally done using the API provided by the developer(s) of those classes.

  • Confusion about shared objects...

    Hi...
    I'm building an application using JSP/Servlet technology and I've ecountered some behavior that is not that unexpected, but is something I can't seem to figure out how to get around.
    I've been using two reference manuals over the last year, to learn JSP/Servlet development and I'm not sure that either one of them, do a very good job of explaining how to avoid the problem I'm seeing. (Or maybe they do, but I'm just too dense to figure it out.)
    Both are O'Reilly manuals:
    Java Servlet Programming - Jason Humber with William Crawford
    Java Server Pages - Hans Bergsten
    Anyway, I've tried to model my application using a MVC approach.
    My controller servlet UserCtl.java is small and routes requests as a controller should.
    My business logic is in a bean. UserBean.java This object has properties that represent the fields from my UserMaster table and corresponding setter/gettter methods. It also has methods to retrieve an individual user record, insert a record, update a record, delete a record and retrieve a list of records.
    The scenario I'm experiencing is as follows:
    I bring up my application in the browser on two different PC's.
    I display the user list on each PC.
    Now...
    On each PC, I simultaneously click the Update User, selecting user 1 on pc 1 and user 2 on pc 2.
    My application then, creates a record in a lock file, for each user record. This seems to work properly, even during the simultaneous click.
    However...
    When the update form is subseqently displayed, I have a situation where the form on each of the 2 pc's contains the same data.
    I can verify that 2 different lock records were created, indicating that I did not click the same user by accident, however, the data in the form is clearly for only one of the users.
    I've read the sections over and over and I feel like I understand their comments on concurrency and how the condition I'm seeing could occur, however, I've tried many things to overcome this and nothing seems to work.
    Originally, I opened my JDBC database connection at the servlet level. I've subsequently tried doing it when I create the bean in the controller and subsequent to that, creating the connection object within the method that retrieves the user data inside the bean.
    I've tried moving all my code into functions, so that any bean variables would be localized.
    I've creating a bean from the JSP session bean object and then retrieving the record, and putting the bean back into the session object before moving to the update page.
    Note... I've also enclosed my record retrieval code within a synchronize block.
    I'm at a complete loss here. Nothing I do seems to work and I can consistently recreate this condition. Obviously, I can't move forward until I find out how to do this properly.
    I'm disappointed in the Java Server Pages book, because the author encapsulated/wrapped all of his database i/o into his own database management routines.
    This is a terrible practice for an author to perform. I understand the concept of why you would do that, however, it complicates learning the fundamentals first. I say show us how to do it the long way first, then show us how to improve on the implementation. Don't confuse an already complicated process with your own home-grown methodology.
    Anyway... I digress. Can anybody give me any pointers or recommend a good book or web based example, that can show me how to overcome the issue I am encountering? My implementation is a straightforward, simple, approach. I am trying to grasp how this stuff works, without adding in all the extra stuff like tag libraries and XSLT, etc.
    I just need to understand how to write a simple thread-safe application. I'll tackle the other stuff later. Oh... by the way... I have built the simple samples that overcome servlet class level counters that show the result differences between global variables at the servlet instance level versus reporting back localized variable values. I think that JDBC database access and/or bean creation, is more complex than that and that's where my problem is.
    Any comments, pointers, references to simple samples, will be greatly appreciated.
    Thanks,
    Brett

              You do not need a shared files system - that is just for
              convenience. You do need to have identical directory stuctures
              for all instances in the cluster.
              Mike.
              "Tomato Bug" <[email protected]> wrote:
              >
              >hi all,
              > I have a confusion with shared objects in cluster.
              > A cluster needs a shared file system to store
              > configuration
              >files and shared objects. Can I only put the shared things
              >in the
              >shared file system but not put them on the servers in
              >the cluster.
              > Thanks.
              >
              > Tomato.
              

  • Director Flash 8 xtra breaks shared object and onSync

    This one has driven me insane for days, but at least now I
    know what the problem is. It's really a Director-Flash8 xtra-FMS
    problem, but I figure the best chance for a solution is posting it
    here.
    The problem is this: The Director Flash 8 xtra update messes
    up remote shared object connections to FMS applications. The
    Management Console debugger does not show any SO properties ("no
    data"), and only the "clear" onSync event fires. The old Flash 7
    xtra worked/works fine. To illustrate, I've tested the following
    code in the Director message window with both the v8 and v7 xtra
    (if you know Actionscript and not Lingo, it's still easy to figure
    out what happens here). It basically creates and connects a remote
    shared object on FMS:
    rrr = newObject("SharedObject")
    nnn = newObject("NetConnection")
    sss = "rtmp:/apptest01" -- app on locally running FMS
    er = nnn.connect(sss)
    put er
    -- 1
    fff = rrr.getRemote("tester", nnn.uri, true)
    put fff
    -- <flash object>
    er = fff.connect(nnn)
    put er
    --1
    -- so it's all good until here. onSync callback works with
    "clear", etc, but...
    fff.data.foo = 55.5
    put fff.data.foo
    -- 55.5... but only shows in Mgmt Console when using the v7
    xtra...
    -- when using the old flash7 xtra,
    -- debugging the FMS app and onSync events works correctly,
    -- but when using flash8 xtra,
    -- debugging the FMS app shows "no data" for this shared
    object. foo = 55.5 should be there.
    -- also, onSync events no longer fire after the initial
    "clear".
    If I translated this into actionscript and ran it in Flash 8
    vs Flash 7, etc, would I get the same problem? I'll try that next,
    but it took me a while to get this far. Is it simply a matter of
    permission or firewall setting? Or is it something just broken with
    the Director flash 8 xtra?
    Thanks

    As of just last week, Adobe can replicate the problem and is
    "working on it". I don't anticipate a shockwave-flash-xtra update
    to come out of this, but perhaps they can identify some other
    work-around. If you can avoid using "success" onSync events and
    don't need shared object debugging, then FMS works with
    Director/Flash 8 xtra... but this may be a symptom of yet more bugs
    that I haven't seen.
    I'm stopping development on my FMS/Director project until
    this is resolved... I may need to crack open the old Multi User
    xtra.

  • 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

  • GC affects Proxied Shared Object?

    Hi, all
    I found sth strange with the Proxied Shared Object when Garbage Collection in FMS 4.0. I have a FMS application 'ProxiedSOApp', in the Application start, it tries to get proxied SO from another FMS application 'MasterSOApp' every 5 seconds, and GC runs every 20 seconds.
    application/MasterSOApp/main.asc
    application.allowDebug=true;
    var so;
    application.onAppStart = function( ){
    so=SharedObject.get('MasterSO',false);
    so.setProperty('Cabinet','Cabinet');
    application.onAppStop = function(){
    trace('Application', 'Stopped.');
    application/ProxiedSOApp/main.asc
    application.allowDebug=true;
    var nc;
    var soRef;application.onAppStart = function( ){
    trace('Application', 'Started.');
    nc = new NetConnection();
    nc.connect('rtmp://localhost/MasterSOApp', "console" );
    nc.onStatus = function(info) {
      trace(info.code);
    nc.isAlive = function()
      return true;
    setInterval( updateSORef , 5000 );
    setInterval( doGC , 20000 );
    function doGC(){
    trace('GC working');
    application.gc();
    function updateSORef(){
    trace('updateSORef');
    soRef=SharedObject.get('MasterSO',false,nc);
    soRef.onSync=function(list) {
      trace('sync begin');
      for (var i = 0; i < list.length; i++)
       trace('SO status: '+list[i].code+': '+list[i].name);
      trace('sync end');
    application.onAppStop = function(){
    trace('Application', 'Stopped.');
    And I found the logs of ProxiedSOApp below
    #Fields: date time x-pid x-status x-ctx x-comment
    2012-11-13 14:48:26 13316 (s)2641173 ApplicationStarted.  -
    2012-11-13 14:48:26 13316 (s)2641173 NetConnection.Connect.Success -
    2012-11-13 14:48:31 13316 (s)2641173 updateSORef -
    2012-11-13 14:48:31 13316 (s)2641173 sync begin -
    2012-11-13 14:48:31 13316 (s)2641173 SO status: clear: undefined -
    2012-11-13 14:48:31 13316 (s)2641173 SO status: change: Cabinet -
    2012-11-13 14:48:31 13316 (s)2641173 SO status: change: DataRetrieve -
    2012-11-13 14:48:31 13316 (s)2641173 SO status: change: User -
    2012-11-13 14:48:31 13316 (s)2641173 SO status: change: UserSession -
    2012-11-13 14:48:31 13316 (s)2641173 sync end -
    2012-11-13 14:48:36 13316 (s)2641173 updateSORef -
    2012-11-13 14:48:41 13316 (s)2641173 updateSORef -
    2012-11-13 14:48:46 13316 (s)2641173 GC working -
    2012-11-13 14:48:46 13316 (s)2641173 sync begin -
    2012-11-13 14:48:46 13316 (s)2641173 SO status: clear: undefined -
    2012-11-13 14:48:46 13316 (s)2641173 sync end
    Although the proxied SO is updated during the 1st get, when GC works, the proxied SO is cleared.(the Master SO is unchanged)
    So I want to know, when GC, is there sth happened with the unreachable proxied SO reference which will clear the SO?
    Thanks!

    Thanks for your reply!
    For the test, I can make sure that, there is no other code to set or clear the MasterSO. Also, before and after the 'clear' event is received in the ProxiedSO, the MasterSO is not changed and the properties are still existing. I've also add another client to monitor the MasterSO status change, and when the proxyiedSOApp get the clear event during GC, no event is received in the added client.
    I can see from the FMS console, every time Sharedobject.Get in ProxiedSOApp, the 'Connections' for ProxiedSO will increase by 1, and when GC, the  'Connections' decreases to 1, and from the log, a clear event is thrown.
    So I'm still suspect that GCing the unreachable proxied SO reference causes the clear event.
    any ideas?

  • How can I delete remote shared objects?

    Hello world...
    I have a problem...
    I need to unload an external .swf file or delete all the remote shared objects that it conteins...but I need to reload the same .swf file by pushing a button...
    Please help me...
    Emiliano.

    Hi,
    can you please give clear idea...
    It looks like when the namespace was deleted delete all objects under this namespace was systematically deleted.
    means all objects under namespace is already deleted before deleting namespace..right?
    If so then Now there are existing interface objects somewhere out there in the IR. Objects such as data types, message type, message mapping and interface mapping objects
    Try to clear your cache..using SXI_CACHE...
    Try to  re-create namespace and delete all objects related to your namespace and delete namespace again...( Not sure this wull help..but u can try)
    Nilesh

  • Shared object not writing?

    I have a client who has a video that is to only play once when a user visits. So I created a shared object to create a param that the video has been played. It works perfect locally and on my live test site. However when the client posts it on his ning website in the header it doesn't work. The strange thing is that live and locally on my server you can see the shared object and it's size through the advanced tab in Flash's privacy settings. When on his server the size just has two dashes? Ideas.

    Well they have some crazy system for uploading to the server. When it finishes uploading it works fine except for the writing of the shared object. Does ning.com have the write permissions for flash disabled? Is that possible?
    Here is what the client said about the upload process:
    "Not yet. Here is what I have done.
    1. Click on SWF and then click save to desktop
    2.In order to upload SWF to NING platform you have do it through a blog
    entry to get its own URL. Once I get that I copy the "http://.... all the
    way to .swf" and insert in the script for the flash header in what is called
    Analytics. This process has worked fine up until now and appears to load
    the new SWF just fine.
    3. When I refresh pages or switches tabs it still repeats
    4. I have gone into Explorer Internet options and cleared all history but
    still no change."
    I assumed he was still looking at the old file since it wasn't working but he was looking at the new file with the shared object. Here's a screen shot of the flash privacy settings panel:

  • Ubuntu - libocijdbc11.so: libaio.so.1: cannot open shared object file.

    I was trying to fix the "no ocijdbc11 in java.library.path" error, which has been discussed previously.
    Re: Test failed - no ocijdbc11 in java.library.path
    no ocijdbc11 in java.library.path
    ERROR-No ocijdbc11 in java.library.path - Vendor code 0 >>Can you help?
    Connect fails w/ ocijdbc11.dll not found
    As I understand, the general advice was that you needed to set your ORACLE_HOME variable, which I did in the shell script that starts sql developer:
    sqldeveloper.sh
    #!/bin/bash
    ORACLE_HOME=/opt/oracle/instantclient/
    export ORACLE_HOME
    The file which it had been complaining about is in that folder, and it seems to find it, but now I get an error "libocijdbc11.so: libaio.so.1: cannot open shared object file."
    Where can I get this libaio.so file?
    Or am I going about this wrong?
    (I have seen other people talking about a file ".tnsnames.ora". Not clear to me how that is related, but I don't have that file. http://mikesmithers.wordpress.com/2010/01/03/solved-%E2%80%93-the-mystery-of-sqldeveloper-and-the-missing-ocijdbc11/)

    I'm on Windows, but do mind you need a 11.2 client as home. Alternatively try setting the home to your sqldev installation folder.
    Hope that helps,
    K.

  • Error while loading shared libraries: librt.so.1: cannot open shared object

    error while loading shared libraries: librt.so.1: cannot open shared object
    I cant run my apache server v2.2.3.
    Can someone help me?
    thanks in advance

    That could be an accessibility issue. Check the user with whom you installed Apache server. Check the user has permissions to access the libraries.
    -Mahendra.

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

  • Calling shared objects in unix from Forms 6i and 10g

    I would like to know how to call shared objects in unix from Froms 6i and 10g. Can anybody help in this regard? Your help is very well appreciated.

    Hi,
    Do you have any 11i instance where those custom forms are used? If yes, you will have to copy those forms from 11i to R12 instance, open the forms using Forms 10g builder, compile it and upload it back to the server.
    Note: 427879.1 - How To Customize And Compile An Application Seeded Form (FMB) Or Library (PLL)?
    Note: 743490.1 - Customization in Oracle Applications
    Note: 563258.1 - How To Upgrade 11i Custom Forms And Reports To R12
    Regards,
    Hussein

Maybe you are looking for

  • How do I restore Multiple backups in one iPhone?

    I had recently purchased an iPhone 5S. Without syncing it with my computer I directly started using it and took and saved some photos & videos with it. I also own a iPod Touch 4th Gen 64GB and i wanted to transfer all my apps progress and data to my

  • How can I Load Real-Time XML into SWF

    Hi, I am a newbie and I need to load data from an XML file but the data is changed constantly. Is there a way to have the SWF refresh instead of caching the XML content at the first load. My current code is as following: var index:Number = 0; var myx

  • Photoshop CS6 crashes all the time and especially when using the type tool... please help!

    Photoshop CS6 crashes all the time and especially when using the type tool... please help!

  • I chat 4 video quality is terrible!

    Can someone please help!I just switched over from a pc to macbook mac ox 10.5.1 expecting great video quality with i chat or skype but instead had to deal with error 8 messages in i chat after all the headaches of opening ports in my router, the audi

  • Beats earbud volume control on iPhone 5 not working

    I have a pair of the Beats URBEATS ear buds.  When I use them with my iPhone the volume controls do not work on the headphones not can I answer calls or skip songs.  Anyone else having this problem and how do I fix it ?