public virtual void testArrayPush() { AsArray oneArray = new AsArray(); oneArray.push(); oneArray.push("a"); oneArray.push("a", "b", "c"); oneArray.push(new AsArray("a", "b", "c")); }
public virtual void testArrayPush() { AsArray oneArray = new AsArray(); oneArray.push(); oneArray.push("a"); oneArray.push("a", "b", "c"); oneArray.push(new AsArray("a", "b", "c")); }
public virtual void bubbleEvent(AsEvent _event) { AsVector <AsEventDispatcher> chain = null; AsDisplayObject element = this as AsDisplayObject; int length = 1; if (sBubbleChains.getLength() > 0) { chain = (AsVector <AsEventDispatcher>)(sBubbleChains.pop()); chain[0] = element; } else { chain = new AsVector <AsEventDispatcher>(); } while ((element = element.getParent()) != null) { chain[length++] = element; } int i = 0; for (; i < length; ++i) { bool stopPropagation = chain[i].invokeEvent(_event); if (stopPropagation) { break; } } chain.setLength(0); sBubbleChains.push(chain); }