Jump to content
Search Community

TryVig

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by TryVig

  1. Hello, I'm using VERSION: 1.92, AS3

     

    Wondering if there is a reason that removeIgnoredObject() does not re-add the passed object back into the _items array?

     

    I can easily insert this.addItem($object); but want to make sure I'm not breaking something else if that was intentionally left out. Please advise.

     

    public function removeIgnoredObject($object:DisplayObject):void {
    		for (var i:uint = 0; i < _ignoredObjects.length; i++) {
    			if (_ignoredObjects[i] == $object) {
    				_ignoredObjects.splice(i, 1);
    				addItem($object); // Add this ?
    			}
    		}
    	}

     

    THANKS

×
×
  • Create New...