Examples of ICharacterTag


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

    }

    @Override
    protected Map<String, ICharacterTag> doTranscode(Collection<ITag> tags, Collection<ICompilerProblem> problems)
    {
        ICharacterTag assetTag = null;
        String symbolName;
        if (symbolTag != null)
        {
            symbolName = data.getQName();
            Set<ITag> sortedTags = new LinkedHashSet<ITag>();
View Full Code Here

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

        return swfReader;
    }

    private ICharacterTag getSWFTag(SWFReader swfReader, String tagName, Collection<ICompilerProblem> problems)
    {
        ICharacterTag characterTag = null;
        for (ITag tag : swfReader)
        {
            if (tag instanceof SymbolClassTag)
            {
                SymbolClassTag symbolClassTag = (SymbolClassTag)tag;
View Full Code Here

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

                    break;
                case SymbolClass:
                    final SymbolClassTag symbolClass = (SymbolClassTag)tag;
                    for (final String name : symbolClass.getSymbolNames())
                    {
                        final ICharacterTag exportedCharacter = symbolClass.getSymbol(name);
                        currentFrame.defineSymbol(exportedCharacter, name, dictionary);
                    }
                    break;
                case EnableDebugger2:
                    swf.setEnableDebugger2((EnableDebugger2Tag)tag);
View Full Code Here

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

     * @see SWFWriter#writeDefineScalingGrid
     */
    private DefineScalingGridTag readDefineScalingGrid() throws MalformedTagException
    {
        final int characterId = bitStream.readUI16();
        final ICharacterTag character = getTagById(characterId,
                TagType.DefineScalingGrid);
        final Rect splitter = readRect();

        return new DefineScalingGridTag(character, splitter);
    }
View Full Code Here

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

            case FillStyle.REPEATING_BITMAP_FILL:
            case FillStyle.CLIPPED_BITMAP_FILL:
            case FillStyle.NON_SMOOTHED_REPEATING_BITMAP:
            case FillStyle.NON_SMOOTHED_CLIPPED_BITMAP:
                final int bitmapId = bitStream.readUI16();
                final ICharacterTag bitmap = getTagById(bitmapId, tagType);
                final Matrix startBitmapMatrix = readMatrix();
                final Matrix endBitmapMatrix = readMatrix();
                result.setBitmap(bitmap);
                result.setStartBitmapMatrix(startBitmapMatrix);
                result.setEndBitmapMatrix(endBitmapMatrix);
View Full Code Here

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

    }

    private ITag readVideoFrame() throws IOException, MalformedTagException
    {
        final int id = bitStream.readUI16();
        final ICharacterTag streamTag = getTagById(id, TagType.VideoFrame);
        assert streamTag.getTagType() == TagType.DefineVideoStream;
        final int frameNum = bitStream.readUI16();
        final byte[] videoData = bitStream.readToBoundary();

        final VideoFrameTag tag = new VideoFrameTag();
        tag.setStreamTag((DefineVideoStreamTag)streamTag);
View Full Code Here

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

        for (int i = 0; i < DefineButtonSoundTag.TOTAL_SOUND_STYLE; i++)
        {
            final int soundID = bitStream.readUI16();
            if (soundID == 0)
                continue;
            final ICharacterTag soundTag = getTagById(soundID, tag.getTagType());
            assert soundTag instanceof DefineSoundTag;
            tag.getSoundChar()[i] = (DefineSoundTag)soundTag;
            tag.getSoundInfo()[i] = readSoundInfo();
        }
        return tag;
View Full Code Here

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

    private CSMTextSettingsTag readCSMTextSettings() throws MalformedTagException
    {
        final int id = bitStream.readUI16();
        final CSMTextSettingsTag tag = new CSMTextSettingsTag();
        final ICharacterTag textTag = getTagById(id, tag.getTagType());

        tag.setTextTag(textTag);
        bitStream.byteAlign();
        tag.setUseFlashType(bitStream.readUB(2));
        tag.setGridFit(bitStream.readUB(3));
View Full Code Here

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

        // HasFont and HasFontClass is exclusive, but we tolerate the situation where both
        // are set.
        if (tag.isHasFont())
        {
            final int id = bitStream.readUI16();
            final ICharacterTag fontTag = getTagById(id, tag.getTagType());
            tag.setFontTag(fontTag);
            tag.setFontHeight(bitStream.readUI16());
        }

        if (tag.isHasFontClass())
View Full Code Here

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

        textRecord.setStyleFlagsHasXOffset(bitStream.readBit());

        if (textRecord.isStyleFlagsHasFont())
        {
            final int fontId = bitStream.readUI16();
            final ICharacterTag fontTag = getTagById(fontId, type);
            textRecord.setFontTag(fontTag);
        }

        if (textRecord.isStyleFlagsHasColor())
        {
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.