Play symbol more than one time

I have 1 "master"symbol and within a animation
This symbol is 2 times on the timeline, hidden at beginning of the timeline
there is 2 buttons on the stage with 2 actions
first button
sym.$("mySymbol1").show();
sym.$("mySymbol1").play(0);
second button
sym.$("mySymbol2").show();
sym.$("mySymbol2").play(0);
and inside the "master" symbol, a button with 2 actions
sym.getComposition().getStage().$("mySymbol1").hide();
sym.getComposition().getStage().$("mySymbol2").hide();
The animation is played well at the first click, but not after a second clik on the same button or on the other button

use getSymbol('name') to play a symbol:
sym.getSymbol("mySymbol1").play(0);
sym.getSymbol("mySymbol2").play(0);

Similar Messages

  • Can we prevent entering the same condition more than one time?

    Hi friends,
    Can we prevent the user for entering the same condition type more than one time in same sales order?
    Rama rao

    /write codes in Include ZXVVAU05/
    /prgm avbl in one of the msg in forum/
    DATA: BEGIN OF tXKOMV OCCURS 50.
    INCLUDE STRUCTURE KOMV.
    DATA: END OF tXKOMV.
    data : tab_name(40) type c ,
    ld_len type i , ld_len1 type i .
    field-symbols : <tab> type any.
    tab_name = '(SAPMV45A)XKOMV[]'.
    assign (tab_name) to <tab>.
    txkomv[] = <tab>.
    describe table txkomv lines ld_len .
    sort txkomv by kposn KSCHL .
    delete adjacent duplicates from txkomv comparing kposn KSCHL .
    describe table txkomv lines ld_len1 .
    if ld_len1 ne ld_len .
    refresh txkomv .
    message e002(zmm) with ' Please remove duplicate condition in item price' .
    endif .

  • How to deploy a Webapplication on WAS more than one times on same server?

    Hi all,
    I 've a special problem:
    In our web-app (some DC's) also stored propertie-Files. Now we would to deploy this application more than one times at same server using different WebContentRoots. (f.e. http://server/app1 and http://server/app2 a.s.o.)
    We know, that we must create different EAR-Projects and refer the web-Module and configure the application.
    But in the second application there it's recommended to change some properties.
    How we can handle this in JDI without copy the web-application?
    I hope my question can be understood.
    Best Regards
    Sven Rickelt
    Using Netweaver + WAS 6.40 2004 SP 13

    Hi Sven,
    as I'm new to NWDI, I cannot give you a 100 percent, field-tested solution. But have you already thought about using the Configuration-Adapter?
    If you can change the source of your web-app, you could maintain the data formerly stored in property files using the configuration adapter of visual administrator. The SC <a href="http://help.sap.com/saphelp_nw04/helpdata/en/45/e7e14b517b42788a1c166f9f32455e/content.htm">configuration</a> allows you to access this data.
    With this approach you can stick to one web-application and do the configuration work separately for each deployed application.
    Best regards,
    Frank

  • How to share more than one Time Machine folder

    Hi,
    With Snow Leo Server I found how to find how to share more than one Time Machine Folder but I can't see how to do the same with Lion Server, could you help me with that ?
    The goal of that is to offer one TM folder per user which is located on a dedicated partition in order to limit the size of TM backups per user (150Gig).
    In Lion, in can only share one TM folder for everybody and I didn'tfind if I can set a limit size per user...
    Thank you in advance,

    I have figured out a way to enable multiple backup targets.
    However, it's one of these things I wouldn't want to describe to anyone except true programmer types, because everyone else has a 90%+ chance of messing up their system if they do something wrong.
    It involves turning off file sharing, and then editing the plist files in /private/var/db/dslocal/nodes/Default/sharepoints/
    The gist of it is this:
    a) first create all the share points you later want to use for TimeMachine, and set them up for afp-only file sharing, also create one TM target, which you can either use later, or have there so the system has one entry it knows how to handle. I just made a bogus one that I'm not actively using.
    b) turn off file sharing in Server.app
    c) turn off TimeMachine in Server.app
    d) now you can edit the files, the easiest is with Xcode, so you may want to install that first
    e) for each sharpoint you made in a) there will be a corresponding .plist file in the location indicated, these are the files that need to be edited.
    f) for each of these files
         1) the item0 string property in the timeMachineBackup array must be switched from 0 to 1
         2) a new key of type array with the name timeMachineBackupUUID must be created
         3) in the newly created array an item of type string must be placed with the value of a UUID, which can be created with the shell command uuidgen
    g) make sure all the edited plist files are saved
    h) turn on TimeMachine in the Server.app again
    If all went well, you now should be able to go to one of your networked client computers and see all the time machine share points just created as options for being a time machine target.
    Anyway, if you go that route: be careful, don't blame me if you muck things up...

  • Will syncing my iphone 3GS more than one time daily wear out the battery?

    Will syncing my iPhone 3GS more than one time daily with Outlook 2007 wear out the battery? An Apple Care advisor said I should only sync it one time per week, but I need to do it daily as I use the calendars and notes for work.

    CindiS wrote:
    Will syncing my iPhone 3GS more than one time daily with Outlook 2007 wear out the battery?
    No.
    An Apple Care advisor said I should only sync it one time per week
    Whoever you talked to has no idea what they are talking about. Ignore their advise.

  • Block create type of operation more than one time

    Hello SAP CRM Experts!
    I have a question.
    How do I get block the user create a type of operation more than one time?
    For example, I have a kind of opportunity that can be created only once for each client. How can I do this using the customizing?
    Best Regards!
    Tks!

    Hi,
    you could only limit the assigned internal number range to one object, which would allow only one document to be saved. The next creation would then fail since there is no number available.
    This is the only solution I can think of, otherwise you need to program a BADI.
    Regards, Kai

  • Execute more than one times external command of OS Windows NT

    Hi all,
            I have to execute more than one times from an ABAP program an exernal command of Operating system windows NT . In order to reach this goal I found the standard program RSBDCOS0 and it works very well if you execute it one time.  Unfortunately I have to execute this external command more than one times. Is there any soluiton?
    thank to all
                        Gino Bonfiglioli

    Well why are you using this report RSBDCOS0 to execute external commands?
    Because SAP provides certain function modules that can be used to call operating system commands; so you can use these functions to do your task.
    Just check the following link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fa/0971e1543b11d1898e0000e8322d00/frameset.htm
    As you mentioned that you need to execute multiple times, you can easily put the call to function module inside a loop or do/enddo structure. for example consider the following
    do 3 times.
    call function 'SXPG_COMMAND_EXECUTE'                           
          exporting                                                 
               commandname                   = 'Put operating system command here'          
               additional_parameters         = full_filename        
               targetsystem                  = targtsys  
               stdout                        = 'X'                  
               stderr                        = 'X'                  
               terminationwait               = 'X'                  
          importing                                                 
               status                        = sxpg_status          
               exitcode                      = sxpg_exitcode        
          tables                                                    
               exec_protocol                 = sxpg_results         
          exceptions                                                
               no_permission                 = 1                    
               command_not_found             = 2                    
               parameters_too_long           = 3                    
               security_risk                 = 4                    
               wrong_check_call_interface    = 5                    
               program_start_error           = 6                    
               program_termination_error     = 7                    
               x_error                       = 8                    
               parameter_expected            = 9                    
               too_many_parameters           = 10                   
               illegal_command               = 11                   
               wrong_asynchronous_parameters = 12                   
               cant_enq_tbtco_entry          = 13                   
               jobcount_generation_error     = 14                   
               others                        = 15.                  
    write the results
    loop at sxpg_results.
    write:/ sxpg_results-length,
             sxpg_results-message.
    endloop.
    refresh sxpg_results.
    enddo.

  • How to post GR from po more than one time?

    i want to post goods receipt from PO more than one time even the quantity of PO have been totally receipted.

    Hi Dear,
                 whats the problem in that if you have recieved 100 quantity all together, and want to post in break-ups then you can surely do that by changing the quantity in the GR, the system will each time suggest the remaining full quantity, you just need to change it.
    Hope it helps.
    Regards,
    Yawar Khan

  • How can i find out the more than one times occurance of integer in a array?

    How can i find out the more than one occurance of integer in a array. Assume i have 2,2,3,4,2,5,4,5 in a Array and i need to find out the how many times of 2, 5 and 4 is exists in that array. Please some one help me as sson as possible. thanks in advance....

    Kumar_Mohan wrote:
    How can i find out the more than one occurance of integer in a array. Assume i have 2,2,3,4,2,5,4,5 in a Array and i need to find out the how many times of 2, 5 and 4 is exists in that array. Sort the array. Then loop through it and compare each i-th element with the (i+1)-th element.
    Please some one help me as sson as possible. thanks in advance....In future postings, please refrain from telling that it is urgent, or you need help ASAP. It is rather rude to do so.

  • More than one time machine backup..

    Is it possible to make time machine backup to more than one location? I have a nice big 2TB drive at my office that I use for time machine and it works perfectly but I would also like to run a second time machine backup to a portable 1TB drive that I own so that I have a backup that I can carry around with me as well as the fixed backup I leave at my office.
    When I last tried to backup to the portable drive it forgot all about the original backup so when I came to try and back that up again it wanted to run from scratch and ignored all of the files on the external drive.

    Chanandl3r wrote:
    I then ejected the big 2TB drive and re-connected the smaller 1TB portable drive. I opened TM and clicked on Backup Now
    Did you change the destination via TM Preferences > Select Disk?  If not, that may be the problem.  
    Can't I just plug in different disks when I want and the system recognise them and run the appropriate backup for me?
    No; you must tell TM when you swap destinations.
    Did the new backup complete?  Are you sure TM was writing to the 1 TB drive?  There are some circumstances where OSX will "forget" that an external drive has been disconnected, and create a folder in the /Volumes folder on your internal HD; then Time Machine (or other app) will write there, instead of to the external HD.   See the blue box in Where did my Disk Space go? to check.

  • InputStream and playback more than one time

    Hi,
    I'm trying to playback multiple times the sound I captured with microphone.
    But the method playAudio() manage to listen to the sound just one time. Which way can I use to listen many times the sound ??
    I don't want to use Clip !!!!!
    Here is my code :
    public void captureAudio() {
        try {
            final AudioFormat format = getFormat();
          DataLine.Info info = new DataLine.Info(
            TargetDataLine.class, format);
          final TargetDataLine line = (TargetDataLine)
            AudioSystem.getLine(info);
          line.open(format);
          line.start();
          Runnable runner = new Runnable() {
            int bufferSize = (int)format.getSampleRate()
              * format.getFrameSize();
            byte buffer[] = new byte[bufferSize];
            public void run() {
              out = new ByteArrayOutputStream();
              running = true;
              try {
                while (running) {
                  int count =
                    line.read(buffer, 0, buffer.length);
                  if (count > 0) {
                        out.write(buffer, 0, count);
                out.close();
              } catch (IOException e) {
                System.err.println("I/O problems: " + e);
                System.exit(-1);
          captureThread = new Thread(runner);
          captureThread.start();
        } catch (LineUnavailableException e) {
          System.err.println("Line unavailable: " + e);
          System.exit(-2);
        if(!running){running = true;};
      public void playAudio() {
        try {
          byte audio[] = out.toByteArray();
          InputStream input =
            new ByteArrayInputStream(audio);
          final AudioFormat format = getFormat();
          final AudioInputStream ais =
            new AudioInputStream(input, format,
            audio.length / format.getFrameSize());
          DataLine.Info info = new DataLine.Info(
            SourceDataLine.class, format);
          final SourceDataLine line = (SourceDataLine)
            AudioSystem.getLine(info);
          line.open(format);
          line.start();
          Runnable runner = new Runnable() {
            int bufferSize = (int) format.getSampleRate()
              * format.getFrameSize();
            byte buffer[] = new byte[bufferSize];
            public void run() {
              try {
                int count;
                while ((count = ais.read(
                    buffer, 0, buffer.length)) != -1 && !running) {
                 if (count > 0) {
                            line.write(buffer, 0, count);
                line.drain();
                line.close();
              } catch (IOException e) {
                System.err.println("I/O problems: " + e);
                System.exit(-3);
          playThread = new Thread(runner);
          playThread.start();
        } catch (LineUnavailableException e) {
          System.err.println("Line unavailable: " + e);
          System.exit(-4);
      }Thanks

    I play it back the first time correctly. But if I stop it before the end or let it playing until the end, I'm unable to start it again when I click on the play button.
    Here is a piece of the whole code (more than 7500 characters):
    class Lecture extends JFrame
         private AudioInputStream lecteurAudio;
         private AudioFileFormat formatFichier;
         private AudioFormat format;
         private SourceDataLine line;
         public boolean running;
         private Thread captureThread;
         private volatile boolean exitRequested;
        private volatile boolean isPaused;
        private volatile boolean isCancelled;     
         public Lecture()
              running=true;
         public void AudioFromFile(File fichier) throws UnsupportedAudioFileException, IOException, LineUnavailableException
          this.lecteurAudio = AudioSystem.getAudioInputStream(fichier);
               this.formatFichier = AudioSystem.getAudioFileFormat(fichier);
               this.format = lecteurAudio.getFormat();
               if((this.format.getEncoding() == AudioFormat.Encoding.ULAW) ||
                  (this.format.getEncoding() == AudioFormat.Encoding.ALAW))
                 //convertion du format
                 AudioFormat tmp = new AudioFormat(
                     AudioFormat.Encoding.PCM_SIGNED,
                     this.format.getSampleRate(),
                     this.format.getSampleSizeInBits() * 2,
                     this.format.getChannels(),
                     this.format.getFrameSize() * 2,
                     this.format.getFrameRate(),
                     true);
                 this.lecteurAudio = AudioSystem.getAudioInputStream(tmp, this.lecteurAudio);
                 this.format = tmp;
               DataLine.Info info = new DataLine.Info(
                   SourceDataLine.class,
                   this.lecteurAudio.getFormat(),
                   ((int)this.lecteurAudio.getFrameLength() *
                    this.format.getFrameSize()));
               line = (SourceDataLine)AudioSystem.getLine(info);
               line.open(format);
               line.start();
               if (line != null) {
                  try {
                      line.close();
                  } catch (Exception e) {
         public void Piste()
              DataLine.Info info = new DataLine.Info(SourceDataLine.class, this.lecteurAudio.getFormat());
               try {
                     if (line == null) {
                         boolean bIsSupportedDirectly = AudioSystem.isLineSupported(info);
                         if (!bIsSupportedDirectly) {
                             AudioFormat sourceFormat = lecteurAudio.getFormat();
                             AudioFormat targetFormat = new AudioFormat(
                                     AudioFormat.Encoding.PCM_SIGNED,
                                     sourceFormat.getSampleRate(),
                                     sourceFormat.getSampleSizeInBits(),
                                     sourceFormat.getChannels(),
                                     sourceFormat.getChannels() * (sourceFormat.getSampleSizeInBits() / 8),
                                     sourceFormat.getSampleRate(),
                                     sourceFormat.isBigEndian());
                             lecteurAudio = AudioSystem.getAudioInputStream(targetFormat, lecteurAudio);
                             format = lecteurAudio.getFormat();
                         line = getSourceDataLine(format);
                     line.open(format);
                 } catch (Exception e) {
                     e.printStackTrace();
                     return;
           Runnable runner = new Runnable(){
            int nRead = 0;
            byte[] abData = new byte[(int)format.getSampleRate()* format.getFrameSize()];
            boolean startResume;
            public void run(){
            do {
                startResume = false;
                line.start();
                while (nRead != -1 && !exitRequested) {
                    try {
                        nRead = lecteurAudio.read(abData, 0, abData.length);
                    } catch (IOException e) {
                        e.printStackTrace();
                    if (nRead >= 0) {
                             line.write(abData, 0, nRead);
                if (exitRequested && !isPaused) {
                    //cancel
                    line.stop();
                    line.flush();
                } else if (isPaused) {
                    line.stop();
                    line.drain();
                    try {
                        while (isPaused) {
                            Thread.sleep(20);
                        startResume = true;
                    } catch (InterruptedException ex) {
                        //if interrupted...
                        cancel();
           } while (startResume);
        captureThread = new Thread(runner);
        captureThread.start();
         private SourceDataLine getSourceDataLine(AudioFormat format) {
            Exception audioException = null;
            try {
                DataLine.Info info = new DataLine.Info(SourceDataLine.class, format);
                Mixer.Info [] arr = AudioSystem.getMixerInfo();
                Arrays.sort(arr, new Comparator() {
                    public int compare(Object o1, Object o2) {
                        Mixer.Info m1 = (Info) o1;
                        Mixer.Info m2 = (Info) o2;
                        if("Java Sound Audio Engine".equals(m1.getName()))
                            return -1;
                        if("Java Sound Audio Engine".equals(m2.getName()))
                            return 1;
                        return 0;
                for (Mixer.Info mi : arr) {
                    SourceDataLine dataline = null;
                    try {
                        Mixer mixer = AudioSystem.getMixer(mi);
                        dataline = (SourceDataLine) mixer.getLine(info);
                        dataline.open(format);
                        dataline.start();
                         System.out.println(mi.getName());
                        return dataline;
                    } catch (Exception e) {
                        audioException = e;
                    if (dataline != null) {
                        try {
                            dataline.close();
                        } catch (Exception e) {
            } catch (Exception e) {
                throw new IllegalStateException("Error trying to aquire dataline.", e);
            if (audioException == null) {
                throw new IllegalStateException("Couldn't aquire a dataline, this computer doesn't seem to have audio output?");
            } else {
                throw new IllegalStateException("Couldn't aquire a dataline, probably because all are in use. Last exception:", audioException);
          public boolean isPaused() {
                 return isPaused;
         public void setPaused(boolean pause) {
                 if (line != null) {
                     if (pause) {
                         isPaused = true;
                         exitRequested = true;
                     } else {
                         isPaused = false;
                         exitRequested = false;
         public void cancel() {
                 isPaused = false;
                 exitRequested = true;
                 isCancelled = true;
        public boolean isCancelled() {
                 return isCancelled;
        public void close() {
                 if (line != null) {
                     line.close();
    }Edited by: bascyr on 8 mai 2010 16:29

  • How can I make my Music playing on more than One AirPlay device ?

    How can i Play my IPhone Music on more AirPlay devices than One ?
    When i double Click the home button to come to the AirPlay options it's only avaiable to select One of the airPlay devices, the device chosen before turns off.
    So can anybody Tell me how to do that, or is it impossible to do that ?
    Sincerely
    JLK

    Not possible to do so at this time.

  • How do you get a song to play for more than one slide???

    I'm new to mac and I am trying to create a birthday video but the audio will not continue for more than 1 slide. I can do it in powerpoint but I want to burn the presentation onto DVD. Thanks for your help!

    I just created a slideshow using Keynote and I just moved the song from iTunes into the inspector --> document --> audio. There is a small box that you just put the song into and it automatically plays, either once or looped.

  • I click the firefox icon more than one times during several seconds(in order to start firefox),and then my tabs and tab groups will lost!

    i use firefox30 on windows.
    and i have more than 50 tabs.
    sometimes firefox starts very slowly,so i click it many times and then when firefox shown,my tabs and tab group all gone!

    HI hirenloong,
    I am sorry to hear that Firefox is slow on starting up. It sounds like you "Restore tabs from last time" and that there are 50 or more? [https://support.mozilla.org/en-US/kb/firefox-takes-long-time-start-up]
    Please make sure that after the update that the antivirus is allowing Firefox to make the connections to those old tabs. [http://kb.mozillazine.org/Firewalls]
    Please post back with your troubleshooting results.

  • Totals page doesn't come more than one time

    I'm creating a tabular report with a summary columns.
    When using the report wizard, the totals page comes only one time, if i want to update the summary columns, or recreate again, the totals page doesn't come.
    How can i get the totals page again?

    Summary columns is related to the Data wizard not to the report wizard,
    So, if we use Ref Cursor query to create the Data Model we should create summary columns mannualy.

Maybe you are looking for

  • Help needed in jco programming

    hi friends when i try to connect with SAP server using jco i have some probem. Connection with jco program is working fine. I make it ajava file and run separately). Now i want do that with jsp. I am getting error of Exception report message descript

  • Activity step is not visible in workflow log

    Hi All. I added two task  in my workflow and transported it to qualityand it got transpported successfully. then i triggered the workflow and when i am checking the log one of my task is not visible in my log. Please guide me in this. Thanks in  adva

  • Bookmark function not working at all; lost all bookmarks and can't recover

    I have lost all bookmark function, all bookmarks, and have tried all of the suggested tips for recovering them. I found the "profile" file within Help->Troubleshooting Info.->Application Basics-> but there's no information about what to do with it on

  • Data Guard Summary problem using Grid Control.

    I setup data guard using Grid Control and after completion, the console of the standby database shows: "Unable to determine Data Guard information." under the Data Guard Summary section. The primary database is not showing the standby. I'm using Red

  • Audigy 2 platinum pro

    Hi can anyone tell me where I can buy a power lead that will double a supply from the PSU enabling me to run power to the 4 pin white power socket on the sound card which in turn supplies power to the i/o hub many thanks