Package org.apache.flex.swf.tags

Examples of org.apache.flex.swf.tags.ITag


     * @throws IOException error
     */
    protected void readTags() throws IOException
    {
        SWFFrame currentFrame = buildFrames ? new SWFFrame() : null;
        ITag tag;
        do
        {
            tag = nextTag();

            if (tag == null)
                continue;

            // deposit character tag to dictionary
            if (tag instanceof ICharacterTag)
            {
                addToDictionary((ICharacterTag)tag);
            }

            // save to tags list
            tags.add(tag);

            if (buildFrames)
                currentFrame = buildFramesFromTags(currentFrame, tag);

        }
        while (tag == null || tag.getTagType() != TagType.End);
    }
View Full Code Here


     * @throws IOException error
     */
    protected ITag readTag(TagHeader header) throws IOException
    {
        bitStream.setReadBoundary(bitStream.getOffset() + header.length);
        ITag tag = null;

        try
        {
            tag = readTagBody(header.type);
        }
View Full Code Here

        final long boundary = bitStream.getReadBoundary();
        final int spriteId = bitStream.readUI16();
        final int frameCount = bitStream.readUI16();

        final List<ITag> spriteTags = new ArrayList<ITag>();
        ITag spriteTag;
        do
        {
            spriteTag = nextTag();

            if (spriteTag != null && spriteTag.getTagType() != TagType.End)
                spriteTags.add(spriteTag);
        }
        while (spriteTag == null || spriteTag.getTagType() != TagType.End);

        bitStream.setReadBoundary(boundary);
        DefineSpriteTag sprite = new DefineSpriteTag(frameCount, spriteTags);
        sprite.setCharacterID(spriteId);
        return sprite;
View Full Code Here

TOP

Related Classes of org.apache.flex.swf.tags.ITag

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.