Package com.anotherbigidea.flash.structs

Examples of com.anotherbigidea.flash.structs.AlphaTransform


  //----------------------------------------------------------------------------
  private void alterFrame(Frame frame, Instance instance, double x, double y, double sx, double sy, double alpha)
  {
    Transform transform;
    AlphaTransform alpha_transform;

    transform = new Transform();
    transform.setTranslateX(x);
    transform.setTranslateY(y);
    transform.setScaleX(sx);
    transform.setScaleY(sy);
    alpha_transform = new AlphaTransform();
    alpha_transform.setMultAlpha(alpha);
    frame.alter(instance, transform, alpha_transform);
  }
View Full Code Here


    double width = glyphs.getLogicalBounds().getWidth() / 2.0;
    double center = position_.getX() + width;
    double scale = 2.0;

    frame = movie.appendFrame();
    instance = frame.placeSymbol(shape, new Transform(), new AlphaTransform());
    alterFrame(frame, instance, center - width * scale, position_.getY(), scale, 0.5, 0.025);

    for (int i = speed; i <= 40; i += speed)
    {
      frame = movie.appendFrame();
View Full Code Here

        double center_x = position_.getX() + width;
        double center_y = position_.getY() - height;
        double scale = 2.0;

        frame = movie.appendFrame();
        instance = frame.placeSymbol(shape, new Transform(), new AlphaTransform());
        alterFrame(frame, instance, center_x - width * scale, center_y + height * scale, scale, scale, 0.05);

        for (int i = speed; i <= 10; i += speed)
        {
          frame = movie.appendFrame();
View Full Code Here

            int depth = in.readUI16();

            int            charId    = hasCharacter      ? in.readUI16()            : 0;
            Matrix         matrix    = hasMatrix         ? new Matrix( in )         : null;
            AlphaTransform cxform    = hasColorTransform ? new AlphaTransform( in ) : null;
            int            ratio     = hasRatio          ? in.readUI16()            : -1;       
            String         name      = hasName           ? in.readString(mStringEncoding: null
            int            clipDepth = hasClipDepth      ? in.readUI16()            : 0;

            int clipEventFlags = 0;
View Full Code Here

TOP

Related Classes of com.anotherbigidea.flash.structs.AlphaTransform

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.