I am trying to create a class that will set the visibility of all movieClips to false by default. I would like to call a function like showClip(box_mc, triangle_mc) and change the visibility of just these movieClips to true. I have started creating my “Cloak class” but definitely need some guidance. The errors vary based on several attempts I’ve made but here is what I have thus far.
package
{
import flash.display.MovieClip;
public class Cloak extends MovieClip
{
public function Cloak()
{
box.visible = false;
}
public function showClip(clipName:String):void
{
var c = clipName;
c.visible = true;
}
}
}