Animating

So I am trying to use Adobe Flash Professional to make Flash animation and then use those animations as a spritesheet in java. I really like using Adobe Flash for drawing graphics, and I have no clue if this is even possible, but i am basically trying to use Adobe Flash for the graphics in my game and i have no clue how to get them in. I have search for quite awhile and can not seem to find anything useful on this. Does anybody have any information on how to use Adobe Flash for graphics in java?

I don’t reconend doing that, it would be a painfull process! Try just clear java animation. This is how i do it :


package Graphics;

import java.awt.image.BufferedImage;

import Main.Main;

public class Animation {

	private BufferedImage[] animImages = {};
	private boolean animate = false;
	private int index = 0;
	private long miliSeconds, targetTime, now;

	public Animation(int mili,BufferedImage[] images) {
		this.miliSeconds = mili;
		animImages = images;
		now = System.currentTimeMillis();
		targetTime = now + miliSeconds;
		Main.anims.add(this);
	}
	
	public void stopAnimation(){
		animate = false;
	}
	
	public void startAnimation(){
		animate = true;
	}
	
	public BufferedImage getCurrentImage(){
		if(index < 0 || index > animImages.length){
			new Exception();
		}
		return animImages[index];
	}
	
	public void disposeAnimation(){
		Main.anims.remove(this);
	}
	
	public void setIndex(int i){
		index = i;
	}
	
	public void tick(){
		if (System.currentTimeMillis() >= targetTime && animate) {
			index++;
			now = System.currentTimeMillis();
			targetTime = now + miliSeconds;
			if(index>animImages.length-1){
				index = 0;
			}
		}
	}

}

Make an a static array list in the main method and tick every animation in there it so easy to get the image getCurrentImage() simple as that!

Just export the flash animations as spritesheets: http://www.adobe.com/devnet/flash/articles/using-sprite-sheet-generator.html

Then use spritesheet animation like GNecro posted.

k ill look into that thank you both