Help Anybody,
I followed kirupa’s tutorial on duplicating movieclips http://www.kirupa.com/developer/actionscript/duplicate.htm
Now I have to fade the object I am duplicating in the timeline. I thought placing a object over it as a layer would work…but it doesn’t.
Can anybody help?
Thank you, Brian
Have a play around with the alpha value of the duplicated clip…in the tutorial this is done automatically using a random value:
this._alpha = random(100);
You’ll probably have to place the alpha code into the button handler and reference the previous duplicate. Something like this might work:
on (press) {
i = i + 1;
duplicateMovieClip(_root.circle, "circle" + i, i);
_root["circle" + (i - 1)]._alpha = 10;
}
Im sorry, i forgot im not using a button, do I just write a frame script to make the the clip disappear?
Sure…you could address the mc directly using the _alpha or _visible properties, e.g.
mc_I_want_to_vanish._visible = “false”;
or
mc_I_want_to_vanish._alpha = xxx;
where xxx is a value between 0 and 100.
Your query is very vague though :x
don’t know why but neither works.
thanks anyways
i figured it out.
onClipEvent (load) {
scale = (random(100)+50);
this._x = 522;
this._y = random(50);
this._alpha = random(100);
this._xscale = scale;
this._yscale = scale;
}
onClipEvent(enterFrame){
this._alpha-=.5;
if (this._alpha<=0){
}
}