# Fill in pattern problem

**URL:** <https://forum.kirupa.com/t/fill-in-pattern-problem/173646>\
**Category:** Uncategorized\
**Created:** [December 28, 2005, 8:35am UTC](https://forum.kirupa.com/t/fill-in-pattern-problem/173646 "2005-12-28T08:35:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixeldude](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@pixeldude](https://forum.kirupa.com/u/pixeldude)\
**Post date:** [December 28, 2005, 8:35am UTC](https://forum.kirupa.com/t/fill-in-pattern-problem/173646/1 "2005-12-28T08:35:30Z")

</div>

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](http://www.geocities.com/mrkiey/drag.fla)

```auto

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
