Package com.anotherbigidea.flash.movie

Examples of com.anotherbigidea.flash.movie.Transform


        Frame frame = movie.appendFrame();
       
        com.anotherbigidea.flash.movie.Image.Lossless img = ImageUtil.createLosslessImage( picture_, SWFConstants.BITMAP_FORMAT_32_BIT, true );
        Shape shape = ImageUtil.shapeForImage( img, (double)picture_.getWidth(), (double)picture_.getHeight() );
       
        Transform transe = new Transform();
        transe.setScaleX(scale_);
        transe.setScaleY(scale_);
        transe.setTranslateX( position_.getX() );
        transe.setTranslateY( position_.getY() );
       
        Instance instance = frame.placeSymbol( shape, transe, null );
       
        // sleep in flash...
        for (int count = 0; count < 5; count++ )
View Full Code Here


  }

  //----------------------------------------------------------------------------
  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

    return ratios;
  }
 
  protected Transform getTransform4Flash( MultipleGradientPaint gradient )
  {
    Transform transform = new Transform();
   
      AffineTransform g_transform = gradient.getTransform();
     
      transform.setTranslateX(g_transform.getTranslateX());
      transform.setTranslateY(g_transform.getTranslateY());
      transform.setScaleX( g_transform.getScaleX() );
      transform.setScaleY( g_transform.getScaleY() );
      transform.setScaleX( g_transform.getShearX() );
      transform.setScaleY( g_transform.getShearY() );
   
    return transform;
  }
View Full Code Here

TOP

Related Classes of com.anotherbigidea.flash.movie.Transform

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.