Editable Field Becomes Un-editable

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

  1. #1

    Default Editable Field Becomes Un-editable

    I have a problem that has driven me nuts, and I welcome any help I can receive.

    I have a text field that I have set to EDITABLE in the properties window. Users are to enter data into this field, then press a button to view their entries in a table. The table is defined in separate frames. Once users view the table, they can then press a button to return to the original text field.

    So the text field appears in frames 10 to 20, and the table appears in frames 21 - 30.

    Unfortunately, when they return to the frame where the text field appears, the text field is no longer editable.

    I tried to hardwire the text field to be editable using a beginSprite behavior attached to the text field. The beginSprite behavior does become activated (I used a PUT statement to verify this), but the text field does not become editable.

    Any ideas what could cause this?



    Jimmy the Lizard webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Previously Editable Web Site No Longer Editable
      I have a web site which is edited on a weekly basis. For over a year I have been using Contribute to edit the web site. Today Mysteriously I...
    2. eliminating Return in an editable field
      You need a script to filter out the unwanted keys. Try attaching this to your field sprite: on keyDown me if the key <> return then pass end ...
    3. Restrict key within an Editable text field
      I have an Editable Text field in which I would like to restrict the ENTER key from functioning (adding a carriage return) so the edited text remains...
    4. Copyable (not editable) field
      Anyone know how to make a field which will allow you to select and copy text (via Ctrl-C or right-click and Copy) to clipboard, but not change it?
    5. Editable region no longer editable
      Brad, what did you determine on this question--I am having the exact same problem too--when i try to edit a nested template editable region, it tells...
  3. #2

    Default Re: Editable Field Becomes Un-editable

    Here's someone's replay from the Lingo section that might be relavent

    ------------------

    Hi,

    In general, cast member properties can be accessed/modified this way, and
    it's not a rare thing at all.
    However, this particular property (editable of textMember) you are
    trying to
    change, is an exception - or a bug, to be more accurate, at least
    according
    to my experience.
    From what I can recall, textMembers' editable property refused to
    cooperate
    after the first time it was changed by lingo at runtime, or something
    similar. There might be a workaround, but since it was quite some time
    now
    that I faced the problem, can't remember how (and if) I solved it.

    Btw, a more effective piece of code to modify the properties could be:

    on mousedown
    castLibNameOrNumber=1
    highMemNr=the number of members of castLib (castLibNameOrNumber)
    repeat with i=1 to highMemNr
    targetMem=member(i, castLibNameOrNumber)
    if targetMem.type=#text then targetMem.editable=true
    end repeat
    end mousedown

    Important: Don't forget to check the type of the member before you try to
    access a property. Not all members have the same properties (and there
    might
    also be empty members) and this can cause errors at your script's
    execution.


    "penguin_can_fly"...
    Amazing what you learn on this list!..


    "penguin_can_fly" <webforumsuser@macromedia.com> wrote in message
    news:bsnklr$ae7$1@forums.macromedia.com...
    > Hi,
    >
    > I was trying to change all the text members in my external file named
    "texts" to editable ones
    >
    > I did this and it return "member name expected"
    >
    > property a
    > on mousedown
    > a=1
    > repeat while a<48
    > member(a, "texts").editable = true
    > a=a+1
    > end repeat
    > end mousedown
    >
    > Can variable be used in member()? like the variable "a" above?
    >
    > Please help.
    >
    >
    >
    JB 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