예제 #1
0
 public BBFlashMovie  getChildByInstanceName(string name)
 {
     if (name == null)
     {
         return(null);
     }
     for (int i = 0; i < _depthDisplays.Length; i++)
     {
         BBGamelib.flash.imp.Display child = _depthDisplays[i];
         if (child != null && !child.removed && child.instanceName == name)
         {
             return(child as BBFlashMovie);
         }
     }
     return(null);
 }
예제 #2
0
        public utList <BBFlashMovie> getChildrenByClassName(string name)
        {
            if (name == null)
            {
                return(null);
            }
            utList <BBFlashMovie> children = new utList <BBFlashMovie>();

            for (int i = 0; i < _depthDisplays.Length; i++)
            {
                BBGamelib.flash.imp.Display child = _depthDisplays[i];
                if (child != null && !child.removed && child.define.className == name)
                {
                    children.DL_APPEND(child  as BBFlashMovie);
                }
            }
            return(children);
        }