The code below implies to a set of dynamic images that are added onto the stage via an xml . once an image is clicked the image is scaled… the setMc() allows it to set the current image to clicked as this enables the same mc to scale down when a different image is clicked…
What can i do to the code so that, the images on the stage that werent clicked would have an alpha of 0;
you can see this in action on smthakur.com/podking and then click on “clients”
private function onClientClick (e : MouseEvent) : void
{
var pos : String = e.currentTarget.name;
var m : MovieClip = e.currentTarget as MovieClip;
if(isClicked == false)
{
TweenMax.to(m, 1, {scaleX:1.5, scaleY:1.5, alpha:1});
isClicked = true;
setMc(m);
}
else
if(isClicked == true)
{
TweenMax.to(getMc(), 1, {alpha:0.8, scaleX:1, scaleY:1});
isClicked = false;
}
}