Flash: dynamically adding events code to instances possible?
Posted
by Kohan
on Stack Overflow
See other posts from Stack Overflow
or by Kohan
Published on 2010-03-16T12:45:44Z
Indexed on
2010/03/16
13:16 UTC
Read the original article
Hit count: 294
I want to make a movieclip invisible initially but i dont want to set it manually within the properties in flash because i cant then see it on the scene.
I was hoping i could add some code like so:
MC Frame one.
this.onClipEvent(load)
{
this._alpha = 0;
}
but I cannot. How can i set the MC _alpha to 0 for all instances without adding it manually to each instance or setting it in the properties?
edit: or creating a class for it just to set the alpha.
© Stack Overflow or respective owner