Package flash.swf.tags

Examples of flash.swf.tags.PlaceObject


        // Keep track of whether a node had a mask and filters as this
        // scenario needs to be special cased to match the rendering order
        // of the ActionScript drawing API.
        boolean hasMaskAndFilters = node.mask != null && node.filters != null;

        PlaceObject po3 = super.graphicContentNode(node);

        // We skip text nodes because they already generate a symbol class
        // and will handle advanced graphics there
        if (po3 != null && !(node instanceof TextNode) && hasAdvancedGraphics(node))
        {
View Full Code Here


     * @param node - the Group node
     * @return the PlaceObject definition that would place the Group on stage
     */
    protected PlaceObject group(GroupNode node)
    {
        PlaceObject po3 = super.group(node);

        if (po3 != null && hasAdvancedGraphics(node))
            advancedGraphics(node, po3.ref, SymbolClassType.SPRITE);

        return po3;
View Full Code Here

            // 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");
            buf.append("{\n\n");
View Full Code Here

    applyBounds(ds3.bounds.xMin + matrix.translateX,
        ds3.bounds.yMin + matrix.translateY,
        ds3.bounds.xMax + matrix.translateX,
        ds3.bounds.yMax + matrix.translateY);

    PlaceObject po2 = new PlaceObject(Tag.stagPlaceObject2);
    po2.setMatrix(matrix);
    po2.setRef(ds3);
        po2.depth = depth++;

    if (isGradient)
      graphicContext.setPen(oldPen);
View Full Code Here

      DefineShape ds3 = ImageShapeBuilder.buildImage(defineBits, defineBits.width, defineBits.height);
      defineTags.defineShape3(ds3);
      applyBounds(ds3.bounds.xMin, ds3.bounds.yMin, ds3.bounds.xMax, ds3.bounds.yMax);

      PlaceObject po2 = new PlaceObject(Tag.stagPlaceObject2);
      po2.setMatrix(MatrixBuilder.build(at));
      po2.setRef(ds3);
      po2.depth = depth++;

      defineTags.placeObject2(po2);
    }
View Full Code Here

      DefineShape ds3 = ImageShapeBuilder.buildImage(defineBits, defineBits.width, defineBits.height);
      defineTags.defineShape3(ds3);
            applyBounds(ds3.bounds.xMin, ds3.bounds.yMin, ds3.bounds.xMax, ds3.bounds.yMax);

      PlaceObject po2 = new PlaceObject(ds3, depth++);
            po2.setMatrix(MatrixBuilder.build(graphicContext.getTransform()));
            po2.setName(name);

      defineTags.placeObject2(po2);
    }
  }
View Full Code Here

        DefineShape ds3 = ImageShapeBuilder.buildImage(defineBits, width, height);
        defineTags.defineShape3(ds3);
        applyBounds(ds3.bounds.xMin, ds3.bounds.yMin, ds3.bounds.xMax, ds3.bounds.yMax);

                PlaceObject po2 = new PlaceObject(ds3, depth++);
                po2.setMatrix(MatrixBuilder.build(graphicContext.getTransform()));
                po2.setName(name);

        defineTags.placeObject2(po2);
      }
      finally
      {
View Full Code Here

            //Create a SWF Movie shell
            Movie m = getMovie(1);
            Frame frame1 = (Frame)m.frames.get(0);
            Matrix mt = new Matrix(0, 0);
            frame1.controlTags.add(new PlaceObject(mt, tag, 1, null));

            //Compile SWF
            TagEncoder tagEncoder = new TagEncoder();
            MovieEncoder movieEncoder = new MovieEncoder(tagEncoder);
            movieEncoder.export(m);
View Full Code Here

TOP

Related Classes of flash.swf.tags.PlaceObject

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.