Ask a Question related to Macromedia Director Basics, Design and Development.
-
Jimmy the Lizard webforumsuser@macromedia.com #1
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
-
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... -
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 ... -
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... -
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? -
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... -
JB #2
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..."texts" to editable ones> Hi,
>
> I was trying to change all the text members in my external file named>
> 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



Reply With Quote

