Menu

ASJava / News: Recent posts

A sample class to show the potential for this

import _root.Canvas;
import _root.abstractKeyListener;
import java.awt.Event;
import java.awt.event.KeyEvent;
import java.io.File;
import resources.MovieClip;

/**
*
* @author Kyle
*/
public class testClass extends Canvas {

MovieClip testClip = new MovieClip(new File("d:\\Pictures\\oct.png"),50,50);

int i=0;
int speed=5;

@Override
public void begin() {
addMovieClip(testClip);
}

@Override
public void onEnterFrame() {
if(key.RIGHT){
//testClip.moveX(3);
testClip.setRotation(i*speed);
i++;
}... read more

Posted by Kyle Flanigan 2011-02-13
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.