Package flash.swf

Examples of flash.swf.Action


  public void visit(ActionHandler handler, int startIndex, int endIndex)
  {
    endIndex = (endIndex < 0) ? size-1 : endIndex;
    for (int j=startIndex; j <= endIndex; j++)
    {
      Action a = actions[j];
      if (a.code != sactionLabel && a.code != sactionLineRecord)
      {
        // don't call this for labels
                if (offsets != null)
            handler.setActionOffset(offsets[j], a);
                else
                    handler.setActionOffset(j, a);
      }
      a.visit(handler);
    }
    }
View Full Code Here


  public int indexOf(int actionCode, int startAt)
  {
    int at = -1;
    for(int i=startAt; at<0 && i<actions.length; i++)
    {
      Action a = getAction(i);
      if (a != null && a.code == actionCode)
        at = i;
    }
    return at;
  }
View Full Code Here

  public int lastIndexOf(int actionCode, int startAt)
  {
    int at = -1;
    for(int i=startAt; at<0 && i>=0; i--)
    {
      Action a = getAction(i);
      if (a != null && a.code == actionCode)
        at = i;
    }
    return at;
  }
View Full Code Here

    ActionLocation current = new ActionLocation(l);
    int size = l.actions.size();
    for(int i= l.at+1; i<size; i++)
    {
      // hit a line record => we done
      Action a = l.actions.getAction(i);
      if (a.code == ActionList.sactionLineRecord)
        break;

      // hit a function => we are done
      if ( (a.code == ActionConstants.sactionDefineFunction) ||
View Full Code Here

        // set our context
        where.at = i;
        where.actions = list;

        // pull the action
        Action a = list.getAction(i);

        // then see if we need to traverse
        if ( (a.code == ActionConstants.sactionDefineFunction) ||
           (a.code == ActionConstants.sactionDefineFunction2) )
        {
View Full Code Here

    {
      // we hit so mark it and extract a constant pool if any
      location.at = at;
      location.actions = list;

      Action a = list.getAction(0);
      if (a.code == ActionConstants.sactionConstantPool)
        location.pool = (ConstantPool)a;

      // then see if we need to traverse
      a = list.getAction(at);
View Full Code Here

TOP

Related Classes of flash.swf.Action

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.