Professional Web Applications Themes

How to use keyframePlayer to play animation once andstop. - Macromedia Director 3D

Trying to control the animation of a 3D cast member. The keyframePlayer has been added, and I am successfully playing the selected span of the animation and looping it. The problem occurs when loop is set to false. The specified span appears to play once, however the entire animation begins to play once the span has finished. How do I set it to stop after the span has played?...

  1. #1

    Default How to use keyframePlayer to play animation once andstop.

    Trying to control the animation of a 3D cast member. The keyframePlayer has
    been added, and I am successfully playing the selected span of the animation
    and looping it.

    The problem occurs when loop is set to false. The specified span appears to
    play once, however the entire animation begins to play once the span has
    finished. How do I set it to stop after the span has played?


    adam@blueapplestudio Guest

  2. #2

    Default Re: How to use keyframePlayer to play animation once andstop.

    After looking at the livedocs it appears that I need to clear the playlist to
    stop this behavior. I am getting an error with the below code... the example
    in the livedocs shows what I assume is Lingo that I have tried to adapt to
    JavaScript. Does anyone know where I may be making an error?

    member("Box").getPropRef("model", 1).keyframePlayer.removeLast();//Script
    Error: Type Error... not a function.

    adam@blueapplestudio Guest

  3. #3

    Default Re: How to use keyframePlayer to play animation once andstop.

    Got it now. I was referring to the keyframePlayer incorrectly. Attached is the correct JavaScript syntax.


    member("Box").getPropRef("model", 1).getPropRef("keyframePlayer").removeLast();
    adam@blueapplestudio Guest

Similar Threads

  1. click to play animation
    By stu in forum Macromedia Director 3D
    Replies: 6
    Last Post: August 25th, 08:44 PM
  2. How to play an animation clip from the MIDDLE?
    By Gali in forum Macromedia Flash Player
    Replies: 0
    Last Post: August 20th, 02:44 PM
  3. Keyframeplayer questions
    By WhitAnderson in forum Macromedia Director 3D
    Replies: 1
    Last Post: April 1st, 06:47 AM
  4. Animation needs refresh to play
    By wilzdezign webforumsuser@macromedia.com in forum Macromedia Flash Actionscript
    Replies: 0
    Last Post: February 5th, 07:23 PM
  5. play animation only once?
    By farah in forum Macromedia Flash Sitedesign
    Replies: 1
    Last Post: August 8th, 11:44 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139