Toon posts:

[FLASH MX] setmask

Pagina: 1
Acties:
  • 47 views sinds 30-01-2008

Verwijderd

Topicstarter
Oke ...

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 ?

Verwijderd

Topicstarter
Laat maar heb um al ... silly me

code:
1
this.mask._x=200;


sluit maar

Verwijderd

Gewoon:

code:
1
this._x = 200;


edit:
Hmz, je was zelf snellen :P... ach zo'n foutje hebben we allemaal wel is :9

[ Voor 56% gewijzigd door Verwijderd op 22-07-2003 13:35 ]


Verwijderd

Je moet na elke actie op dat mask_mc'tje weer de setmask actie doen.

  • Bosmonster
  • Registratie: Juni 2001
  • Laatst online: 19-08 22:14

Bosmonster

*zucht*

Dicht :)

Dit topic is gesloten.