code: function getChildByProp(prop, value) {
           var objList = [];
  
           function compare(obj, prop) {
             var v = obj[prop];
  
             if (value instanceof RegExp && typeof v === "string") {
               if (value.test(v)) {
                 objList.push(obj);
               }
             } else if (v === value) {
               objList.push(obj);
             }
           }
  
           for (var i = this.children.length - 1; i >= 0; i--) {
             var obj = this.children[i];
             compare(obj, prop);
  
             if (obj instanceof me.Container) {
               objList = objList.concat(obj.getChildByProp(prop, value));
             }
           }
  
           return objList;
         }
docs: return the child corresponding to the given property and value.<br>
  note : avoid calling this function every frame since
  it parses the whole object tree each time
  @name getChildByProp
  @memberOf me.Container.prototype
  @public
  @function
  @param {String} prop Property name
  @param {String|RegExp|Number|Boolean} value Value of the property
  @return {me.Renderable[]} Array of childs
  @example
  // get the first child object called "mainPlayer" in a specific container :
  var ent = myContainer.getChildByProp("name", "mainPlayer");
  
  // or query the whole world :
  var ent = me.game.world.getChildByProp("name", "mainPlayer");
  
  // partial property matches are also allowed by using a RegExp.
  // the following matches "redCOIN", "bluecoin", "bagOfCoins", etc :
  var allCoins = me.game.world.getChildByProp("name", /coin/i);
  
  // searching for numbers or other data types :
  var zIndex10 = me.game.world.getChildByProp("z", 10);
  var inViewport = me.game.world.getChildByProp("inViewport", true);