Start/Pause Animation

Greetings all!
So I have this animation with one layer for the movie clips, and one layer for actions.
When I mouse OVER a hidden button, I want to cause the base animation to animate something from frame 2 to 6, then pause for user interaction.  Once the mouse OUT is detected on that same button, frame 7-11 should insue, then pause for user interaction (simulating a reverse movie clip).  I need to do this with 8 buttons, with 8 different animations.
I figured out after stupid amounts of trial/error and almost giving up twice to get the OVER/OUT mouse event to work, however the "stop();" command (obviously without the ""s) will NOT stop the root animation at frame 6, like I command it to in the action layer at frame 6.  It will continue to play to the very end, AND on TOP of that, not only will it NOT stop like commanded, but the stop(); command at frame 11 will also not work, making the entire animation loop playback so long as mouseOver is detected.  Soon as mouseOut is detected, the animation goes to frame 1.
Now, if I was to make frame 6 the last frame (destroying the possibility to make the backwards animation I NEED) then the stop(); command at frame 6 will work, the mouseOver event will work perfect, but there will be NO mouseOut event to speak of, and that's useless to me.
Here is frame 1 action layer code, with 11 frames of animation, stop(); at frame 6 and gotoAndStop(1); on frame 11:
stop();
import flash.events.MouseEvent;
right_btn.addEventListener(MouseEvent.MOUSE_OVER, onOver);
right_btn.addEventListener(MouseEvent.MOUSE_OUT, onOut);
function onOver(event:MouseEvent):void{ 
gotoAndPlay(2);}
function onOut(event:MouseEvent):void{ 
gotoAndPlay(7);}

SUCCESS!!!
I had the button with the MOUSE_OVER event ONLY IN FRAME ONE!
So the listening event for mouse over detected the button mouse over event in frame one, PLAYED frame 2-6, even STOPPED at frame 6 with the stop() command, but when it reached the stop() command in frame 6, it saw that there WAS NO BUTTON in frame 6, there for automatically detected a MOUSE_OUT event, thereby playing frame 7-11, STOPPING at frame 11 like it's commanded but then AGAIN detecting NO button, and re-looping back to frame 1, thereby creating a feedback loop neverending.
SOLUTION:  I kept the button in frame 1, placed the symbolized button in frame 6 to keep the frame locked at 6 until the MOUSE_OUT event was triggered, which works perfectly.
*FLIPPEN WHEW*

Similar Messages

  • How to stop/start an animation with setImageObserver()

    Hi,
    I have an animated gif that I want to use for when I'm waiting on a long operation (like the upper right icon on Netscape). The gif starts its animation without me telling it. I was doing some code like this:
    ImageIcon icon = ...
    JLabel label = new JLabel( icon );
    icon.setImageObserver( label );
    I assumed if I removed the setImageObserver() call then it wouldn't stop it. But, it didn't so I tried:
    icon.setImageObserver( null );
    But, that didn't have any effect. I want to start and stop this animation as I begin and end long operations how do I do this without using a Timer() and painting it myself.
    charlie

    Hi Charlie, did you ever find the answer to your question? I'm in an identical situation..

  • BeginAnimations: starts an animation but how do you stop it?

    Hi everyone:
    I've been using the following code snippet to start an animation:
    [UIView beginAnimations:animationID context:nil];
    [UIView setAnimationDuration:8];
    [UIView commitAnimations];
    but how do you stop it (prematurely)?

    Den B. wrote:
    Oh great! I actually learned about it from one of the Apple's own sample codes...
    The samples are only to get you started, explain the concepts, and show how to use the API. They aren't meant to be functional, production-quality applications.

  • When using Flash plugin in Fullscreen the video starts pausing occasionally for a second. OK when not in Fullscreen and works fine in Fullscreen with other Browsers.

    I have recently upgraded to 10.0 and whenn using Flash Player in Fullscreen it behaves badly. Starts pausing frequently for aroun a second. It's annoying. When I escape fullscreen and run it within the Browser panel it's fine.. Other Browsers work fine in Full Screen Mode. Tried it with IE and Google Chrome. Firefox is my default Browser so my preferred option.

    goneja2 wrote:
    I have narrowed it down to my Motherboard, GPU, CPU or Power Supply that is emitting the noise.
    I have never heard of such a thing, but the first thing I would try is to disabled Hardware Acceleration (Flash Player Settings).

  • To not reload from start flash animation on web page

    Hi,
    I've done a nice flash animation which is in fact an ad
    banner.
    This banner should be displayed on my customer website in
    each pages.
    However, in order to be sure that customers of my client will
    see the
    whole flash animation, i would like to be sure that it's not
    reloaded
    from the first frame.
    is there something like a frames counter which can be
    memorized by PHP
    pages server ?
    i mean on page welcome.php, my banner will be displayed.
    let's say that after few seconds (35 frames for example), the
    customer
    click on a link "prices.php".
    on this prices.php page my ad banner is once again displayed,
    but i
    would like to make sure it starts from frame 36 for example,
    and not
    from frame 1.
    how can i do that ?
    thanks a lot,
    RAF

    Ha! thanks certified. the DW experts are pointing at Motion or Episode. I have confirmed that the file won't loop right out of Episode, so that leaves DW off the hook, i think. But what to do?
    Perhaps my workflow is flawed. I don't want to use Aftereffects to create web animations anymore. I want to use Motion. But this is a showstopper. .swfs are supposed to loop by default, so I can't imagine what's wrong. thanks for anymore advice.
    coocoo

  • Can I start the animation from the middle?

    Hi,
    I want to use the same animation in two different places and in the 2nd place it should start from 15 seconds, not from the beginning. Is this possible? There are too many elements and events inside and would be painfull to redo it because of this, but would be great if I could just start playing it from 15 seconds.

    Hi, Mandi-
    You can create a variable the first time that says "I'm no longer the first play!"  Here's a sample of what you would put in your trigger at 0s.
    var hasPlayed = sym.getVariable("hasPlayed");
    // if it hasn't played before, start at 15s.  Otherwise, keep on going.
    if (hasPlayed == undefined) {
       // first set the variable so that the next time I hit this trigger, I'll skip this statement
       sym.setVariable("hasPlayed", true);
       sym.play(15000);
    Hope that helps,
    -Elaine

  • How do I place a movie clip that starts paused?

    I'm using the latest version of Keynote, and I present a lot of movie clips in my presentations. Ordinarily, I've been using Powerpoint, but I want to switch to Keynote. When I place a movie clip on Powerpoint, in presentations the movie begins paused, and I start it playing on the next mouse click. I can't seem to find an analagous control for movies in Keynote- every time I place a video clip, it begins playing immediately in presentation mode. I would really rather not have to take the time each time I introduce another movie to move the mouse, and physically pause the clip while speaking. Can someone please help?

    As far as I know you can't do this.
    The workaround I use is to do a screen capture of the first frame of the movie clip. I then have this on the slide in the position of the movie. The movie is then placed on the slide in the same position with a transition of "appear" with "on mouse click". This will do exactly what you want; the slide appears with the still image and when you mouse click the movie will appear (this will not be perceptible to the audience) and start playing.
    I use lots of movies in my presentations and this works well.
    Use the inspector for accurate sizing and positioning of the image and movie, and once you are happy with these I would suggest "locking" them so they can't get accidentally nudged.
    Hope this helps.
    David

  • Start-up animation

    Is there a way to disable the "Connecting people" animation that plays everytime the phone is started ?
    Nokia C7 (RM-675)
    Firmware: 013.016
    Nokia C6 (RM-612)
    Firmware: 20.0.042
    Solved!
    Go to Solution.

    NO and YES, NO because you can't set it not to play in settings. YES, When it starts to play just press any key and it would be skipped.
    And you can turn off startup tone, by going Profiles>options>personalize>warning tones >turn it off.
    Previous Phones: 6600, 7610, 6230, 6230i, 1100, 1112, N70, N73, N95, N95 8GB, 5800XM, 5230, C5, iPhone 3GS, SE Xperia X10, N900, N8, SE Xperia Arc
    Current Phones: Nokia N9, iPhone 4

  • Play/Pause animation on cursor rollover!

    Hi,
    I have a sequence of images that make up an animation.
    I want it so...
         - when the file initially opens, the first frame is showed
         - when the cursor rolls over the frame, the animation plays
         - the animation keeps playing until the cursor is taken off the frame, at which point it is paused.
    My animation has sound.
    No buttons, just plain and simple cursor roll over.
    Thank you for any help you guys can give me!
    Sam

    Thank you so much for your help Ned!
    But I'm still having problems....It's made no difference what so ever and I've done exactly what you've said.
    I've got some pictures here to help.
    Below is shot of my timeline as I see it...
    This is also the code I have inserted on the first frame of the "Actions layer"....
    These are some errors with the code (not sure if this is relevant)....
    Any more ideas Ned?

  • How to (re)start an animation on mouseenter

    Hi,
    I would like to have an animation play once, each time the mouse enters an area.
    2750 milliseconds is where the animation begins, and 4250 is where it ends.
    Once the animation begins playing, I want mouseenter events to be ignored, until the animation has finished.
    The code below is not working properly, it only plays the animation the first time mouseenter is run.
    What am I doing wrong?
    Thanks
       //Edge symbol: 'stage'
       (function(symbolName) {
          var spinning = false;
          Symbol.bindElementAction(compId, symbolName, "${_interaction}", "mouseenter", function(sym, e) {
             if (!spinning){
              sym.play(2750);
              spinning = true;
          //Edge binding end
          Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 4250, function(sym, e) {
             spinning = false;
          //Edge binding end
       })("stage");
       //Edge symbol end:'stage'

    Can you zip up your project files and share via a cloud service (Adobe CC, Dropbox or GoogleDrive), please for others to inspect the issue.
    Darrell

  • All timer jobs don't start (paused in check job status)

    Hello,
    Some bad things have happend to our SharePoint Server 2010. All timer jobs suddenly stopped running. The last time they ran successfully was 09/26/11. Since that time all jobs have been scheduled to run according to their schedule but don't actually run.
    In the Check Job Status view there is a list of jobs scheduled to run 09/26/11 which are currently paused for some reasons, other jobs don't run at all. 
    Is it possible to unpause these jobs and let other jobs to run? Any ideas would be very much apprecaited. Thank you in advance.

    Hi,
    Thanks for your post.
    Pausable Timer Jobs
    You can now create pausable timer jobs. This is done by inheriting from the
    SPPausableJobDefinition and overriding Execute(SPJobState) instead of
    Execute(Guid). You can then use the current job state (SPJobState) to store values which are retrieved when the job is resumed.
    Running jobs on all content databases
    Another new timer job derivative type is the SPContentDatabaseJobDefinition.This is a timer job specifically made to perform actions on content databases. The timer job is distributed on the WFE servers and each content database is only
    processed by one job. Override the Execute(SPContentDatabase, SPJobState) to add your own processing. The job supports pausing.
    Running jobs on all Site Collections
    A really interesting new timer job type is the SPAllSitesJobDefinition. This one is derived from the SPContentDatabaseJobDefinition and has a method called
    ProcessSite(SPSite, SPJobState) which you override to process the SPSite object. This could be very useful to build site inventories/directories.
    Running job on a specific server
    The SPServerJobDefinition is a pausable timer job that is designed to be targeted to a specific server (SPServer).
    Running jobs for specific services
    The SPServiceJobDefinition is another pausable timer job that runs a job on all servers where a specific
    SPService has been provisioned. A very similar job is the
    SPFirstAvailableServiceJobDefinition which runs the job on the first available server which has a specific SPService installed. If you would like to run a job an all servers you can easily use SPServiceJobDefinition. Then use the timer job service
    (which is installed on all servers, except dedicated database servers) and pass
    SPFarm.Local.TimerService as the SPService parameter in the constructor.
    All of the new specific timer jobs are essentially smart derivatives of the SPJobDefinition but using these new abstract classes will certainly save you some time when you need to target your timer jobs.
    I hope that helps.

  • How to create a Listener to start/pause/stop a  media player

    Hi there,
    I am writing a multimedia Advertisement application. Which will play a list of media clips one by one. HOWEVER, there is NO Button in it. Since this application is for cash register. That means whenever a purchase happens it will stop play the Ads and it will continue play the Ads clips afterwards.
    So, I am thinking to setup some Listener on the player to listen to the control message from the till. As I said there is no GUI button, so I can not define the action listener as before.
    How can I define such a listener ? any thought?
    Thanks a lot.

    Yesss, it is working again, thanks to you.
    A quick recap for those who may need it:
    - 1. delete the keys to Oracle listeners in HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services.
    - 2. follow the instructions detailed in Metalink under "Note:311399.1".
    - 3. Reboot.
    - 4. in the LSNRCTL shell issue the following commands:
    -- a. set current_listener <listener_name>
    If the listener was left without a name, substitute "listener" for "<listener_name>".
    -- b. start
    Thank you again for your help and time.
    adsm

  • Button hit starts new animation

    Okay,
    I have made a World map with different continents made into
    buttons. You rollover a specific button and a small animation
    plays.
    This is where im stuck...
    I want to click the button in the shape of a continent and an
    array of button that animate onto the screen (two different
    animations) and then turn into buttons. I have already created
    this. I have two files at the moment I just want to link them.
    I go into the continent button, into the Hit state and paste
    the frames that contain the array of buttons. They dont show when i
    publish nor do they stray to far from the main button.

    Set up a trace statement in your button code to check your
    button is working correctly:
    trace("boo!!");
    Cant suggest anything else without looking at the .fla
    file.

  • How to create a Listener to start/pause/stop a DIY media player

    Hi there,
    I am writing a multimedia Advertisement application. Which will play a list of media clips one by one. HOWEVER, there is NO Button in it. Since this application is for cash register. That means whenever a purchase happens it will stop play the Ads and it will continue play the Ads clips afterwards.
    So, I am thinking to setup some Listener on the player to listen to the control message from the till. As I said there is no GUI button, so I can not define the action listener as before.
    How can I define such a listener ? any thought?
    Thanks a lot.

    Hi Ican, 
    Upon opening your Vi I am getting an error that says, "The file you are attempting to play has an extensions (.) that does not match the file format." What extension are you using? Are you able to play files with extensions that are compatible with Windows Media Playter? If so, then I would suggest converting your playlist filenames an extension that Windows Media Player is able to play.
    Regards,
    Jackie
    DAQ Product Marketing Engineer
    National Instruments

  • Start/Pause Display buttons within videos/movies removeable for beamer-use?

    Hi erverybody!
    I´m new here and I think this "problem" is also new to you guys.
    I want to use the iPod as a source for beamer-projections within our shows on stage.
    It works quite good, the only problem (killing argument if I don´t find a solution) is that I don not know how to disable the "buttons" blended in the movie whenever you press a command on the iPod...
    Any ideas? Solutions? I would be so happy!!!
    Thanx in advance for YOUR support!
    Toni

    Hi,
    I'm from germany so no 'best buy' but I think I will lock around sleeve/bag for a different product with same measures. Any tip?
    The clear plastic case is not what I want. I would like to use the player without such protections. I just want a sleeve to protect the player while its in my jacket/pants.
    Btw, i have bought this version: Creative Zen (maybe european version?). I also doesn't seem to have your mentioned sleeve. I also couldn't find it on the website.
    Anyway, thank you,
    Chris

Maybe you are looking for