7 Replies Latest reply on Aug 15, 2010 3:15 PM by kglad

    If any mc is Visible

    Ron Colmen Level 2

      I've got 5 mcs which is set as ._visible=false.. How do I say to goto frame 10 if any of those 5 mc is visible. (I need to goto frame 10 if at least one of these 5 mcs are visible)

       

      e.g. my_mc3 is visible therefore it will goto frame 5.

       

      var visualsA:Array = [my_mc1,my_mc2,my_mc3,my_mc4,my_mc5];

      sender.onRelease = function () {

      if(visualsA._visible==true){

      gotoAndStop(5);

      }else{

      error_msg._visible=ture;

      }

      }