Hello everyone…
ok here…I just make a draggable bg pattern…which is work ok…my problem is how to fill in the “mc1” or “mc2” with this bg pattern…is it I have to duplicate it…?..when it being drop in “_droptarget”…my second problem is how to remove my previous drag pattern type if I drag a new pattern into the “_droptarget”…
this is my file u guys can take look at it…
http://www.geocities.com/mrkiey/drag.fla
stop();
for (j=0;j<11;j++){
this["p"+j].jvar = j;
//trace(this["p"+j].jvar);
this["p"+j].onPress = loadPaten;
this["p"+j].onRelease = this["p"+j].onReleaseOutside = dropMe;
}
function loadPaten(pttn){
this.thisDrag = new Object();
this.thisDrag = _root.attachMovie(this.jvar,this.jvar,400+this.jvar);
this.thisDrag._x= _root._xmouse;
this.thisDrag._y= _root._ymouse;
this.thisDrag._xscale=200;
this.thisDrag._yscale=200;
startDrag(this.thisDrag);
}
function dropMe(){
this.thisDrag._xscale=100;
this.thisDrag._yscale=100;
stopDrag();
trace(_droptarget);
}
tq again