Keydown does not register if W3D on stage

Ask a Question related to Macromedia Director 3D, Design and Development.

  1. #1

    Default Keydown does not register if W3D on stage

    I have a 3D model made in Max which i've imported into Director MX 2004. I have
    made loads of custom script to interact with the model using the mouse - that
    all works great. But I need to add a little extra navigation using the keyboard
    - which doesnt work.

    I've gone back to first principles. There is a text cast member on stage and a
    w3d. There is a "go the frame" frame script and a behaviour attached to the
    text sprite that changes the text on keydown. That is all that is in this
    simple test movie.

    Now, when pressing the keys nothing happens. But if I stop the movie, delete
    the w3d, then play the movie, the key down does register, and the text changes.
    Im relatively experienced with Director but cant for the life of me figure out
    why Director wont capture the key response when the w3d is on stage.

    Anyone ever come accross this before or have any solutions? I've tried
    changing the DTS of the w3d, the active renderer and all sorts. What am I
    missing?

    fusion of elements Guest

  2. Similar Questions and Discussions

    1. keyDown
      hie again, i have 3 textbox and i would like the user to go to the next textbox by pressing the 'ENTER' key. i have tried using this: Private...
    2. Help please...mouseover stage causes stage to expand size...
      I'm trying to find a tutorial on mouseover the stage, and it expands (drops down)...any help most appreciated!
    3. Problem with Keydown and S3D
      Hello everybody, I use On keyDown event in a movie script and it works well until I put a shockwave 3d sprite on the stage. The event is then no...
    4. Sound on keydown
      hi, um... im having a bit of trouble with director at the moment, i have posted on other forums and had some useful replies, but being a beginner...
    5. keyDown & keyUp?????
      Can anyone tell me why the keyDown and keyUp handlers don't work when SW3D is inserted in a movie. chartonum(the keypressed) works, but that...
  3. #2

    Default Re: Keydown does not register if W3D on stage

    fusion of elements wrote:
    > I have a 3D model made in Max which i've imported into Director MX 2004. I have
    > made loads of custom script to interact with the model using the mouse - that
    > all works great. But I need to add a little extra navigation using the keyboard
    > - which doesnt work.
    >
    > I've gone back to first principles. There is a text cast member on stage and a
    > w3d. There is a "go the frame" frame script and a behaviour attached to the
    > text sprite that changes the text on keydown. That is all that is in this
    > simple test movie.
    >
    > Now, when pressing the keys nothing happens. But if I stop the movie, delete
    > the w3d, then play the movie, the key down does register, and the text changes.
    > Im relatively experienced with Director but cant for the life of me figure out
    > why Director wont capture the key response when the w3d is on stage.
    >
    > Anyone ever come accross this before or have any solutions? I've tried
    > changing the DTS of the w3d, the active renderer and all sorts. What am I
    > missing?
    >
    Hi. SW3D sprite "eats" the key events. IIRC, you can fix it by catching
    the pressed keys with a behavior attached to the SW3D sprite.

    HTH,
    --
    Agustín María Rodríguez | Partner
    Methanoia Studio | [url]http://www.methanoia.com[/url]
    ---------------------------------------------------
    [url]www.onwine.com.ar[/url] > Macromedia Director demos & code
    Agustín María Rodríguez Guest

  4. #3

    Default Re: Keydown does not register if W3D on stage

    Thank you so much... such a daft little thing like that - as always. Many thanks for your help, that has saved me big time!
    fusion of elements Guest

  5. #4

    Default Re: Keydown does not register if W3D on stage

    better check the keypressed on enterframe

    on enterframe me

    if keypressed("a") then
    doAmethod()
    end if
    if keypressed(123) then
    goLeft()
    end if
    end enterframe

    ensamblador Guest

Posting Permissions

  • You may not post new threads
  • You may 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