This content has been marked as final. Show 5 replies
you can enter text into a draggable textfield. you just can't use mouse handlers on the parent movieclip.
for example, using a hitTest() between the mouse and movieclip (onMouseDown would be good) to initiate a startDrag() should be fine. use an onMouseUp to stopDrag().
Maybe I don't quite understand. So which movie clip is being made dragable when you say not the parent, an isntance of the movie clip? Here's the code I currently have.
I'm pretty much a noob at ActionScripting, learning stuff as I encounter each problem. So you are recommending that instead of using the onPress I use hitTest()? I'm not familiar with function but I'll look it up. Any more info you can give will be most appreciated.
correct. you cannot use onPress and onRelease handlers or your textfield in mcDrag cannot respond to the mouse. (you could, however, use the Selection class and its setFocus() method to allow text input upon your movieclip's release. that may, or may not be satisfactory.)
Sorry for the delayed repsponse, very busy these days. So with the setFocus() method, this can be invoked during the the movie clip's onRelease event, meaning that I can drag the movieclip, and when the user lets go, it allows for text entry?
But I'm guessing that means when the .swf first loads they couldn't enter text. They would have to click and move the clip first?
you're not limited to one block of code. you can still code for your textfield to have focus when the frame containing your textfield plays: