-
createEmptyMovieClip and duplicateMovieClip???
hi there!
trying to figure out why this happens...
i am creating an empty movieclip[c0], then
inside that clip another movieclip[fill] and
then i am trying to duplicate the initial
clip[c0] (which contains [fill]) but it only
duplicates [c0] without the content...
makes me crazy!!!
why does it happen?
any idea? help?
here is the code:
__________________________________________________ _____________
radius = 50;
outline = 0;
function create() {
_root.createEmptyMovieClip("c0", 1);
c0.createEmptyMovieClip("fill", 2);
with (c0.fill) {
var a = radius;
var b = radius;
var j = a*0.70711;
var n = b*0.70711;
var i = j-(b-n)*a/b;
var m = n-(a-j)*b/a;
var x = Stage.width/2;
var y = Stage.height/2;
//lineStyle(outline, 0x000000, 100);
beginFill(0xff0000, 100);
moveTo(x+a, y);
curveTo(x+a, y-m, x+j, y-n);
curveTo(x+i, y-b, x, y-b);
curveTo(x-i, y-b, x-j, y-n);
curveTo(x-a, y-m, x-a, y);
curveTo(x-a, y+m, x-j, y+n);
curveTo(x-i, y+b, x, y+b);
curveTo(x+i, y+b, x+j, y+n);
curveTo(x+a, y+m, x+a, y);
}
}
create();
duplicateMovieClip("c0", "c1", 3);
trace ("c0._x: " + c0._x);
trace ("c0._h: " + c0._height);
trace ("c1._x: " + c1._x);
trace ("c1._h: " + c1._height);
__________________________________________________ _____________
thanx in advance!!!
deeno
2B II ! 2B
...shakespear adapted to c++
-
now where are all the pros with all the answers?
i really need help on that!
please!
2B II ! 2B
...shakespear adapted to c++
-
...was it a bad time when i first posted this?
...maybe now somebody would help me!
...or is it maybe the question?
...has it been misunderstood?
...is it not clear enough?
...or is the problem to complicated to be solved?
...there must be someone out there with an answer!!!
Last edited by deeno; 01-28-2003 at 03:26 PM.
2B II ! 2B
...shakespear adapted to c++
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|