<DIV>hi <BR>im saleh<BR>please help me</DIV>
<DIV><BR>I WANT SOURSE CODE SIMILAR THIS CODE</DIV>
<DIV>package asl;</DIV>
<DIV>import java.awt.*;<BR>import java.awt.event.*<BR>;<BR>import java.applet.*;</DIV>
<DIV>public class animat1 extends Applet implements Runnable{<BR> int c = 290, d = 300;<BR> int x = 20, k = 20, o = 0, m = 10, n = 0, y = 0;<BR> <BR> Thread t = new Thread(this);<BR> Image img1, img2, img3;<BR> // AudioClip a1;</DIV>
<DIV> public void init() {<BR> <BR> // x = (int) (Math.random() * 420 - 100);<BR> // y = (int) (Math.random() * 310 - 100);<BR> // n = (int) (Math.random() * 660 - 100);<BR> <BR> // o = (int) (Math.random() * 540 - 100);<BR> // m = (int) (Math.random() * 350 - 100);<BR> // k = (int) (Math.random() * 530 - 100);<BR> // a1 = getAudioClip(getDocumentBase(), "4.au");<BR> t.start();<BR> this.setSize(600, 670);<BR> this.setBackground(Color.CYAN);<BR> img1 = this.getImage(this.getCodeBase(),
"4.jpg");<BR> <BR> img2 = this.getImage(this.getCodeBase(), "7.jpg");<BR> img3 = this.getImage(this.getCodeBase(), "8.jpg");<BR> }<BR> public void paint(Graphics g) {<BR> <BR> super.paint(g);<BR> y = (int) (Math.random() * 210 - 100);<BR> n = (int) (Math.random() * 260 - 100);<BR> o = (int) (Math.random() * 240 - 100);<BR> // g.drawImage(img1, x, y, 120, 150, this);<BR> g.drawImage(img2, m, n, 60, 40, this);<BR> // g.drawImage(img3, k, o, 140, 170, this);<BR> g.fillOval(225, 620, 150, 150);<BR>
g.setColor(Color.red);<BR> <BR> g.fillOval(c, d, 20, 20);<BR> g.setColor(Color.BLACK);<BR> g.fillRoundRect(293, 530, 15, 150, 10, 10);<BR> }</DIV>
<DIV> public void run() {</DIV>
<DIV> while (true) {<BR> // a1.play();</DIV>
<DIV> m += 10;<BR> d -= 10;<BR> if (d == 0) {<BR> d = 300;<BR> }<BR> <BR> if(m==600)<BR> <BR> m=0;<BR> try {<BR> t.sleep(10);<BR> <BR> }<BR> catch (InterruptedException ex) {<BR>
}<BR> repaint();</DIV>
<DIV> if (c == m && d == n) {</DIV>
<DIV> img2 = null;<BR> }<BR> <BR> // repaint();<BR> try {<BR> <BR> t.sleep(50);<BR> }<BR> catch (InterruptedException ex) {<BR> }<BR> <BR> repaint();<BR> }<BR> <BR> }<BR>}</DIV>
<DIV>*****************************************************************<BR>package asl;<BR>import java.awt.*;<BR>import java.awt.event.*;<BR>import java.applet.*;<BR>import java.awt.*;<BR>import java.awt.event.*;<BR>import javax.swing.*;<BR>public class animat extends JApplet implements Runnable{<BR> Thread t = new Thread(this);<BR> Image picture[]=new Image[6];<BR> int totalpic=0;<BR> int current=0;<BR> int pause=500;<BR> String imgText;<BR> //*********************************<BR> public void init(){<BR> t.start();<BR> String pauseText=null;<BR> pause=Integer.parseInt(pauseText);<BR> for(int i=0;i<6;i++){<BR> imgText=getParameter("image"+i);<BR> if(imgText!=null){<BR> totalpic++;<BR> picture[i] = this.getImage(this.getCodeBase(), imgText);<BR>
}<BR> else<BR> totalpic++;<BR> }<BR> }<BR> //********************************<BR> public void paint(Graphics screen){<BR> Graphics2D screen2D=(Graphics2D) screen;<BR> if(picture[current]!=null){<BR> screen2D.drawImage(picture[current],0,0,this);<BR> // g.drawImage(img2, m, n, 60, 40, this);<BR> }<BR> }<BR> //*********************************<BR> /* public void start(){<BR> if(runner==null){<BR> runner=new Thread(this);<BR> runner.start();<BR> }<BR> }*/<BR> //**********************************<BR> public void run() {<BR> Thread
thisTread=Thread.currentThread();<BR> while (t == thisTread){<BR> repaint();<BR> current++;<BR> if (current >= totalpic)<BR> current=0;<BR> try{<BR> Thread.sleep(pause);<BR> }<BR> catch (InterruptedException e){<BR> }<BR> }<BR> }<BR> //*********************************<BR> public void update(Graphics screen){<BR> paint(screen);<BR> }<BR>}</DIV>
<DIV><BR> </DIV><p>
                <hr size=1> <a href="http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs">Start your day with Yahoo! - make it your home page </a>