Package flash.swf.tags

Examples of flash.swf.tags.DefineSprite


    }

    public void Package(Attributes attributes) throws SAXParseException
    {
        text = new StringBuilder();
        DefineSprite pkg = new DefineSprite();
        DoInitAction initAction = new DoInitAction(pkg);
        // get id for this package
        int id = parseInt(getAttribute(attributes, "id"));
        createCharacter(id, pkg);
        currentHandler().defineSprite(pkg);
View Full Code Here


            graphicClass = new FXGSymbolClass();
            graphicClass.setPackageName(packageName);
            graphicClass.setClassName(className);

            DefineSprite sprite = (DefineSprite)transcode(graphicNode);
            graphicClass.setSymbol(sprite);
           
            // use specified className if specified
            if (graphicNode.className != null)
              sprite.name = graphicNode.className;
View Full Code Here

            // Then record this SymbolClass with the top-level graphic
            // SymbolClass so that it will be associated with the FXG asset.
            graphicClass.addAdditionalSymbolClass(spriteSymbolClass);

            // Create a DefineSprite to hold this TextGraphic
            DefineSprite textSprite = createDefineSprite(className);
            PlaceObject po3 = placeObject(textSprite, node.createGraphicContext());
            spriteStack.push(textSprite);

            StringBuilder buf = new StringBuilder(4096);
            buf.append("package ").append(packageName).append("\n");
View Full Code Here

            graphicClass = new FXGSymbolClass();
            graphicClass.setPackageName(packageName);
            graphicClass.setClassName(className);

            DefineSprite sprite = (DefineSprite)transcode(graphicNode);
            graphicClass.setSymbol(sprite);

            // Create a new sprite class to map to this Graphic's DefineSprite
            StringBuilder buf = new StringBuilder(512);
            buf.append("package ").append(packageName).append("\n");
View Full Code Here

            // Then record this SymbolClass with the top-level graphic
            // SymbolClass so that it will be associated with the FXG asset.
            graphicClass.addAdditionalSymbolClass(spriteSymbolClass);

            // Create a DefineSprite to hold this TextGraphic
            DefineSprite textSprite = createDefineSprite(className);
            PlaceObject po3 = placeObject(textSprite, node.createGraphicContext());
            spriteStack.push(textSprite);

            StringBuilder buf = new StringBuilder(4096);
            buf.append("package ").append(packageName).append("\n");
View Full Code Here

    return height;
  }

  public DefineSprite defineSprite(String name)
  {
    DefineSprite defineSprite = new DefineSprite();
    defineSprite.framecount = 1;
    defineSprite.tagList = defineTags;
    defineSprite.name = name;
    return defineSprite;
  }
View Full Code Here

      }

      TranscoderInput ti = new TranscoderInput(is);
      ti.setURI(docURI);

      DefineSprite sprite = transcodeSVG(ti, source, newName);
            if (args.containsKey(SCALE9LEFT) || args.containsKey(SCALE9RIGHT) || args.containsKey(SCALE9TOP) || args.containsKey(SCALE9BOTTOM))
            {
                MovieTranscoder.defineScalingGrid( sprite, args );
            }
            return sprite;
View Full Code Here

    try
    {
      SpriteTranscoder transcoder = new SpriteTranscoder();
      transcoder.transcode(ti, null);

      DefineSprite defineSprite = new DefineSprite(symbolName);
      defineSprite.tagList = transcoder.getTags();
      defineSprite.framecount = 1; //SVG is static for now

            return defineSprite;
    }
View Full Code Here

TOP

Related Classes of flash.swf.tags.DefineSprite

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.