Examples of SymbolClassTag


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

        ICharacterTag characterTag = null;
        for (ITag tag : swfReader)
        {
            if (tag instanceof SymbolClassTag)
            {
                SymbolClassTag symbolClassTag = (SymbolClassTag)tag;
                characterTag = symbolClassTag.getSymbol(tagName);
                if (characterTag != null)
                    break;
            }
            else if (tag instanceof ExportAssetsTag)
            {
View Full Code Here

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

                    break;
                case SetBackgroundColor:
                    swf.setBackgroundColor(((SetBackgroundColorTag)tag).getColor());
                    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.SymbolClassTag

     * @throws MalformedTagException
     * @see SWFWriter#writeSymbolClass
     */
    private SymbolClassTag readSymbolClass() throws MalformedTagException
    {
        final SymbolClassTag symbolClass = new SymbolClassTag();
        final int numSymbols = bitStream.readUI16();
        for (int i = 0; i < numSymbols; i++)
        {
            final int id = bitStream.readUI16();
            final String name = bitStream.readString();
            if (id == 0)
            {
                if (swf.getTopLevelClass() == null)
                    swf.setTopLevelClass(name);
            }
            else
            {
                symbolClass.addSymbol(getTagById(id,
                        symbolClass.getTagType()), name);
            }
        }

        return symbolClass;
    }
View Full Code Here

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

        if (!(key instanceof AssetTagCacheKey))
            throw new IllegalArgumentException("expect AssetTagCacheKey but got " + key.getClass().getSimpleName());

        final AssetTagCacheKey assetTagCacheKey = (AssetTagCacheKey)key;
        final ITagContainer tagContainer = swcManager.getSWFCache().get(SWFCache.createKey(assetTagCacheKey.swc, assetTagCacheKey.swfPath));
        final SymbolClassTag symbolClassTag = getSymbolClass(tagContainer);
        if (symbolClassTag == null)
            return new AssetTagCacheValue(null);

        final ICharacterTag assetTag = symbolClassTag.getSymbol(assetTagCacheKey.qname);
        AssetTagCacheValue result = new AssetTagCacheValue(assetTag);
        getAllReferredTags(assetTag, result.referredTags);

        return result;
    }
View Full Code Here

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

     * @return SymbolClass tag object.
     */
    private SymbolClassTag getSymbolClass()
    {
        if (symbolClass == null)
            symbolClass = new SymbolClassTag();

        return symbolClass;
    }
View Full Code Here

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

                    {
                        resultFrame.addTag(unlinkedTag);
                    }
                    else if( unlinkedTag instanceof SymbolClassTag )
                    {
                        SymbolClassTag s = (SymbolClassTag)unlinkedTag;
                        for( String symbol_name : s.getSymbolNames() )
                        {
                            resultFrame.defineSymbol(s.getSymbol(symbol_name), symbol_name);
                        }
                    }
                }
            }
            if (!accumulatedABC.isEmpty())
View Full Code Here

Examples of tv.porst.swfretools.parser.tags.SymbolClassTag

      addNode("SoundID", ctag.getSoundId());
      addNode("SoundInfo", ctag.getSoundInfo());
    }
    else if (tag instanceof SymbolClassTag) {
      final SymbolClassTag ctag = (SymbolClassTag) tag;

      addNode("NumSymbols", ctag.getNumSymbols());
      addNode("Symbols", ctag.getSymbols());
    }
    else if (tag instanceof VideoFrameTag) {
      final VideoFrameTag ctag = (VideoFrameTag) tag;

      addNode("StreamID", ctag.getStreamId());
      addNode("FrameNum", ctag.getFrameNum());
      addNode("VideoData", ctag.getVideoData());
    }
    else if (tag instanceof RawABCTag) {
      final RawABCTag ctag = (RawABCTag) tag;

      addNode("ABCData", ctag.getAbcData());
    }
    else if (tag instanceof DoABCTag) {
      final DoABCTag ctag = (DoABCTag) tag;

      addNode("Name", ctag.getName());
      addNode("Flags", ctag.getFlags());
      addNode("ABCData", ctag.getAbcData());
    }
  }
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.