• λ我爱Aspx >> C#.Net >> 利用J2ME在移动设备上实现动画的解决方案_移动短信技术
  • 利用J2ME在移动设备上实现动画的解决方案_移动短信技术

  • :aspxer  Դ:internet  :2007-4-28 23:43:27  ؼ:
  • exitMIDlet();

    };

    };

    // Load the bird animation, which is stored as a

    // series of PNG files in the MIDlet suite.

    private Image[] loadFrames( String name, int frames )

    throws IOException {;

    Image[] images = new Image[frames];

    for( int i = 0; i < frames; ++i ){;

    images = Image.createImage( name + i + ".png" );

    };

    return images;

    };

    protected void pauseApp(){; };

    protected void startApp()

    throws MIDletStateChangeException {;

    if( display == null ){;

    display = Display.getDisplay( this );

    initMIDlet();

    };

    };

    };

    七帧图片的动画,你可以看到一个拍着翅膀的小鸟。MIDlet显示了5只小鸟,小鸟的位置和刷新速度是随机的。你可以用一些其他的办法来改进这个程序,但这个程序也应该足够能让你上手了。

    Ҷƪл˵?
  • һƪ广东省教育厅移动通信解决方案_移动短信方案
    һƪXMLTextReader和XmlDocument读取XML文件的比较_XML技巧