我爱Aspx >> C#.Net >> 利用J2ME在移动设备上实现动画的解决方案_移动短信技术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读取..[04-28]
对于任意的XML的遍历_XML技巧[04-28]
xml文件调用css_XML技巧[04-28]
Xml_javascript分页 _XML技巧[04-28]
从xml中获取城市,省份名称_XML技..[04-28]
XSL简明教程(6)XSL过滤和查询_XS..[04-28]
XSL简明教程(7)XSL 的控制语句_X..[04-28]
XSLT轻松入门第一章:XSLT的概念..[04-28]
XSLT轻松入门第二章:XSLT的实例..[04-28]
XSLT轻松入门第三章:XSLT的元素..[04-28]