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);
        }
 public virtual void testArrayPop()
 {
     AsArray oneArray = new AsArray("a");
     String element = (String)(oneArray.pop());
 }
Exemplo n.º 3
0
 public virtual void testArrayPop()
 {
     AsArray oneArray = new AsArray("a");
     String  element  = (String)(oneArray.pop());
 }