Store A Sound in Shared Object

Hello,
Is it possible to store a sound object in the shared object?
I have tried for long without any success. Any help is more than
welcome!
Thanks,
Francois

how would you store this list of threads?Thanks
T

Similar Messages

  • Shared Objects: How to store and read multiple instances

    Hi,
    Can we store multiple instances of Shared Objects in memory and read the desired instance.
    e.g
    If i execute the below program twice then also it will create only a single instance in the memory.
    Can we create a memory object with a key and then read the instance with the object with key
    data: handle type ref to ZCL_SHM_AREA_XX,
          root   type ref to ZCL_SHM_AREA_ROOT_XX.
    handle = ZCL_SHM_AREA_XX=>attach_for_write( ).
    create object root AREA HANDLE handle.
    root->FORM = 'Termination'.
    handle->set_root( root ).
    handle->detach_commit( ).

    Hi Sameer,
    check my reply to Recursive methods..
    Cheers
    Graham Robbo

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

  • Use a Shared Object in a game to store pairs player_name - player

    If I want to use a Shared Object in a game for a local
    computer to store
    pairs player_name - player_score (a string and a number) what
    would be the
    best approach to push the data in and retrieve them out as a
    table?
    Flash Help says that the properties created in a SO can
    enumerated in a
    for..in loop - how do I use this?

    thank a lot
    "clbeech" <[email protected]>
    ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ
    × ÎÏ×ÏÓÔÑÈ
    ÓÌÅÄÕÀÝÅÅ:
    news:fvsrst$qkp$[email protected]..
    > I usually use an array and objects to store the pair or
    more stats, then
    store
    > the array in the SO. it goes something like this:
    >
    >
    > var so = SharedObject.getLocal('mygame', '/');
    > var scores = [ ];
    > for(var i=0; 1<10; i++) {
    > var obj = {n:' ', s:o};
    > scores.push(obj);
    > }
    >
    > function updateScores() {
    > if(so.data.highscores == undefined) {
    > so.data.highscores = scores;
    > }else{
    > scores = so.data.highscores;
    > }
    > }
    >
    > function saveScore() {
    > var obj = {n:name_ti.text, sc:playerScore}
    > scores.push(obj);
    > scores.sortOn('s', Array.NUMERIC | Array.DESCENDING);
    > if(scores.length>10) scores.pop();
    >
    > so.data.highscores = scores;
    > so.flush();
    > setScoreboard();
    > }
    >
    > function setScoreboard() {
    > updateScores();
    > scores.sortOn('s', Array.NUMERIC | Array.DESCENDING);
    > for(var i=1; i<scores.length+1; i++) {
    > this['name_'+i].text = scores
    .n;
    > this['score_'+i].text = scores.s;
    > }
    > }
    >
    > setScoreboard(); //initialize the board
    >
    > save_btn.onPress = function() {
    > saveScore(); //save the score input
    > }
    >

  • Where does flash stores the local shared object data

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

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

  • A query with respect to creation of the  shared Objects.

    Hi ,
    I am having a query with respect to creation of the  shared Objects.
    I have seen a example where the Author is creatining Shared Object as shown
    below :
    SharedObj = null;
    sharedObj = SharedObject.getLocal("myTasks");
    and there is nothing related to the word "myTasks" anywhere in the Application .
    Can anybody please let me know what is this word "myTasks" mean here ??
    Thanks in advance .

    hi,
    With a shared object it will create one if it doesn't exist, so "myTasks" will become the shared object name or if it exists it will load any objects that are within that shared object.
    Below is a simple example that uses sharedobjects to store login details.
    http://gumbo.flashhub.net/login/
    David

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

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

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

  • 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

  • Shared Objects

    Not sure this is sound programming .. but I offer it up for opinion as it resolved an issue and seemingly works ..
    The issue ..
    Attempting to provide for "bookmarks" in an app w/ the Shared Object ..
    Created the Obj in the maintimeline .. for the life of me I was unable to access the SO from a child MC .. e.g. parent.SharedObject.data. geneated errors
    so I created a class object whose properties is the shared object and it worked ..
    ===== GlobalVars2.as
    package{
    public class GlobalVars2 {
      import flash.net.SharedObject;
      public static var UserStatus:SharedObject = SharedObject.getLocal("UserStatus");
    ===== Parent MC
    import GlobalVars2
    if (GlobalVars2.UserStatus.data.xml == undefined){ // 1st time here, build shared Object
    trace("Doesn't Exist")
    GlobalVars2.UserStatus.data.xml = new XML()
    GlobalVars2.UserStatus.data.Protocol = ""
    GlobalVars2.UserStatus.data.Domain = ""
    GlobalVars2.UserStatus.data.Path = ""
    GlobalVars2.UserStatus.data.ModFile = ""
    GlobalVars2.UserStatus.data.Percent = 0
    GlobalVars2.UserStatus.data.Nav_Played = false
    GlobalVars2.UserStatus.data.M1_Played = false
    GlobalVars2.UserStatus.data.M2_Played = false
    GlobalVars2.UserStatus.data.M3_Played = false
    GlobalVars2.UserStatus.data.M4_Played = false
    GlobalVars2.UserStatus.data.M5_Played = false
    GlobalVars2.UserStatus.data.M6_Played = false
    GlobalVars2.UserStatus.data.M7_Played = false
    SetEnviro() // populate shared object
    GlobalVars2.UserStatus.flush()
    ========== Child MC
    GlobalVars2.UserStatus.data.M7_Played = true

    First of all, I'd recommend to use smpatch utility to update your system. It is available "out of the box" on Solaris 10 and can be installed on Solaris 8 and 9 separately.
    If you don't use smpatch, here are some tips for manual patching process:
    I can only tell you about first two - libthread and libnsl. They both belong to the same package, SUNWcsl:
    $ pkgchk -l -p /usr/lib/libthread.so
    Referenced by the following packages:
    SUNWcsl
    $ pkgchk -l -p /usr/lib/libnsl.so.1
    Referenced by the following packages:
    SUNWcsl
    Current status: installed
    Now, to find out which patches are required, use 'showrev -p' command:
    $ showrev -p | grep SUNWcsl
    Next thing you do is search sunsolve.sun.com for latest versions of patches mentioned by showrev, download them and install with 'patchadd' command. This is rather painful process, so again, I recommend to use 'smpatch'.

  • ABAP Shared Objects - External Reference

    Hi,
    I am using ABAP SHared Objects (SHMA and SHMM) as data persistence between 2 BSP Applications
    I want to create a generic Root class with one attribute that is TYPE REF TO OBJECT. The idea is to store any class instance in this attribute of the Root class so as to AVOID creating a seperate Shared AREA for each Class...
    WHen I try to put this generic Root Class in the shared area via detach_commit(), it gives a exception that there are External references in the Shared area which should be closed first
    Does this mean u cannot have a instance variable as an attribute in your ROOT Class.
    Thanks
    SAP User

    Hi,
    Go through the below code, it's working fine....
    *& Report  Z13708_ABAPOBJECTS_INHER
    REPORT  Z13708_ABAPOBJECTS_INHER.
          CLASS C1 DEFINITION
    CLASS C1 DEFINITION.
      PUBLIC SECTION.
        data: var1 type ref to object.
        METHODS: METH1.
    ENDCLASS.                    "C1 DEFINITION
          CLASS C1 IMPLEMENTATION
    CLASS C1 IMPLEMENTATION.
      METHOD METH1.
        WRITE: / 'This is a method one'.
      ENDMETHOD.                                                "METH1
    ENDCLASS.                    "C1 IMPLEMENTATION
          CLASS C2 DEFINITION
    CLASS C2 DEFINITION.
      PUBLIC SECTION.
        METHODS: METH2.
    ENDCLASS.                    "C2 DEFINITION
          CLASS C2 IMPLEMENTATION
    CLASS C2 IMPLEMENTATION.
      METHOD METH2.
        WRITE: / 'This is a method two'.
      ENDMETHOD.                                                "METH2
    ENDCLASS.                    "C2 IMPLEMENTATION
    START-OF-SELECTION.
      DATA REF1 TYPE REF TO C1.
      DATA REF2 TYPE REF TO C2.
      CREATE OBJECT REF2.
      ref1->var1 ?= ref2.
    Regards,
    Azaz Ali.

  • Shared Objects not imported properly

    I am moving from 6i to 9i.
    I exported my 6i applications.
    I imported them into 9i.
    The one application consists of some tables shared from another. I imported the source of the shares first.
    In the RON the shared objects show correctly under the "Table Definitions", but they are absent in the Design Editor under the "Server Model Tab." Trying to reshare them causes an error (as expected).
    How do I reconcile the database so the shared object show up properly ?
    Help appreciated
    Andrew

    Hi Neeraj,
    first if you did not initialize Task's user and it comes back uninitialized that does not sound like a problem.
    Probably the read only User was cached and not explicitly refreshed by subsequent queries. I.e. if User is changed on the database that change won't necessarily get reflected in the toplink cache.
    Try setting descriptor.alwaysRefreshCache(true);

  • 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

  • Remote Shared Objects peerIDs

    Hello All, I would like to use a remote shared object to communicate to nearID. My knowledge of Server-Side ActionScript is not particularly great. Is there any tutorials or links out there that can give a demonstration how remote shared objects can obtain and distribure peerIDs? 
    Thank You

    Thank you Rajesh. Apologies for my late reply. Are you suggesting I do something like this? In the code below I have included a changeList array to describe the change properties of each member in a remote shared object. Furthermore, I have created so.data property to store attributes of the rso when a user changes one of the slots it triggers the syncEvent. Can someone please take a good close look at my code to see if you can identify any errors? thanks in advance.
    function syncExample(event:SyncEvent):void{
         my_rso.data.username1;
         my_rso.data.username2;
         my_rso.data.username3;
         my_rso.data.username4;
         my_rso.data.username5;
    for (var i = 0; i <changeList.length; i++){
    var changeList:Array = event.changeList;
    var info:Object;
    info = changeList[i];
    switch(info.code){
       case "success"
      lient_info = my_rso.data[info.name];
       case "change":
       client_info = my_rso.data[info.name];

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

  • Reading a writing Shared Objects

    I'm not sure if I'm not getting something here, but I have a
    webservice that gets a string back in the form of XML. I end up
    placing that data in the XMLList in the property of the shared
    object. Is that possible? It seems like it works when I make
    reference to it after the WS has been called
    However, I don't want to call the webservice everytime the
    app runs. When I make reference to the shared object ie:
    <mx:Label text="{storeInfo.data.xmlContent
    .location_url}"/> after the webservice runs - works great.
    However, it seems like the data is not there when the webservice
    doesn't run.

    I haven't tried saving a XMlList object, but the
    documentation says that you can store only simple data types such
    as String, Array and Date. Please find more details in below URL.
    Can you try saving data of simple data types and check out if it is
    working. Please do make sure you are flushing the data.
    http://livedocs.adobe.com/labs/flex3/html/lsos_2.html#132694
    Hope this helps.

Maybe you are looking for

  • GPS is not working in my n8

    after updating it to belle GPS is not working in my device. nothing works right maps, drive etc dont getting GPS signals. all apps which needs GPS are not working please help me

  • How can I move an event in ical to another calendar without ical resending the event invite to everyone

    I have 2 microsoft exchange calendars that I use for work. One is provided by my company, the other is provided by a customer that I do contract work for. The customer prefers to send invites to my email address provided to me by them. Which means th

  • How to post gr without purchase order fi-mm

    Dear All I need one requirement in integration fi-mm how to configure exces quantity against po quantity po quantity 100 gr 105 while posted gr system gettign error E 147(M8) ACCOUNT DETERMINATION FOR ENTRY 9000. I NEED CONFIGURATION HOW TO DO IT

  • Cant purchase from Itunes - please enter your country????

    So I have been able to download the free stuff from Itunes in the past. My CC expired, but in the new one and filled in the address again. The country is in bold and has US. Get the errro message "you did not complete this form. please enter your cou

  • How to configure ASM of 11gR2 RAC on Solaris 10

    Hi all, I have the first time to install the RAC on Solaris 10. I have stuck on the ASM disk group step in the Grid Infrastructure. Our Configuration 2 Sun Server in Solaris 10 with same configure (which we are not using shared drive) 250GB Local Har