Hi guys…
I need help on this one… I have created a emptymovieclip which contains 1 shape and then i have a duplicateMoviclip, and it´s posistion with {_x:Number,_y:Number}
my code:
this.createEmptyMovieClip("shape", this.getNextHighestDepth());
shape.beginFill(0xFF0000);
shape.lineStyle(2,0,100)
shape.moveTo(100,50)
shape.lineTo(200,50)
shape.moveTo(200,50)
shape.lineTo(150,150);
shape.lineTo(100,50);
shape.endFill();
shape._x=100;
shape._y=70;
shape.duplicateMovieClip("shapeCOPY", this.getNextHighestDepth(), {_x:50, _y:50});
So i have two questions:
i have a button, and want to trigger the event for appering of the clip. something like this:
knap_btn.onRelease= function(){
this.createEmptyMovieClip("shape", this.getNextHighestDepth());
shape.beginFill(0xFF0000);
shape.lineStyle(2,0,100)
shape.moveTo(100,50)
shape.lineTo(200,50)
shape.moveTo(200,50)
shape.lineTo(150,150);
shape.lineTo(100,50);
shape.endFill();
shape._x=100;
shape._y=70;
shape.duplicateMovieClip("shapeCOPY", this.getNextHighestDepth(), {_x:50, _y:50});
}
Nothing happends…
second question:
How do i duplicate multipli MC and place the either randomly or with parameters.
Please advice.
Regards Hrbi