Oke ...
ik heb dit ..
De mask doet het perfect. Nu wil ik de mask laten verschuiven.
Heb al gebeprobeerd :
this.bg_1.mask._x=200;
maar lukt ni ...
help ?
ik heb dit ..
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| stop();
MovieClip.prototype.drawBox=function (x,y,xsize,ysize,strokewidth,strokecolor,strokealpha,fillcolor,fillalpha){
this.clear();
this.beginFill(fillcolor,fillalpha);
this.lineStyle(strokewidth,strokecolor,strokealpha);
this.moveTo(x-xsize/2,y-ysize/2);
this.lineTo(x+xsize/2,y-ysize/2);
this.lineTo(x+xsize/2,y+ysize/2);
this.lineTo(x-xsize/2,y+ysize/2);
this.endFill();
}
this.createEmptyMovieClip("mask",1);
this.mask.drawBox(0,0,100,100,0,0xffffff,100,0x0000ff,100);
this.bg_1.setMask(mask); |
De mask doet het perfect. Nu wil ik de mask laten verschuiven.
Heb al gebeprobeerd :
this.bg_1.mask._x=200;
maar lukt ni ...
help ?