Examples of ButtonRecord


Examples of flash.swf.types.ButtonRecord

      out.print(" trackAsMenu='" + tag.trackAsMenu + "'");
      end();
     
      for (int i = 0; i < tag.buttonRecords.length; i++)
      {
        ButtonRecord record = tag.buttonRecords[i];
        indent();
        out.println("<buttonRecord " +
              "idref='" + idRef(record.characterRef) + "' " +
              "depth='" + record.placeDepth + "' " +
              "matrix='" + record.placeMatrix + "' " +
              "states='" + record.getFlags() + "'/>");
        // todo print optional cxforma
      }
     
      // print conditional actions
      if (tag.condActions.length > 0 && showActions)
View Full Code Here

Examples of flash.swf.types.ButtonRecord

        int actionOffset = r.readUI16();

        // read button data
        ArrayList<Object> list = new ArrayList<Object>(5);
        ButtonRecord record;
        while ((record = decodeButtonRecord(t.code)) != null)
        {
            list.add(record);
        }
View Full Code Here

Examples of flash.swf.types.ButtonRecord

        DefineButton t;
        t = new DefineButton(stagDefineButton);
        int id = r.readUI16();

        ArrayList<ButtonRecord> list = new ArrayList<ButtonRecord>();
        ButtonRecord record;
        do
        {
            record = decodeButtonRecord(t.code);
            if (record != null)
            {
View Full Code Here

Examples of flash.swf.types.ButtonRecord

    }

    private ButtonRecord decodeButtonRecord(int type) throws IOException
    {
      boolean hasFilterList = false, hasBlendMode = false;
        ButtonRecord b = new ButtonRecord();

        r.syncBits();

        int reserved;
        if (type == stagDefineButton2)
View Full Code Here

Examples of flash.swf.types.ButtonRecord

      out.print(" trackAsMenu='" + tag.trackAsMenu + "'");
      end();
     
      for (int i = 0; i < tag.buttonRecords.length; i++)
      {
        ButtonRecord record = tag.buttonRecords[i];
        indent();
        out.println("<buttonRecord " +
              "idref='" + idRef(record.characterRef) + "' " +
              "depth='" + record.placeDepth + "' " +
              "matrix='" + record.placeMatrix + "' " +
              "states='" + record.getFlags() + "'/>");
        // todo print optional cxforma
      }
     
      // print conditional actions
      if (tag.condActions.length > 0 && showActions)
View Full Code Here

Examples of flash.swf.types.ButtonRecord

        int actionOffset = r.readUI16();

        // read button data
        ArrayList<Object> list = new ArrayList<Object>(5);
        ButtonRecord record;
        while ((record = decodeButtonRecord(t.code)) != null)
        {
            list.add(record);
        }
View Full Code Here

Examples of flash.swf.types.ButtonRecord

        DefineButton t;
        t = new DefineButton(stagDefineButton);
        int id = r.readUI16();

        ArrayList<ButtonRecord> list = new ArrayList<ButtonRecord>();
        ButtonRecord record;
        do
        {
            record = decodeButtonRecord(t.code);
            if (record != null)
            {
View Full Code Here

Examples of flash.swf.types.ButtonRecord

    }

    private ButtonRecord decodeButtonRecord(int type) throws IOException
    {
      boolean hasFilterList = false, hasBlendMode = false;
        ButtonRecord b = new ButtonRecord();

        r.syncBits();

        int reserved;
        if (type == stagDefineButton2)
View Full Code Here

Examples of org.apache.flex.swf.types.ButtonRecord

        while (true)
        {
            final int firstByte = bitStream.readUI8();
            if (firstByte == 0)
                break;
            final ButtonRecord record = new ButtonRecord();
            record.setHasBlendMode((firstByte & 0x20) > 0);
            record.setHasFilterList((firstByte & 0x10) > 0);
            record.setStateHitTest((firstByte & 0x08) > 0);
            record.setStateDown((firstByte & 0x04) > 0);
            record.setStateOver((firstByte & 0x02) > 0);
            record.setStateUp((firstByte & 0x01) > 0);
            record.setCharacterID(bitStream.readUI16());
            record.setPlaceDepth(bitStream.readUI16());
            record.setPlaceMatrix(readMatrix());
            if (type == TagType.DefineButton2)
            {
                record.setColorTransform(readColorTransformWithAlpha());

                if (record.isHasFilterList())
                {
                    final int count = bitStream.readUI8();
                    final Filter[] filterList = new Filter[count];
                    for (int i = 0; i < count; i++)
                        filterList[i] = readFilter();
                    record.setFilterList(filterList);
                }

                if (record.isHasBlendMode())
                    record.setBlendMode(bitStream.readUI8());
            }
            characters.add(record);
        }
        return characters.toArray(new ButtonRecord[characters.size()]);
    }
View Full Code Here

Examples of org.apache.flex.swf.types.ButtonRecord

        out.print(" trackAsMenu=\"" + tag.isTrackAsMenu() + "\"");
        end();

        for (int i = 0; i < tag.getCharacters().length; i++)
        {
            ButtonRecord record = tag.getCharacters()[i];
            indent();
            out.println("<buttonRecord " +
                        "idref=\"" + record.getCharacterID() + "\" " + //TODO: print symbol name
                        "depth=\"" + record.getPlaceDepth() + "\" " +
                        "matrix=\"" + record.getPlaceMatrix() + "\" " +
                        "stateHitTest=\"" + record.isStateHitTest() + "\" " +
                        "stateDown=\"" + record.isStateDown() + "\" " +
                        "stateOver=\"" + record.isStateOver() + "\" " +
                        "stateUp=\"" + record.isStateUp() + "\" " +
                        "/>");
            // todo print optional cxforma
        }

        // print conditional actions
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.