Package flash.swf.types

Examples of flash.swf.types.ActionList


           if (lStart.function == null)
             cli.err(getLocalizationManager().getLocalizedTextString("key30")); //$NON-NLS-1$
           else
           {
             // create a psudeo action list from which to disasemble the function
             ActionList al = new ActionList(true);
             al.setActionOffset(0, lStart.function);
             lStart.actions = al;
             lStart.at = 0;
             lEnd = new ActionLocation();
             lEnd.actions = al;
             lEnd.at = 0;
View Full Code Here


           if (lStart.function == null)
             cli.err(getLocalizationManager().getLocalizedTextString("key30")); //$NON-NLS-1$
           else
           {
             // create a psudeo action list from which to disasemble the function
             ActionList al = new ActionList(true);
             al.setActionOffset(0, lStart.function);
             lStart.actions = al;
             lStart.at = 0;
             lEnd = new ActionLocation();
             lEnd.actions = al;
             lEnd.at = 0;
View Full Code Here

            out.println("<!-- Parsing actions from " + url + " -->");
            // we have no way of knowing the swf version, so assume latest
            URLConnection connection = url.openConnection();
            ActionDecoder actionDecoder = new ActionDecoder(new SwfDecoder(connection.getInputStream(), 7));
            actionDecoder.setKeepOffsets(true);
            ActionList actions = actionDecoder.decode(connection.getContentLength());
            SwfxPrinter printer = new SwfxPrinter(out);
            printer.decompile = decompileOption;
            printer.defunc = defuncOption;
            printer.printActions(actions);
          }
View Full Code Here

      }

      // then frame actions
      for (Iterator<ActionList> j = frame.doActions.iterator(); j.hasNext();)
      {
        ActionList list = j.next();
        new DoAction(list).visit(handler);
      }

      // oh yeah, then showFrame!
      new ShowFrame().visit(handler);
View Full Code Here

            out.println("<!-- Parsing actions from " + url + " -->");
            // we have no way of knowing the swf version, so assume latest
            URLConnection connection = url.openConnection();
            ActionDecoder actionDecoder = new ActionDecoder(new SwfDecoder(connection.getInputStream(), 7));
            actionDecoder.setKeepOffsets(true);
            ActionList actions = actionDecoder.decode(connection.getContentLength());
            SwfxPrinter printer = new SwfxPrinter(out);
            printer.decompile = decompileOption;
            printer.defunc = defuncOption;
            printer.printActions(actions);
          }
View Full Code Here

     */
    public ActionList createActionList(boolean keepOffsets)
    {
        processSkipEntries();

        ActionList list = new ActionList(keepOffsets);
        list.grow(count);
        Action a;
        int length = actions.length;
        if (keepOffsets)
        {
            for (int i=0; i < length; i++)
            {
                int offset = startOffset+i;
                if ((a=actions[i]) != null)
                    list.insert(offset, a);
                if ((a=lines[i]) != null)
                    list.insert(offset, a);
        if ((a=registers[i]) != null)
          list.insert(offset, a);
                if ((a=labels[i]) != null)
                    list.insert(offset, a);
            }
            if ((a=labels[length]) != null)
                list.insert(startOffset+length, a);
        }
        else
        {
            for (int i=0; i < length; i++)
            {
                if ((a=labels[i]) != null)
                    list.append(a);
                if ((a=lines[i]) != null)
                    list.append(a);
        if ((a=registers[i]) != null)
          list.append(a);
                if ((a=actions[i]) != null)
                    list.append(a);
            }
            if ((a=labels[length]) != null)
                list.append(a);
        }
        return list;
    }
View Full Code Here

      }

      // then frame actions
      for (Iterator<ActionList> j = frame.doActions.iterator(); j.hasNext();)
      {
        ActionList list = j.next();
        new DoAction(list).visit(handler);
      }

      // oh yeah, then showFrame!
      new ShowFrame().visit(handler);
View Full Code Here

   * Ask a TagDecoder to do its magic, calling us
   * upon each encounter of a new tag.
   */
  void process(TagDecoder d) throws IOException
  {
    m_master = new ActionList(true);
        d.setKeepOffsets(true);
    d.parse(this);
  }
View Full Code Here

           if (lStart.function == null)
             cli.err(getLocalizationManager().getLocalizedTextString("key30")); //$NON-NLS-1$
           else
           {
             // create a psudeo action list from which to disasemble the function
             ActionList al = new ActionList(true);
             al.setActionOffset(0, lStart.function);
             lStart.actions = al;
             lStart.at = 0;
             lEnd = new ActionLocation();
             lEnd.actions = al;
             lEnd.at = 0;
View Full Code Here

        return new TestSuite(DoActionTest.class);
    }

    public void testEqualsPositive()
    {
        DoAction doAction1 = new DoAction(new ActionList());
        doAction1.actionList.insert(0, new Branch(Branch.sactionJump));
        DoAction doAction2 = new DoAction(new ActionList());
        doAction2.actionList.insert(0, new Branch(Branch.sactionJump));
        assertEquals("doAction1 should be equal to doAction2",
                     doAction1, doAction2);
    }
View Full Code Here

TOP

Related Classes of flash.swf.types.ActionList

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.