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

  1. #1

    Default Bad Parameter ! box

    Hello,

    I have a message box which pops when I run my code, but it doesn't look like a
    error with my code, its a smaller warning sign message box saying "Bad
    Parameter" I haven't put a alert box like this anywhere in my code. My code is
    using a shockwave 3D sprite and connect to shockwave multiuser server on local
    machine. What do you think this error could be? A bug with director? or with a
    Xtra? I'm using havok, and 3DPI as well.

    Cheers for any replies

    JustStupid Guest

  2. Similar Questions and Discussions

    1. Need help using URL parameter
      I have a question on passing the value in URL parameter, i have two example links provided below, one shows the dynamic images of each unique...
    2. URL parameter in DW??
      How can I use URL parameter between two pages in aspx?? Thanks!
    3. out parameter
      Hi, I use a parameter as "out int myarray" in the web service, but somehow the client cannot process it. Could you please tell me why this...
    4. Date Parameter For Saved Parameter Queries
      Hi again, I finally got to using saved parameter queries in my application (a big thank you to Bob Barrows for helping me with this). Currently...
    5. parameter
      Hello, How use a variable Javascript in a fonction VB.NET? (Variable Javascript is executed in page_load but fonction VB.NET is executed in asp...
  3. #2

    Default Re: Bad Parameter ! box

    besides creating message boxes of your own, Diretor will spit out errors in a
    message box if there is any errors in your scripts, depending on if you are in
    author mode or runtime mode, When you get an error in athouring mode, and you
    get an error, this means there is a peice of code that Driector does not
    understand at all. For example, lets say you wanted to move a sprite on the
    stage 5 pixels down the stage. The correct dot syntax to do so is like so....

    sprite(1).locV = sprite(1).locV + 5

    ... but lets say you made a mistake and typed this in...

    sprite(1).locV = sprite.locV + 5

    doing this and after you press the compile button or close the script window,
    you would get an error window that looks simular to as you calling the alert
    handler stating...
    "Script Error: Operator expected"
    sprite(1).locV = sprite.?locV + 5

    In addition, you can also have errors at run time. An example of this would be
    somthing like so...

    lets say we still want to move this sprite 5 pixels down, but this time you
    want this to happen when you call a custom handler. Now the correct way of
    doing this can be something like this...

    on beginSprite
    pTimer = the milliseconds
    end beginSprite

    on exitFrame me
    if (the millseconds - pTimer) = 1000 then
    moveMe(me)
    pTimer = the milliseconds
    end if
    go to the frame
    end exitFrame

    -- Note the code below is the custom handler that needs to be inside the same
    script or else you will get an error at runtime
    on moveMe me
    sprite(me.spriteNum).locV = sprite(me.spriteNum).locV + 5
    end moveMe

    ... now if you did not have the moveMe custom handler inside the above script
    then at runtime you would get the same error window stating this


    "Script error: Handler not defined
    moveMe(me)

    #moveMe"

    So what I am saying is, your error is a script error that Director is spiting
    out because there is something wrong with your code, and we can not help you if
    you do not post your script in here.

    Roofy 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