dycraw
03-07-2007, 08:30 PM
I have an externally loaded movieclip that I want the user to be able to move around the screen this movieclip includes 4 input text fields, 2 radio buttons, a combo box and submit button . I originally was usining startDrag stopDrag from my main movies timeline to add the drag and drop functionality. However this was causing that annoying little button in button issue which disabled both the users ability to enter info into the input text field or click the submit button. I manged to rectify mosy of the issues by using hitTest on the externally lodaded movies main timeline as follows:
this.onMouseDown=function(){
if(this.hitTest(_parent._xmouse,_parent._ymouse)){
var dx=_parent._xmouse-this._x;
var dy=_parent._ymouse-this._y;
this.onMouseMove=function(){
this._x=_parent._xmouse-dx;
this._y=_parent._ymouse-dy;
}
this.onMouseUp=function(){
delete this.onMouseMove;
delete this.onMouseUp;
}
}
}
The problem I am now experiencing is with the Combo Box if you click on the combo box and try to select a value it moves the whole movie instead of moving the scroll bar to select a value from the combo box. Any help anyone could provide would be amazing.
this.onMouseDown=function(){
if(this.hitTest(_parent._xmouse,_parent._ymouse)){
var dx=_parent._xmouse-this._x;
var dy=_parent._ymouse-this._y;
this.onMouseMove=function(){
this._x=_parent._xmouse-dx;
this._y=_parent._ymouse-dy;
}
this.onMouseUp=function(){
delete this.onMouseMove;
delete this.onMouseUp;
}
}
}
The problem I am now experiencing is with the Combo Box if you click on the combo box and try to select a value it moves the whole movie instead of moving the scroll bar to select a value from the combo box. Any help anyone could provide would be amazing.