Play Previous Label

Is there any way to play from the previous label in a timeline?
ie: if i have 10 labels in the timeline and have 2 buttons to move forwards and backwards through them, then the "backwards" button would need to play from the previous label each time it is pressed. Play reverse is no good as the animation i have will play in reverse.

Ok, nevermind that last question.
I have the code in and almost working.
I am now having a slight inconsistency issue.
When I click forward, sometimes the symbols play from the start, sometimes they play from the middle and sometimes they are stopped at the end of their animation.
When I click back, they sometimes play from the start, sometimes they don't play.
Here is the code I have:
// Array for my Timeline labels
var myLabels = ['Pn1','Pn2','Pn3','End'];
//Array for my symbols
var myPanels = ['Panel1','Panel2','Panel3'];
// Initial setting of 'i'
i=0;
// For forward button click
sym.$('FWD').click(function(){
          i++;
   sym.play(myLabels[i]);
   sym.getSymbol(myPanels[i]).play(0);
// For backward button click
sym.$('BACK').click(function(){
          i--;
          if (i<0){
                     i=0;
   else{
          sym.play(myLabels[i]);
          sym.getSymbol(myPanels[i]).play(0);
Thanks for all your help so far...

Similar Messages

  • How to play Previous Label and Next Label?

    How can I tell flash to play a previous or next label with
    simple scripting?
    ...are there any predefined playprevLabel or playnextLabel
    functionality in the program that can be called simply ?
    I heard of putting the label names into an array but it seems
    too convoluted. thanks, Attila

    Why not name the labels incrementally, then merely add or
    subtract from the value of your label variable, and use a standard
    goto?
    K.

  • Go to next label or previous label

    Is there an action in Animate to play next label or stop at  previous label?
    Thanks for any support.
    Att.,
    Edwin

    Hi, guys.
    It's not a formal , but there is also such a way.
    The label information, can be accessed in the "Default Timeline" via.
    console.log(sym.timelines['Default Timeline'].labels);
    So, use this, We can extend the Edge-Symbol. like this.
    //document.compositionReady
    //get label index for the time
    Symbol.prototype.getLabelID = function(time){
      time = time||this.getPosition();
      time = Math.max(time,1);
      //mapping the label name & time
      var ex = this.ex = this.ex||{};
      if(!ex.labels){
        ex.labels = [{time:0,name:'start'}];
        if(this.timelines['Default Timeline'].labels){
          $.each(
            this.timelines['Default Timeline'].labels,
            function(key,val){ex.labels.push({time:val,name:key});}
        //sort by time
        ex.labels.sort(function(a,b){return (a.time<b.time)?-1:(a.time>b.time)?1:0});
      //serch the label index
      for(var i=1;i<ex.labels.length;i++){
        if(time<ex.labels[i].time)break;
      return i-1;
    Symbol.prototype.getNextLabelTime= function(time){
      var id =this.getLabelID(time);
      var labels = this.ex.labels;
      //return labels[Math.min(++id,labels.length-1)].time;
      return labels[++id%labels.length].time; // case loop
    Symbol.prototype.getPrevLabelTime= function(time){
      var id =this.getLabelID(time);
      var labels = this.ex.labels;
      //return labels[Math.max(--id,0)].time;
      return labels[(--id+labels.length)%labels.length].time; // case loop
    Symbol.prototype.nextLabel=function(play){
      var func =(play)?this.play:this.stop;
      func.call(this,this.getNextLabelTime());
    Symbol.prototype.prevLabel=function(play){
      var func =(play)?this.play:this.stop;
      func.call(this,this.getPrevLabelTime());
    In this. We can use prevLabel/nextLabel method.
    //move to next label
    sym.nextLabel();
    sym.getSymbol("Symbol_1").nextLabel();
    //move to prev label and play
    sym.prevLabel(true);
    etc..
    Because it extends the Edge-Symbol on its own, It's not the way "well-behaved".
    If you are interested, try .
    thanks.
    Ume.

  • AS2 open another scene and play a label inside a mc

    I'm looking for a piece of AS2 script that will open a different scene and play a label from inside a mc.
    So it should be something like...
    On release go to scene x and play x label from inside x mc.
    I can get to the scene via the button "on release gotoandplay scene 2 .
    Once in the scene I can get a button to gotoandplay themc.mc and the label.
    But what I really want to do is get the button on one page to go to the scene and play the label on the second scene.
    Any ideas?

    use:
    gotoAndPlay("scene2_frame1");
    this.onEnterFrame=someF;
    function someF(){
    yourmovieclip.gotoAndPlay("some label");
    delete this.onEnterFrame;

  • My old computer died. how do i authorize y new computer to play previously purchased songs

    my old computer died. how do I authorize my new computer so I can play previously bought songs?

    Hi bonniefromlafayette,
    Welcome to the Apple Support Communities!
    For information and instruction on how to authorize your computer using iTunes, please reference the attached article.
    Authorize your computer using iTunes
    http://support.apple.com/kb/HT1420
    Have a great day,
    Joe

  • I am getting an error message that says my computer is not authorized to play previous downloaded songs. What can I do?

    This is the erroe message I am getting. I have removed and re-downloaded iTunes and it will still not let me "Authorize" my computer to play previous downloaded songs from iTunes. HELP!

    You need to set Copy'n'Paste security policies for that domain in Firefox.
    AllowClipboard Helper will help you do that. <br />
    https://addons.mozilla.org/en-US/firefox/addon/allowclipboard-helper/

  • I cannot find a way to authorize my new computer to play previously purchased music from itunes.  The directions say to click on STORE menu, but I don't see that option.

    I cannot find a way to authorize my new computer to play previously purchased music from itunes.  The directions say to click on STORE menu, but I don't see that option.

    Go to the Store menu item on the menu bar, and choose Authorize This Computer, as shown below. 
    If by any chance you don't see the menu bar (File, Edit, View, Controls, Store, Help), first enable it by using CTRL+B.

  • ITunes said I have to "authorize" my new computer in order to play previously purchased music, how do I do that?

    I have a new iMac, when I tried to play previously purchased music on iTunes I was told that I have to "authorize" the new computer, how do I do that?

    Authorization
    iTunes Store- Authorize or deauthorize your Mac or PC.
    In iTunes you use the Authorize This Computer or De-authorize This Computer option under the Store menu in iTunes' menubar. For Windows use the ALT-S keys to access it. Or turn on Windows 7 and 8 iTunes menus: iTunes- Turning on iTunes menus in Windows 8 and 7.

  • How do i authorize my new computer to play previous purchases?

    how do i authorize my new computer to play previous purchases?

    Go to the Store menu, and choose Authorize This Computer, as shown below. 
    If by any chance you don't see the menu bar containing File, Edit, View, etc, first enable it by using CTRL+B.

  • Hi. I have an iPhone 4s. The music doesn't play when I connect it to my car stereo. It used to play previously but stopped playing all of a sudden. My phone is getting charged when I cut it to the USB port. Please help with this. The iOS is 6.1.3.

    Hi. I have an iPhone 4s. The music doesn't play when I connect it to my car stereo. It used to play previously but stopped playing all of a sudden. My phone is getting charged when I cut it to the USB port. Please help with this. The iOS is 6.1.3.

    Hello Priyanks,
    I found an article with steps you can take to troubleshoot issues with an iPhone not connecting to your car stereo:
    iOS: Troubleshooting car stereo connections
    http://support.apple.com/kb/TS3581
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Maintaining backed up pictures in previously labeled albums

    I need to know how to back up my pictures so that when i use the back up dvd(s) to restore my i photo library, it will be organized into the albums I have already created to store them in I photo. It should tell you how to back up albums such that when you restore the backed up photos to a new hard drive or computer, the pictures will be organized into numbered and/or labeled albums just as they are stored in i photo. EG:" 60. Christmas Pictures 2006".
    I recently had to restore my pictures from dvd backup and they were there, but not organized as I had them in i photo!. Has someone solved this one?
    powerbook G4   Mac OS X (10.4.8)  
    powerbook G4   Mac OS X (10.4.8)  

    rpm2268:
    Welcome to the Apple Discussions. To do what you want burn the albums using the Share->Burn menu option. The disks can then be mounted in iPhoto and the albums will display as shown here. Just drag the album from the disk version into the Source pane as shown.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • I have changed my computer three times and I'm having trouble playing previously purchased/downloaded songs. itunes is prompting me for my user id and password everytime I click on those songs I had puchased. I had also changed my user id

    I appreciate any help or assistance you can share with me. thank you very much.

    Because too much time has passed I can't edit this into the prior comment, but here is the info regarding reverting to iTunes 11.0.2 (assuming you do have a time machine backup) from https://discussions.apple.com/message/22057703#22057703
    W. Raider wrote:
    Repairing permissions doesn't fix it.
    I reverted to the previous version, 11.0.2.
    1. Quit the new crash-prone iTunes.
    2. Delete the app.
    3. Restore v. 11.0.2 with Time Machine.
    4. In your iTunes folder look for a folder called "Previous iTunes Libraries", find the latest one.
    5. In the iTunes folder itself you'll see "iTunes Library.itl", delete it (or compress it and save a copy for later just in case.
    6. Copy the newest .itl file in Previous iTunes Libraries to the iTunes folder and rename it "iTunes Library.itl".
    7. Launch the older version of iTunes.
    My crashing has seemed to have ceased with a revert to an older version. I noticed today that the newer crashing iTunes had been launched for hours but not playing anything, when I played internet radio it crashed within 5mins, fed up I reverted to an older version.
    Btw, a simpler way to do this is to revert to older iTunes app, then hold Option when it launches and choose an older library.

  • Cannot play previously purchased songs

    I have a handful of songs that I previously purchased that can no longer be played. When I try to play them, it asks me to authorize the computer but it is already authorized.  I even unauthorized the computer and authorized it again.  Other purchased songs work and I know my account is OK.
    When I view the Summary on Get Info, I noticed that these songs do not show a Purchased Date as others do.  They do show Purchased by and my Apple id.
    Ideas??  Is this a version issue or something that can be resolved?

    Hello beeangie,
    It sounds like you have multiple Apple ID’s associated. Once the 90 days are up, you are able to associate the Apple ID with your iPhone. Another option is to restore your iPhone and setup as new. The article below will explain further about assocating Apple ID's to devices.
    iTunes Store: Associating a device or computer to your Apple ID
    http://support.apple.com/kb/ht4627
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • Playing different labels depending on timeline direction...

    Hi there.
    Here's the issue:
    - I have a timeline with stop() trigers every 1000ms.
    - I have several symbols moving horizontally, stopping at those triggers.
    - There's a central location at the timeline - 3000ms
    - When a symbol reaches (play) that central location, it plays, inside itself, the label "previous_to_center"
    - When a symbol leaves (play) the central location, it plays, inside itself, the label "center_to_next"
    - If a symbol reverses (playReverse) and reaches the central location, I want it to play, inside itself, the label "next_to_center"
    - Finally, if a symbol reverses again (playReverse) and leaves the center location, I want it to play, inside itself, the label "center_to_previous"
    I need the code for this.
    Thanx.

    Having multiple table with same structure looks like a design flaw. What benefit that does bring. So please explain the reason to have 2 table with same structure.
    Said that here are few more ways.
    SQL> select id
      2       , col1
      3       , col2
      4    from (
      5            select t1.id
      6                 , decode(t2.id, null, 'T4', 'T3') table_handle
      7              from t1
      8              left
      9              join t2
    10                on t1.id = t2.id
    11         ) a
    12    join (
    13            select 'T3' table_handle, col1, col2 from t3
    14            union all
    15            select 'T4' table_handle, col1, col2 from t4
    16         ) b
    17      on a.table_handle = b.table_handle;
            ID COL1       COL2
             1 DATA1      DATA2
             2 DATA3      DATA4
    SQL> select id
      2       , col1
      3       , col2
      4    from (
      5            select t1.id
      6                 , dbms_xmlgen.getxmltype('select col1, col2 from ' || decode(t2.id, null, 'T4', 'T3')) xml_data
      7              from t1
      8              left
      9              join t2
    10                on t1.id = t2.id
    11         )
    12       , xmltable
    13         (
    14            '/ROWSET/ROW' passing xml_data
    15            columns col1 varchar2(10) path 'COL1',
    16                    col2 varchar2(10) path 'COL2'
    17         );
            ID COL1       COL2
             1 DATA1      DATA2
             2 DATA3      DATA4
    SQL>

  • Playing previously purchased iTunes movies on iPad?

    Hi, I have previously purchased movies on iTunes using my iMac. I have synced them to my new iPad. I can play the music I synced by pressing "iPod", and the tv shows by pressing "videos". I just can't find where the movies have synced to? My imac assures me they're synced. How do I play them? Do I need to download another app?
    Thanks!!!!!

    Thankyou all! I had done all of that but I hadn't restarted both iMac and iPad. I restarted and it came up as not having sync movies checked. Don't know why but this time the sync worked. I feel like such a moron. Restarting is such a pc fix that I've got out of the habit!

Maybe you are looking for