|
-
Italy
WHY: trace(TextField.enabled) returns null
hi,
i got myText (TextField) and a button that does :
Code:
on (release)
{
trace(myText.enabled);
}
the problem is that this code return "undefined". why is that?
Last edited by Novik2000; 06-02-2010 at 04:16 AM.
-
You didn't set myText.enabled to true or false.
so trace(myText.enabled) is looking for a value that doesn't exist.
make a new frame layer called actions. and put:
Code:
myText.enabled = true;
or
Code:
myText.enabled = false;
hope that helps.
wyl_m
-
Italy
welp, it did help but now i got other problem
(the problem i started with...)
how can i make that the user can't mark the text with the mouse and do Copy/Paste?!
-
TextField.selectable=false;
Or uncheck the selectable box (looks like: Ab) in the Properties panel...
K.
-
Italy
thanks!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|