How do I make my Timeline play forward or reverse depending on its current location?

  I'm attempting to make a side scrolling site. I have a wide div set up in the main timeline that animates 1000px at a time on the x-coordinate between the labels I have set for each "page".
I would like to click a button and go to the associated label and stop. I am faced with 2 problems:
1. Sometimes this would require the playhead to move in reverse rather than forward.
2. I originally had stop triggers on the timeline under the labels but if I am able to get my first problem fixed these triggers would stop the animatin before reaching the label.
I'm just learning java so I'm guessing I need an if statement and a function.
Example of what I'm trying to figure out:
I want to press work button and play to label "work".
If I'm at label "home" I need to play(); and stop at label "work". If I were at label "blog" I would need to playReverse(); to label "work".
Please help! I've been going looney trying to figure it out!

Thank you for your reply!
My post may have been a little misleading...
I have a navigation bar with 5 items.  Home, work, blog, about, contact.  My main timeline has a symbol that is 6000px wide. Inside that symbol are individual symbols that make each of these "pages" which are 1000px each. My timeline has animations that last 1.5 secs each and animate the main symbol 1000px on the x dimension to stop on the main stage which is 1000px.  Essentially it creates a 5 "page" side scrolling layout. I have the five labels on the timeline starting at 0s with "home", 1.5s labeled "work", 3s labeled "blog"... etc.
I wish to be able to click blog and travel forward or reverse on the timeline and then stop on "blog".  Then If you click home you should reverse along the timeline and stop on "home".  If I have any stop(); triggers on the timeline it would stop in transition to my target label without reaching it.  In addition a generic play(); or playReverse(); doesnt target a specific label which is whats required for my navigation bar.
I need to play forward or reverse from the current location on the timeline and stop when it reaches a specific label. Visually you would be sliding back and forth across the pages as you use the navigation.
Is there a way to do this with variables?
I'm going to try triggers on the timeline like this sym.setVariable("pageValue", "home"); when on the "home" label.    sym.setVariable("pageValue", "work"); when on the "work" label.
but then how would I tie that to my buttons?
If I click work and I'm on home I need it to check:  var myVariable = sym.getVariable("pageValue"); and then an if or else statement I think?  I'm such a noob. I'm trying really hard to grasp it
something like:   if pageValue = "home" { sym.play();} else if pageValue = "blog","about","contact" {sym.playReverse} if pageValue = "work" {sym.stop();};
I know there is probably all kinds of syntax errors there but can someone understand what I'm getting at?
to make this even more tricky I am interacting with the stage with an html and css navigation bar that lays over the stage so I need this to be in function style (see code)
function goHome()
javascript:var targetComp = AdobeEdge.getComposition('EDGE-57204389');
   targetComp.getStage().playReverse();
and then call it like this in html
<li><a href="javascript:goHome();" class="three-d">
                              Dynamic
                              <span class="three-d-box"><span class="front">Dynamic</span><span class="back">Artisans</span></span>
                    </a></li>
This works to play the stage in reverse but its not the functionality I need.  Any help would be greatly appreciated and a great learning point for me and hopefully others in my situation!

Similar Messages

  • How can I make music (mp3) play automatically in one Scene (NO buttons)?

    How can I make an mp3 play automatically in one Scene (NO buttons)? I have been searching the net for answers for over 10 hours with no answer... My movie will not be for the web, it needs to be portable (CD or flash drive)...
    PLEASE HELP!!!!!!!
    thank you!

    You just need to look in Help for the Sound class and possibly SoundChannel... if you have an MP3 in your library - right click it, and go to properties. Set the sound to export for ActionScript - and give it a class name - mySound will work. Then you can make it play with something as simple as:
    var a:SoundChannel = new mySound().play();

  • **how can i make chess to play online?**

    Hi,
    I want to make a web application which is a game of chess. I want to make it in such a way like on yahoo games. Where two people can play chess. I know how to make it possible to play on a single desktop pc. But how can i make it to play online. I need to know about what java technologies I should learn to make this project possible.
    Regards,
    Fahad Ahemd

    ok but how I dont want to create webserver. I mean I can't affort it at this stage of my education. I can afford a webhosting. there are lot of opitons for webhosting are availabe. I can buy one for me. But I want to know what features of java or anything else should be available on that server. 2nd is what do u mean by socket programming. I understand http programming. It includes servlets and jsps. but what is socket programming and why i need it in this project.
    waiting for reply...
    Fahad Ahmed

  • How do I make one video plays after the other

    Let's say I have an idvd project with 5 different movies, how do I make one plays after the other? When I click next, it goes back to the menu. Thanks Alex

    There are two ways to do this.
    1. If you have it, use iMovie HD6. You can put all of your movies into one project, and add chapter markers at the beginning of each movie. This will allow you to play your movies straight through or select the individual movies, like a scene selection.
    2. You can use iDVD instead. Check out this post by Old Toad on how to use this method.
    http://discussions.apple.com/thread.jspa?messageID=8656075&#8656075
    I hope this helps.

  • How do I make a playlist play UNchecked songs?

    When creating a new smart playlist there's a checkbox option called "Match only checked items".
    This means you can make a playlist that will include unchecked items.
    Now how do I get them to play?
    In particular I use the Genre field in conjunction with the Grouping field to identify Christmas songs. After all a Christmas song can be Rock, Funk, Soul, Pop, Folk, etc. whatever. I keep these songs unchecked so that they don't turn up in my smart playlists the rest of the year when I'm making a playlist of e.g. R&B.
    However, I also have a smart playlist called Christmas that collects all these unchecked songs. Now how do I get it to play those songs?
    Thanks.

    qda wrote:
    I dug up my old apple account from years back just to log in here to tell Grant Greene:
    You dug up an old apple account from years ago to respond to Grant Greene's 13 month old post?
    I've been asking this question for years, because SOMETIMES I just make a playlist of a mix of checked and unchecked songs so that I can listen to ALL the songs in that playlist without checking them, ..
    and valiant66 wrote,
    "Besides, the checkmarks were put there to control what syncs with your iPod, not what you listen to."
    which is incorrect. The option Sync only checked songs was put there for for additional control when syncing, not the only control
    As noted, unchecking songs does more than simply not sync them.
    And even when unchecked, you need to select the option to not sync checked songs.

  • How do I make a slideshow play in random order?

    I have a simple slideshow comprised of about 10 images that fade in and out from one photo to the next. I'd like to be able to have them play in random order. How can I make this happen?

    You need use JavaScript or jQuery for generate random numbers and use this numbers for navigate in the timeline

  • How do I make iMovie projects play in Windows Media Player?

    How do I make movies that I have created in iMovie play in Windows Media PLayer having been transferred by memory stick or email? This would be ideal to know because my school's computers are PCs and our main computer is an iMac.

    By far the easiest way is to have the school install the free QuickTime Player (Windows Version) from Apple.
    Otherwise, you can buy a version of Flip4Mac that will enable you to do the conversion using QuickTime Pro or MPEG Streamclip.

  • How can I make mp4 videos play in Firefox?

    YouTube works fine. Other websites play videos, no problem.
    But then I'll go to a website and see a message that the video is either corrupt or is not supported.
    When I search for how to play mp4 in Firefox I end up at this site:
    http://www.jwplayer.com/blog/the-state-of-html5-firefox-now-supports-mp4/
    With the huge headline Firefox Now Supports MP4.
    No, it ****ing doesn't!
    A bit frustrated, because everywhere I look for help on this, I either come across pages saying it should work, Firefox supports mp4 etc, OR forums where it's webmakers asking the question and then the solution is something wrong in their coding - which doesn't help me, the lonely end user.
    When I go to this suggested test site: http://techslides.com/demos/sample-videos/small.mp4
    I get the error message: Video can't be played because the file is corrupt.
    No, it's not. I can download it and play it on WinAmp.
    When I go to this suggested test site: http://www.html5videoplayer.net/html5video/mp4-h-264-video-test/
    I get the error: No video with supported format and MIME type found.
    Huh? Again, I can download and play it fine.
    But Firefox won't play it.
    Soooooo
    Is there a fix in the wind?
    Is there something I can tweak or change to make Firefox recognize and play this stuff?
    Is there a plugin/extension/addon that I need to download to play mp4?
    If this is a known problem that is going to be fixed eventually, is there something I can do as a substitute (ie a plugin for now)?
    Because it seems like the only alternative is to abandon Firefox and start using Chrome, which has no problem with the above-mentioned videos.

    I have win7 home, firefox 35.0.1. Java but no other add-on/extension that matters.
    And it works, both your links.
    Try running firefox in safe mode and see if it works

  • How do you make itunes not play wav files?

    I know how to make it play wav files but how do I remove it from the default player list? I want them to all play in Quicktime. I have done the right click, holt alt and press Always Open With... and also done the right click and specify it to open in Quicktime. I have done this on 3 different Macs with 2 different OSX versions. It will open in Quicktime that one time but then the next time I open a wav file it goes back to Quicktime.
    Anyone have any suggestions?

    It will open in Quicktime that one time but then the next time I open a wav file it goes back to Quicktime.
    Do you mean, "goes back to iTunes"?  "A wav file," or the same wav file you just changed?
    Did you select the additional option in Get Info's Open With window to, "Change all of this kind to open with Quicktime"?

  • How can I make the rington plays longer?

    I have iphone 3gs,when I pud a song as a rington,It plays only 8 secounds.can I make that plays longer?

    Well the duration of the ringtone in iphone is 30 sec max. watch this video it will show you how to create your own ringtones upto 30 seconds at least
    http://www.youtube.com/watch?v=6yGkW4srMlc
    or for more infomation on ringtones go to http://www.tech-experts.webs.com
    Or another way is by selecting the ringtone  Go to itunes songs you own and right click the song you want as your ringtone. Scroll down to where it says create ringtone. Then a window will pop up thats lets you select from where to where you want the ringtone in the song. You can get from 5 sec to 30 sec. but remember the song should have been bought from the app store. then it is possible.

  • How can I make a playlist play on my iPod in random order?

    I have made a playlist on my computer in iTunes. The songs are now in alphabetical order by song title, and when they play on my iPod they play in that same alphabetical order.
    Is there a way that I can make the songs in the playlist play in some other order? Preferably, just a random order?
    Or, is there a way that I can arrange them in iTunes that is not in alphabetical order and have them stay in that non-alphabetical order?
    Thanks!

    Just go to Settings, Shuffle, then turn it to Songs. The songs will stay in the same order in the playlist, but they'll switch it up.

  • How do I make a project play automatically

    I have recorded 4 presentations, all with a power point presentation first slide. When doing one of them I found somewhere a setting so that it starts playing automatically, the other 3 need the user to either click on the start button on the toolbar or use the enter key. I have searched and searched to find how I managed to get the one starting automatically but can not now find it - any help from anyone would be much appreciated as I would like them all to start playing automatically.
    Thanks

    Hi again
    Well, it's because you didn't advise up front what version of Captivate you are using. As you seemed to be a new user, it would appear I mistakenly assumed you were using version 4.
    You might want to review the link below:
    Click here to read
    As for auto starting, if you are using Captivate 3 or older, it should already be playing automagickally. This would infer you have a Button, Click Box or Text Entry Box object on the first slide. Any of those objects will typically pause the playback until they are dealt with.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • HT1657 How can I make my rentals play after reloading my computer from backup?

    Hi,
    I rented movies and then backed up my computer then installed a newer version of Windows on it. I restored my iTunes library from backup, but none of my rented movies will play. How do I fix this?
    Joe

    Aha - I did it. Switch off Voice-over, then add a sorted playlist. Fingers crossed...

  • PPT with embedded MP4 videos not being improted as a playable video - how can I make the MP$ play as a video?

    I have a PPT slide presentation that has embedded MP4 videos (captured using SnagIt) in the presentation. When I import and convert, all my PPT slides convert with animations intact, but the videos are not playable and appear only as a 'static' slide.... I'm messing around with the trial version of Captivate hoping it can do what I think it can (like what I just described here) and am trying to cost-justify the purchase of this package to my management team -but I have to make sure it can do what we want it to do first - so far, no good - but I think I'm probably just missing something...any tips or suggestions?

    Hi there
    One way to accomplish your goal would be to use what I call: The Camtasia Approach
    Basically you play the presentation and use Captivate to record it. Camtasia operates that way with PPT.
    Cheers... Rick

  • How do I make a sound play once the .swf starts?

    I have loaded 'Audio.wav' onto the Library, and given it a linkage name of 'Speedcore' without the apostrophes. I ticked the boxes 'Export for ActionScript' and 'Export in First Frame'.
    I want it to start once the .swf begins. I set Audio to Stream.
    This is a code I found but doesn't work
    var mySound:Sound= new Sound(); mySound.loadSound("Speedcore" , true); mySound.onLoad = function() { mySound.start(); }
    Help? =)

    Thanks, I will try it. The only thing I need is to learn global values or whatever. I'm using a money-system and I need to learn how to make it so you can only buy 1 of an item, and all that. But atleast I know the basics. Thanks Kglad!

Maybe you are looking for

  • Query in Pl/Sql

    Hi All, We have senario in which two sql statements are running in large volume. So we decided to write those statements with execute immedate bcz to take the advantage of bind variables save parsing time in each execution. for e.g 1st Approach IF co

  • Editing o/p of alv

    how to edit the output of alv report and alvgrid .ans plz asap.

  • Time Machine Preference Safe?

    Desktop iMac late 2013 Processor 3.1 GHz Intel Core i7 Memory 16 GB 1600 MHz DDR3 NVIDIA GeForce GT 750M 1024 MB OSX Mavericks versions 10.9.4 and 10.9.5 No lock symbol showing on Time Machine Preference. Is that safe or is it defective?

  • WsHTTP Bindings in ESB

    I am trying to import a Dot Net web service into my Oracle ESB and am having an issue with the service that uses wsHTTP bindings. The ones that use basicHTTP work fine and I can import those without a problem. Actually the issue occurs when I try to

  • Task Assignment Adapter - Tools Reference guide

    Can anybody please tell me an example of how to create a Task Assignment Adapter? I have already gone throuh the Tools Reference Guide. I created one task assignment adapter in adapter factory and it provides by default with 2 variables Adapter Retur