The animation stops

I have a problem with the created movie clips. After pressing a movie clip the animation starts but if a mouse is moved away it finishes the animation then stops. You can see it at http://krolas.pl/produkty.swf. Could somebody help me to find a solution?

That doesn't explain how you have assembled the design, but here's some recommendations to help you find the problem.
1)  instead of using e.target use e.currentTarget.  target can point to something inside the object, but currentTarget will point to the object with the listener assigned to it.
2)  Use the trace() function in every function you have so that you can track down which ones get executed when you experience the problem.  If you just trace the function name that should be enough until you notice something you don't expect..  Then dig deeper within if needed.  Example... do this to all your fnctions....
function onOutBack1(e:MouseEvent){
    trace("called functon onOutBack1");
    e.currentTarget.gotoAndPlay("out");
function onOverBack1(e:MouseEvent){
    trace("called functon onOverBack1");
    e.currentTarget.gotoAndPlay("over");
etc...

Similar Messages

  • Animation stops in the middle when preview in browser

    I have run into a problem where the animation stops in the middle when I preview it in browser, but it is fine when I play it in the program. Please advise how to fix this problem. Thank you very much.
    Ramon

    I've had this problem with a purchased song but never a ripped song. I think its an encoding problem with iTunes. One poster suggested converting the song, which kind of tells us that its something to do with the encoding. I can't remember the song that this happened with, some Tom Petty tune. But I do remember this, which is strange, this happened on my Touch but not the iPhone with same song.

  • How to stop the animation at a certain frame?

    Well, as the title already says, how can I stop my animtation at a certain frame. Is it only possible due setting up a timer, or can I also enter a code that stops at a certain frame?
    And when I stop the animation, will my buttons still be able to get clicked?
    Greetings,
    Coyke

    Thanks for the usefull reply, the problem was that i forgot the add a new keyframe that's why I couldnt make it in the frame I wanted.
    I will have between 15 and 20 buttons that need to be able to get clicked when my animation is stopped, I first imported them to my library, then placed everything where I wanted it to be. Then created them as a Symbol (Selected Button!). Then I created instance names for every single of them.
    With the code that's downstairs I want to let my animation go to frame 200 when I click on the button "Middenknop" while the animation is paused. But now i get this error:
    TypeError: Error #1009: Kan geen eigenschap of methode benaderen via  een verwijzing naar een object dat null is.
         at Animatie2_fla::MainTimeline/frame1()
    Here's the code I am currently using:
    import flash.events.MouseEvent;
    //---Middenknop eigenschap verandering---\\
    Middenknop.addEventListener(MouseEvent.CLICK, basisClick);
    function basisClick(event:MouseEvent):void{
        gotoAndPlay(200);

  • How do I stop the animation at a certain point after it has played part of it on a click?

    I seem to be missing some key html knowledge on this! I have a drop down menu and when I click on the text on the navigation bar, I want an animation to occur (the menu to drop down) and then I want it to stop.
    Here is the relevant code:
          Symbol.bindElementAction(compId, symbolName, "${_FishingTrigger}", "click", function(sym, e) {
             // Navigate to a new URL in the current window
             // (replace "_self" with appropriate target attribute for a new window)
             window.open("http://www.theriveroverlook.com/Packages/Fishing", "_self");
             // insert code for mouse click here
          //Edge binding end
          Symbol.bindElementAction(compId, symbolName, "${_CookingTrigger}", "click", function(sym, e) {
             // Navigate to a new URL in the current window
             // (replace "_self" with appropriate target attribute for a new window)
             window.open("http://www.theriveroverlook.com/Packages/Cooking", "_self");
             // insert code for mouse click here
          //Edge binding end
          Symbol.bindElementAction(compId, symbolName, "${_PhotographersTrigger}", "click", function(sym, e) {
             // Navigate to a new URL in the current window
             // (replace "_self" with appropriate target attribute for a new window)
             window.open("http://www.theriveroverlook.com/Packages/Photographer", "_self");
             // insert code for mouse click here
          //Edge binding end
          Symbol.bindElementAction(compId, symbolName, "${_GolfTrigger}", "click", function(sym, e) {
             // Navigate to a new URL in the current window
             // (replace "_self" with appropriate target attribute for a new window)
             window.open("http://www.theriveroverlook.com/Packages/Golf", "_self");
             // insert code for mouse click here
          //Edge binding end
          Symbol.bindElementAction(compId, symbolName, "${_RomanceTrigger}", "click", function(sym, e) {
             // Navigate to a new URL in the current window
             // (replace "_self" with appropriate target attribute for a new window)
             window.open("http://www.theriveroverlook.com/Packages/Romance", "_self");
             // insert code for mouse click here
          //Edge binding end
    Symbol.bindElementAction(compId, symbolName, "${_Packages}", "click", function(sym, e) {
             // play the timeline from the given position (ms or label)
             sym.play("drop2");
    NOTE: If I put a sym.stop ("stop3); here after the play, it stops the animation before it even starts.

    My assumption is you are laying down this animation in main timeline (stage). It starts in frame "label=drop2" and it continues until frame "stop3". Maybe this one helps:
    - scroll to the last frame of the animation. "stop3" i assume.
    - Create a "Trigger Action" (the code window)
    - Call the sym.stop() to stop the animation at this frame.

  • How to stop and resume the animations of nested movieclips

    Hi
    I have many nested movieclips  in different positions of the main timeline.
    I have 2 buttons, play_btn and pause_btn.
    I'd like when the user click pause_btn, the animations on the main timeline and in nested movieclips stop.
    Whe he click play_btn the animations resume in both the main timeline and nested movieclips.
    I have created array of nested movieclips on the main timeline.
    var arr:Array = new Array(mc1, mc2, mc3, mc4, mc5);
    play_btn.addEventListener(MouseEvent.CLICK, on_play_btn);
    pause_btn.addEventListener(MouseEvent.CLICK, on_pause_btn);
    function on_play_btn(e:MouseEvent):void
         gotoAndPlay(currentFrame);
         for(var i:Number = 0; i < arr.length; i++)
             if(arr[i] != null)
                 arr[i].play();
    function on_pause_btn(e:MouseEvent):void
         gotoAndStop(currentFrame);
         for(var k:Number = 0; k < arr.length; k++)
             if(arr[k] != null)
                 arr[k].stop();
    but it only stops the animations on the main timeline and dosen't stop the animations in the nested movieclips.
    Help me Please.

    I'm having the same issue.I have a main timeline, which has nested movieclips with there own timelines and motion tweens. Using the new motion tween, and not the classic tween, which may or may not be the problem.
    Was having a similar issue with stopping the timeline, the main timeline would stop, but the nested movieclips would keep going. Found this blog post that helped.
    http://blog.nobien.net/2009/02/05/as3-stopping-all-timeline-animations/
    Used the code below to stop everything by passing the stage as the displayObject. Worked great, but now i'm having the reverse issue. When I resume play, the nested movieclip timeline stays exactly where I stopped it, and the main timeline resumes play. If there are a 100 frames in the nested movieclip, once it reaches the 101st frame, the main timeline kicks in again.
    function stopAllChildMovieClips(displayObject:DisplayObjectContainer):void{
            var numChildren:int = displayObject.numChildren;
            for (var i:int = 0; i < numChildren; i++) {
                var child:DisplayObject = displayObject.getChildAt(i);
                if (child is DisplayObjectContainer) {
                    if (child is MovieClip) {
                        MovieClip(child).stop();
                        stopAllChildMovieClips(DisplayObjectContainer(child));

  • How to stop the animation embedded in my button ?

    I want an animated button and I want a rollover animation.
    Everything works fine, but the animation is a loop and I just want
    it plays once.
    I already set animation properties to Repeat 1.
    Button Property: Event Repeat 1.
    Why doesn't stop ? thanks

    put a stop(); action on the last frame of the buttons
    timeline.

  • How to stop the animation at a certain frame using action script 3.0 .

    How to stop on a frame to stop the animtion using adobe flash cc.

    Either put a stop(); command in the desired frame of the animation's timeline, or have an ENTER_FRAME event listener working who's event handler function constantly check the currentFrame value of the animation and issues an animation.stop(); command when the desired frame is reached

  • Firefox page load or animation stops until i move the mouse or keyborad input

    Firefox page load or animation stops until i move the mouse or keyborad input

    hello H.Groenewegen, multiple other affected users have reported that this was an issue that can be caused by malware on the system.
    please run a full scan of your system with the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] and [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner] (both these security tools are free).
    [[Troubleshoot Firefox issues caused by malware]]

  • Importing .GIF into Fc will not play the animated gif in output

    I imported a animated .gif  (attached video.gif) into Fc (of a sequence of pics I took saved as an animated .gif)
    It inported as a "bitmap image" and upon export to swf it did NOT show the .gif as an animated .gif but just shows the first frame..
    (It did not put this file into an assests folder...)
    So I converted the "bitmap image" into an optimaized graphic...and NOW it DOES put the original animated gif into the "assets" folder with a Graphic1.fxg and video.gif in that folder.. and If I open the gif in the assest folder it plays it as the animated .gif it is..
    BUT SADLY upon export to SWF it still DOES not play the gif as an animated gif.. just the first frame...
    Can I do anything in the code to tell the swf file that is exported to play the gif in the assest folder as an animated gif not just show the frame?
    I did the animated gif approach becasue I setup a photoshop cs4 file with a quicktime video as a layer and Fc only brought in the first frame of the quicktime layer..
    Could the next beta of Fc include the ability to import and play animated gifs as artwork as well AND/or to import Ps Cs4 video layers as videos
    So I would have to created a video page in flash pro and import that as a object? into a state?
    (no experience with flash pro but just bought cs4 and will try to learn FlashPro overweekend)

    Interesting. I don't think this is somethign you can do in Flash Catalyst. We have .GIF support in the Flash Player but I don't think you can use a GIF asset inside Catalyst. If you need that GIF to play you'll have to embed it using Flash Builder.
    But Flash Catalyst will support video version 1.0. I don't think you can turn arbitrary layers into "video" layers but you can bring in video files (like .FLV) and then attach components to behaviors (like play, stop, etc).
    =Ryan
    [email protected]

  • Refer to an object in Edge from an onclick="" in a .html file loaded into an iFrame in the animation

    HI, I am trying to figure out the Edge hierachies by stumbling my way through coding reference attempts. I've hit a wall...
    How can I refer to an object and a global function in my Edge animation from an onclick=""  located in an .html file loaded into an iFrame created within the master/parent Edge animation. Here's what I have...
    My main index.html is an Edge animation. One object <div> is a box created within Edge. I have added an iFrame with the Edge code:
    sym.$("MenuPanelScreen").html('<iframe src="list_images_cemetery.html" width="267" height="670" sandbox="allow-same-origin allow-scripts allow-top-navigation"></iframe>');
    That .html file which loads into the iframe within the animation contains thumbnails in <a> tags and contain onclick="" statements that should call a function within the Edge file.
    Eventually, I want the statements to read something like... onclick="changePic('Dragon.jpg', 'The Dragon', 'Saint and Worm')"
    However, I had no idea how to reference the changePic() function in the Edge animation. So, just to figure out how to reference the parent animation from an html in an iFrame, I change the onclick="" statements to...
    <a onclick="alert('Try to hide Nameplate'); sym.$('NamePlate_sym').hide();" >  <img src="gallery/TheyGaveUpTheirDead.jpg" width="80" alt="Angel and Worm" /></a>
    I first wanted to see if I could hide an Edge Symbol or div/element from the child html. I tried the following...
    onclick="alert('Try to hide Nameplate'); sym.$('NamePlate_sym', window.parent.document).hide();"
    I tried a few other variations that I won't bore you with. Can someone help me with the proper reference to effect an Edge element?
    Furthermore, I eventually wnat the onclick="" statement to reference a global function on attached to the Edge stage in the compositionReady event of the stage. The function is...
    window.changePic=function(myFileCurr, myLabelCurr, myDescriptionCurr) {
    alert("in changePick");
      document.getElementById("myImage").src="gallery/"+myFileCurr;
      document.getElementById("myImageLabel").innerHTML=myLabelCurr;
      document.getElementById("myImageDescr").innerHTML=myDescriptionCurr;
    I hope someone can point me in the right direction. Please forgive my ignorance. i am just getting back into coding and learning the intricacies of Jscript and jQuery. Thanks!

    Hi again Elaine,
    I actually had some success after many attempts with using your code. I can control the .stop() and .play() of the "NamePlate_sym" symbol. Yet, I am still having trouble doing anything else with it. I cannot .hide() it, nor use .html("Change text") on another element on the stage called"Rectangle". If I can accomplish that and all a global function on the stage, I'm in good shape.
    I placed the following script in the header of the .html file that gets loaded into the iFrame within the Edge composition:
      <script type="text/javascript">
       window.parent.AdobeEdge.bootstrapCallback(function(compId) {
       comp = window.parent.AdobeEdge.getComposition(compId).getStage();
       alert("CompID is "+compId);
       var symbol = document.createElement('div');
       symbol.innerHTML = 'Rotate';
       symbol.style.cssText = 'background-color:#fea; width: 50px; text-align: center;';
       symbol.style.cursor = 'pointer';
       symbol.onclick = function() {
        if (comp.getSymbol("NamePlate_sym").isPlaying()) {
         comp.getSymbol("NamePlate_sym").stop();
        else {
         comp.getSymbol("NamePlate_sym").play();
       window.parent.document.body.appendChild(symbol);
            </script>
    Once I put window.parent. in the first two lines of code and the last, my test worked. As I mentioned earlier though, I still can't get the syntax correct to .hide() an element (i.e. comp.getSymbol("NamePlate_sym").hide(); does not work), or more importantly, change the innerHTML value of an element on the stage. The code either does nothing or freezes.
    Thanks... Tommy

  • Slide Animations Stopped Working

    Hello,
    Last night we had a program in which we were screen sharing a Windows Media Player video. The setup I had was a Content Pod with a PowerPoint file in the front, and the Screen Share Pod behind it. In a new layout I had the reverse setup, the Content Pod behind the Screen Share Pod, so prior to the start of the program we were already Screen Sharing the video, so we just clicked the new layout when it was time and the video was ready to go instantly.
    Before we got to the video, we noticed the slide animations in the PowerPoint file in the Content Pod stopped working (they were working previously, tested multiple times). We had to stop the presentation and re-load the file in order to get the animations to work again.
    Have you ever had this problem occur? And do you see it correlating to having the Screen Share Pod active throughout the session?
    Thanks,
    Matt

    This is the app that came with the phone itself & can't be removed/reinstalled.

  • Interactive elements are not allowing the animations to play.

    Hello all...
    I am using Cp4. In my quiz slide I have planned few animations(.swf & .gif) which will describe the question type that the slide contains. I want those animations to play continuously. I checked the loop property on to run them continuously. I don't want to increase the duration of the question slides but the animations should run continuously till the user attempts & submits the answer.
    But the interactive elements which have pause(e.g. button, clickbox) are stopping the animations.
    Is there any solution ?
    Thanks & regards,
    Pullela.

    Hello Pullela,
    Sorry, have something to finish soon, that is why I have no answer ready if there is one. This seems an issue similar but the opposite as when playing slide audio: that will stop when the user is clicking an interactive object. There I have a solution, put the audio to an object and it will continue to play. But do not see an immediate solution for your problem, seems interesting to explore and will do as soon as I have some time.
    Lilybiri

  • Importing flash as3 animation: stop commands are ignored in Captivate

    I have created a Flash animation in Flash CS5 which has some interactive buttons to go to frames and then stop. The problem is Captivate seems to ignore the stop commands.
    When I preview in Flash it works fine, when I preview in Captivate it just keeps on going.
    I can't use a click box because I need the user to click one of my interactive buttons to then continue to the nect part of the animation.
    I am not a programmer and have just started using Adobe CS5 master edition.
    I can add bits of actionscript provided I know how and where :-)
    all help for a a dumbo newbie appreciated.....

    If your Flash animations are published as AS3, make sure your Captivate movie is also set to publish as AS3 in the Preferences.
    Does that do anything?

  • 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

  • Has anyone else's weather animations stopped moving??

    Has anyone else's weather animations stopped moving?? I have just upgraded to the iPhone 6 Plus with IOS 8.1.

    They updated the Reduce Motion setting in Accessibility to reduce that. See if you have that turned on.

Maybe you are looking for