Hello all, I am trying to do a bit of code that duplicates a movieclip with an input text box inside it, which the user can then position wherever they want on the stage.
Now, I’ve been monkeying about with this bit of code (on the frame);
box01.onPress = function() {
var depth = this._parent.getNextHighestDepth();
var init = {};
init._x = this._parent._xmouse;
init._y = this._parent._ymouse;
init.onPress = function() {
this.onMouseMove = function() {
this._x = _root._xmouse;
this._y = _root._ymouse;
updateAfterEvent();
};
};
init.onRelease = function() {
delete this.onMouseMove;
};
init.onReleaseOutside = init.onRelease;
this.duplicateMovieClip("box"+depth, depth, init);
};
This works fine for duplicating and positioning the movieclips, but when I try and input text into the duplicated movieclip’s input text box, it won’t have any of it. I have tried everything I can think of, from trying to isolate the drag, to getting the input text box to position itself dynamically (kinda like a startdrag) but I can’t get anything to work!
Please help, before I pull all of my hair out!
Thanks - Dan