Stopping animations at certain points on the timeline.

Hi all..
Lets say i have a flashing button in a 2 second loop, "pointA" to "pointB"...
at second 0 ("pointA") the animation begins and at second 2 ("pointB") the animation return to second 0 with the code sym.play("pointA");
when a user clicks the flashing button i have another animation that starts and i would like the flashing button to stop
How do i tell the flashing button animation to reach "pointB" in the animation and then stop, at the moment all i can do is tell it to stop when a user click the button which makes it stop mid-animation
I understand that i can stop an animation by the following code, but i can get it to finish its animation and then stop...
sym.getComposition().getStage().getSymbol("flashingButton").stop("pointA");
Thanks for reading!.
Justin..

Hi, Thanks for explaining this...
If you can please could you take 5 to look at the basic project i have uploaded to the link below..
http://adobe.ly/1hgZp81
I have added your state machine to the mix and everything is working as it should but i need each animation to end before a new one begins
There are 4 animations that are triggered by events..
1:READY
2:WAITING
3:PLAYING
4:PAUSED
i would like for an animation to end before the new one begins even though an event has fired. This is because eventually the animations will all be on top of each other to create a seamless animation...
I have put notes by my code and sectioned it out to help make it clear
you will find code in the following places
FULL CODE
STAGE
CLICKBOX
READY>READYB
WAITING>WAITINGB
PLAYING>PLAYINGB
PAUSED>PAUSEDB
when you click "click to play" it will load an audio stream from a reputable website (ABC Jazz) so nothing silly going on!...
The full rundown
When you load the file into a web browser the "ready" event fires and starts the "ready" animation.
Then when you click "click to play" the "waiting" event fires causing the "waiting" animation to play (its basically buffering audio while this event is firing).
Then when enough audio has buffered it fires the "playing" event and the "playing" animation occurs and you start to hear the audio stream.
When you click "click to pause" the "pause" event fires and the "paused" animation begins.
then the cycle begins again but the "ready" event is no longer required so when you click "click to play" the "waiting" event fires and so on...
NOTE: i am using a open source script for the audio stream called jplayer (i have loaded the script into the edge file that i have given a link for)
NOTE: the only way to make this script initiate is to add <div id="liveStream"></div> to the events.html file (otherwise i can not send or recieve commands)
I guess what im asking is:
how do i make an animation end (finish its 2 second animation) before the new one begins
could you take a quick look at my code to make sure i am not running functions too many times (you will see my notes) and to check to see if i have written things correctly, as i am new to this i am finding that there are 100 ways how not to write code and only a few ways how best to write code
This project is for an audio stream and is for personal & public use, it is not being sold and no money will be made from the end result. (its all about the love 4 music!)
Many thanks
Justin

Similar Messages

  • How do I disable a button up to a certain point on the timeline?

    I have a series of buttons on the screen.
    Is there anyway to have the buttons displayed for the whole length of the timeline, but disabled up until a certain point on the slide.
    For example I want to disable the NEXT button for 4 secs, preventing the user clicking on it up to that point.
    Right now, I hide the button for 4 sec - but this is not very elegant.
    Any suggestions greatfully received !!
    CP6 on Windows 7

    Hi there
    In addition to what Lieve described, I'll also advise of how I managed to do this.
    Create an image of the button in a disabled state. That provides a nice visual cue that the button is disabled. Then insert the image in the same screen location as the button. On the timeline, present the image for the time the button is disabled. Then configure the image to disappear and at the same point have the button itself appear.
    Worked a treat for my project.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Is there a way to make an audio clip not cover the whole project? I want to add audio clip or song and let it start at a certain point in the project. I'm working with iMovie on IPad!

    Is there a way to make an audio clip not cover the whole project in iMovie? I want to add audio clip or song and let it start at a certain point in the project. Whenever I add audio or song it covers the whole project. I'm working with iMovie on IPad!

    Thank you for your reply Karsten but unfortunately this didn't help me so far. Or maybe I'm missing something?
    First the link is a tutorial for iMovie on a Mac. I'm using iMovie on iPad so the steps are inapplicable.
    Second it is only possible for me to manipulate the end part of the sound clip to whichever duration I want. But I can't do the same with the 'beginning' of the sound clip.
    I simply want to place some photos in the beginning of my video with no sound in the background then after like 2 secs I want to start the music clip. For some reason that is not possible! Cause every time I drop the music clip unto my project timeline it automatically place it self along with the first frame in the project! And consequently the photos and music are forced to start together.
    Hope I'm making sense...

  • Mountain Lion download stops at a certain point (79.34Mb)

    I'm trying to download Mountain Lion. The download stops at a certain point (79.34Mb) and nothing I can do will restart it. I have followed the tips in the 'restarting a download' page and tried cancelling the download and it always stops and the same point. The purchase page in appstore shows a Pause button, but pausing and resuming doesn't restart the download. What can I do now?

    http://www.apple.com/support/mac/app-store/contact.html?form=account.They're responsible for getting this abysmal delivery system to work.

  • "jump" points on the timeline

    I'm kind of new to iMovie, and I'm working on a project where I'd like to set points on the Timeline where the movie will automatically jump to on a certain keystroke during playback. I'd like to be able set up several within the same file. Does anyone know of a way to do this, with iMovie or any other Mac application?
    I'm trying to sync prerecorded film to live music (with fluctuating tempo) as closely as possible, so I need to set up several points where a significant event in the music will be matched exactly to a complementary event onscreen.
    Thanks very much!

    Hi Martin
    this could help you starting. For the case you can't open LV 8.2- VIs, i attach the BD- picture.
    greets, Dave
    Message Edited by daveTW on 06-14-2007 10:26 AM
    Greets, Dave
    Attachments:
    play sound part_FP.png ‏10 KB
    play sound part.vi ‏50 KB

  • Is it possible to pin my navigation to the top of the browser until I reach a certain point on the page and then let it continue to scroll normally?

    I'm trying to get my navigation to pin to the top of the browser while other scroll effects are taking place, then when it reaches a certain point on the page, I want the navigation to continue moving up and off the screen to allow for the footer to come in.  Is this possible?

    Merci Éric de me revenir en français, je l'apprécie beaucoup. Je ne veux conserver que le mouvement de haut en bas et de bas en haut. Je ne vois pas l'utilité du mouvement horizontale (gauche-droite, droite-gauche) et pire encore, par mégarde je fais trop souvent bouger ainsi mon texte et cela m'embête, même me dérange  beaucoup. Même que cela me donne même mal au coeur hahahahahaha!
    Par contre, ma souris précédente avait le mouvement de défilement du haut en bas et bas en haut et cela par contre m'est très utile. Je voudrais donc savoir s'il existe un moyen de stopper le mouvement de côté mais conserver tout de même la fonction du mouvement haut-bas et bas-haut avec le simple toucher de la souris. Suis-je plus clair? Disons que c'est plus aisé pour moi en français. merci à toi
    Danielle

  • I have a fairly new iPod touch and the touch screen has stopes working in certain places like the bottom row of apps and things on keyboard I have updated it and restored it multiple times it makes no difference please help!?

    I have a fairly new iPod touch and the touch screen has suddenly stopped working..... Like the bottom row of apps has stopped working and certain buttons on the keypad are not working at all what so ever I have taken it to the apple store once before they told me to update it I did so and it didn't get better I have also restored it multiple times still nothing I really would like a working I pod please help!!!

    If you restored to factory settings/new iPod and still have the problem that indicates a hardware problem.
    Make an appointment at the Genius Bar of an Apple store..
    Apple Retail Store - Genius Bar

  • After applying update my apple tv2 will randomly go to a black screen that lasts for a few seconds. When it gets back to normal after a few seconds it acts like the video never stopped since its farther along in the timeline. This happens with all video c

    After applying update my apple tv2 will randomly go to a black screen that lasts for a few seconds. When it gets back to normal after a few seconds it acts like the video never stopped since its farther along in the timeline. This happens with all video content wether its from Netflix or streaming from my iTunes library

    You might try restarting the Apple TV by removing ALL the cables for a 30 seconds. If that doesn't help try using another HDMI cable.

  • Why my fla. animation stops at a certain point after previewing it in captivate 3

    I have developed an animation using flash CS3. The animation works fine in flash (test movie, and published swf). When I inserted the fla. (insert animation) in my Captivate 3 slide, it stops at the exact same point each time while previewing the animation through the web browser. I have read on this blog that it may be a button or other objects on the slide that has a timer set. I checked the timeline. All of my objects are set at 11 seconds. There are rollovers on the same slide. I have tried to inserting a click box with the "pause project until user clicks" option, syncing the fps, redoing the flash animation and nothing works.
    Can anyone help me on this?

    Hi there
    It may depend on how you created the animation in Flash. Is the animation supposed to loop? If so, did you animate on the main timeline? If you did, that may explain it. You need to animate in something called a "Movie Clip", then insert the Movie Clip on your main Flash timeline.
    And thus I have managed to totally expend any knowledge I possess regarding Flash. Most of it is a mystery, in a fog of an enigma, cloaked in a conundrum.
    Cheers... Rick
    Helpful and Handy Links
    Begin learning Captivate 5 moments from now! $29.95
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcererStone Blog
    Captivate eBooks

  • Loading an animation at a specific point in the timeline?

    Hello,
    I am trying to find out if it is possible to start/load the animation based on a specific point in its timeline? The animation I am creating is a parallax animation based on mouse position and I am trying to load it in the middle of the animation and based on the users mouse position will play forward or backwards from that point. Is this doable?
    Thank you

    Hi, Bullvinne Designs-
    What you'll want to do is to stick some initialization code into the compositionReady event from the stage.  This will execute after the runtime loads and before the user sees the stage.
    Thanks,
    -Elaine

  • Blu Ray building process stops at a certain point in Encore CS 5.5 for Mac....

    In Encore CS 5.5, I am trying to author a 3:21 hour long video as one timeline imported from PPRO CS5.5 on a BD-DL. File size is 38.30GB. In transcoding everything works normal. When it comes to building, it stops at 26.87 GB or 26.92 GB. This has been happening third time in a row. From the sound it looks that Blu Ray burner is trying to continue with the burning process, but nothing happens. When I tried to burn the file as Image, i got Error Code 25. Can anyone help?

    Did it give any error when you say that it stopped at some point while burning the disc? If it didn't give any error, for how long the burning did not proceed further? Sometimes the progress bar might stuck at some point but the burning keeps on going. You might want it to go overnight to see if this really hangs at that point.
    Error code 25 while burning a dual layer image is a bug in 5.5. This is related to some kind of layer break for dual layer image. This should have been fixed in 6.0.1 (patch update to 6.0)
    -Ramesh.

  • Can I zoom in on a specific point on the timeline

    There must be a way for me to zoom in on the timeline without losing my place everytime while doing so.
    Is there a button I can press while zooming in that will keep the scrubbing point within my view of the timeline.
    I really hope that made sense...
              Patrick

    patrickmbarker wrote:
    what is the CTI?
    Playhead.
    CTI is what they used to call it: current time indicator.
    If you hold alt and scroll with the mouse it will zoom in on the playhead.

  • Removing between and in and out point in the timeline

    I don't usually post on forums but this has got me quite perplexed:
    How do you remove a chunk of media between and in and out point in the FCPX timeline?
    It's can't be as hard as it seems to do this task that you have to do all the time. I have a 2 hour 3 camera shoot and I want to remove quite a few 2, 3 minute chucks all through the show. I can't find any way to easily remove these chunks. I know there's no real in and out point in the FCPX timeline anymore but there HAS to be some way to easily remove all the video and audio between two points !!!
    I feel really dumb! The answer can't be to make a compound clip as that sure is a pain just to remove something from the timeline. And to blade each individual track means I have to blade at least 8 or 12 things just to remove it!
    I have to be missing something. Thanks for any input.

    Thanks Tom.
    I'll have between 3 and 6 layers at any point. I've tried command B but the problem with that is it only puts a cut on the primary storyline. It will cut more than that if I select all the layers. By doing that it's like a 5 or 6 step process to delete chunks of media in the timeline. I can't believe there isn't an easier way than that.
    But what makes it worse as I have a long piece of audio only media that  is for the whole show. Its a connected clip to the primary storyline. when making edits with command B and then deleting what is between the edits this main audio gets deleted from the edit forward. IT's like this audio becomes a connected clip right after the edit when command B is made. it looks connected to the next clip after the command B but it deletes when I delete the chunk between the command B.
    This is so silly that I can't easily delete media from the timeline in this way. It's such a simple thing!

  • How can I get rid of sound at a certain spot in the timeline?

    I have some video shot with my gopro camera, every time I switch hands with it - it makes a noise the mic picks up that I want to get rid of. Can that be done in premiere pro?
    Thanks,
    Rchjr

    RCHjr what Peru Bob is suggesting may benefit from a little more detail.  He is suggesting you find another clip with what is called "room tone" or background sound. If you cut out all of the sound where you handle the camera your movie may sound strange at the point everything is removed.
    Find a part of or a clip where there is consistent background sound  with nothing unusual.  It needs to be a little longer than the section you cut out.  Alt click on the sound part of the clip and drag it somewhere clear on the timeline, this will copy it without the video. 
    Listen to it by itself -expand the track and click on the S button at the far left to solo it, make sure it is clean- nothing unusual. This is best done using headphones.
    Place it on an audio track under the clip you cut the sound out of.  You now have many ways to blend them; you can ripple delete, use keyframes or the clip mixer or transitions to blend the two tracks together.
    I do a lot of GoPro pole camera work on moving boats on the ocean, every time the camera body or pole is rotated or touches a boat just what you describe happens.  There are more sophisticated ways to try to fix it in Audition but the clone and blend method should do the trick.  It's also helpful to shoot twenty or thirty seconds of  "room tone" which is asking everyone to be quiet and rolling the camera(or sound recorder) for every unique soundscape.

  • After Effects CS6 render problem with exactly one frame or exactly at one point in the timeline.

    I've recently tried to render a project in After Effects CS6 but everytime I render the render fails at exaclty one frame or a time in the timeline, in this frame or point in timeline I have a composition with the following effects: Twixtor Pro and inside that composition I have the video with the following effects: Motion Tiles and Wave Warp. I rendered the project in H.264 format with a 8 bitrate. I tried to fix this even by trying to render the project as a TIFF Sequenece but the render keeps failing and the final output is only the part of the video until that exact frame. I have caps lock on to try to speed up my render. Any help would be appreaciated and let me know if you need more information and i'll try to give you more.

    Set your work area to about 5 frames before the fail and 5 frames after and see if you get a fail.
    If you get a fail then start turning off a layer at a time until you find the culprit. Let us know what's going on there.
    A screenshot of the timeline with all properties revealed may also give us some ideas.

Maybe you are looking for