Professional Web Applications Themes

animation problem - Macromedia Director 3D

Hi, in next dir movie http://www.geocities.com/newmfa/control_w3d_02.dir ..there are two buttons named "play" & "stop" and 3d scene includes cube named "box", this box has short animation "50 frames", but i stopped it in director by code "animationEnable=false" to let user press play button to active the animation by himself, and stop the animation by pressing stop button. the buttons worked well, but the problem is w3d looping without looping the sound effect. how can buttons "play and stop" full control w3d..? I hope find helper.. best wishes newmfa.....

  1. #1

    Default animation problem


    Hi,
    in next dir movie http://www.geocities.com/newmfa/control_w3d_02.dir

    ..there are two buttons named "play" & "stop" and 3d scene includes cube named
    "box",
    this box has short animation "50 frames", but i stopped it in director by code
    "animationEnable=false"
    to let user press play button to active the animation by himself, and stop the
    animation by pressing
    stop button.

    the buttons worked well, but the problem is w3d looping without looping the
    sound effect.
    how can buttons "play and stop" full control w3d..?

    I hope find helper..

    best wishes
    newmfa..

    newmfa Guest

  2. #2

    Default Re: animation problem

    hi,

    Is the sound a different castmember? if yes the problem is that you have to
    restart the sound over and over again every time the animation is over, or make
    the sound loop after a period of time = to the duration of the animation. maybe
    you tell us a bit more how you set up the scene(have you put the sound in the
    soundchanel , do you start the sound with lingo etc.).

    you can make the sound looplike this.
    --
    sound(1).play([#member:member("yoursoundfile"), #startTime:4000, \
    #endTime:5000, loopcount:100000])
    --

    here the sound starts from the 4th second and plays till 5th then loops
    the difference between starttime and endtime should be equal with the duration
    of the animation.

    Daniel.


    danieloizo Guest

  3. #3

    Default Re: animation problem

    Hi,
    first, thanks for your care.

    you can download my dir movie here with your code ..

    http://www.geocities.com/newmfa/control_w3d_03.dir

    the sound member is different cast member called "sound model 3", i used your
    code
    but the sound didn't work,so,i make next changes:

    starttime = 0 and endtime = 24, because cube animation start in frame 0 and
    ended in frame 24,
    i found that sound repeating but very very fast, if you like you can download
    my small dir movie

    http://www.geocities.com/newmfa/control_w3d_03.dir

    and i hope help me..

    p.s.
    i don't put sound on any channel
    i start my sound with lingo code "sound(1)...."

    regards
    newmfa

    newmfa Guest

Similar Threads

  1. Problem with exporting character animation
    By mickybhai in forum Macromedia Director 3D
    Replies: 4
    Last Post: June 16th, 05:35 AM
  2. animation problem
    By Vincent is Schattig in forum Macromedia Director Basics
    Replies: 2
    Last Post: May 4th, 04:51 PM
  3. Urgent Animation problem
    By Ranbir webforumsuser@macromedia.com in forum Macromedia Fireworks
    Replies: 1
    Last Post: August 18th, 08:58 PM
  4. Replies: 3
    Last Post: August 5th, 05:17 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