PDA

View Full Version : Can you make an input textbox draggable?



crazy_clairey
May 12th, 2009, 03:06 PM
Hi there,

I want to have a draggable input textbox on the stage (it will b placed ontop of an image of a tshirt).

I want the user to be able to enter text and then move the textbox around to where they want it on the tshirt.

I know how to make a movieclip draggable, I have been using this:





on (press) {

startDrag(this, false, 240, 90, 290, 290) // target, lockcenter, t, l, b, r

}
on (release) {
stopDrag();
}





But I'm not sure how to make an input textbox draggable! Is this even possible?!

Thanks for any help! :)

glosrfc
May 12th, 2009, 06:25 PM
You need to place the text field inside a movieclip...and then place this clip inside another.
The following should help:
http://www.actionscript.org/forums/showthread.php3?t=109179

crazy_clairey
May 12th, 2009, 09:04 PM
thankyou so much!! thats sorted me out great!!! :) thankyou!!!