<DIV>hi </DIV>
<DIV>im saleh</DIV>
<DIV>please help me</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>I WANT SOURSE CODE SIMILAR THIS CODE</DIV>
<DIV> </DIV>
<DIV>package asl;</DIV>
<DIV><BR>import java.awt.*;</DIV>
<DIV>import java.awt.event.*<BR>;<BR>import java.applet.*;</DIV>
<DIV><BR>public class animat1 extends Applet implements Runnable{</DIV>
<DIV> int c = 290, d = 300;</DIV>
<DIV> int x = 20, k = 20, o = 0, m = 10, n = 0, y = 0;<BR> <BR> Thread t = new Thread(this);</DIV>
<DIV> Image img1, img2, img3;</DIV>
<DIV> // AudioClip a1;</DIV>
<DIV> </DIV>
<DIV> public void init() {<BR> <BR> // x = (int) (Math.random() * 420 - 100);</DIV>
<DIV> // y = (int) (Math.random() * 310 - 100);</DIV>
<DIV> // n = (int) (Math.random() * 660 - 100);<BR> <BR> // o = (int) (Math.random() * 540 - 100);</DIV>
<DIV> // m = (int) (Math.random() * 350 - 100);</DIV>
<DIV> // k = (int) (Math.random() * 530 - 100);</DIV>
<DIV> // a1 = getAudioClip(getDocumentBase(), "4.au");</DIV>
<DIV> t.start();</DIV>
<DIV> this.setSize(600, 670);</DIV>
<DIV> this.setBackground(Color.CYAN);</DIV>
<DIV> img1 = this.getImage(this.getCodeBase(), "4.jpg");<BR> <BR> img2 = this.getImage(this.getCodeBase(), "7.jpg");</DIV>
<DIV> img3 = this.getImage(this.getCodeBase(), "8.jpg");</DIV>
<DIV> }</DIV>
<DIV> public void paint(Graphics g) {<BR> <BR> super.paint(g);</DIV>
<DIV> y = (int) (Math.random() * 210 - 100);</DIV>
<DIV> n = (int) (Math.random() * 260 - 100);</DIV>
<DIV> o = (int) (Math.random() * 240 - 100);</DIV>
<DIV> // g.drawImage(img1, x, y, 120, 150, this);</DIV>
<DIV> g.drawImage(img2, m, n, 60, 40, this);</DIV>
<DIV> // g.drawImage(img3, k, o, 140, 170, this);</DIV>
<DIV> g.fillOval(225, 620, 150, 150);</DIV>
<DIV> g.setColor(Color.red);<BR> <BR> g.fillOval(c, d, 20, 20);</DIV>
<DIV> g.setColor(Color.BLACK);</DIV>
<DIV> g.fillRoundRect(293, 530, 15, 150, 10, 10);</DIV>
<DIV> }</DIV>
<DIV><BR> public void run() {</DIV>
<DIV><BR> while (true) {</DIV>
<DIV> // a1.play();</DIV>
<DIV><BR> m += 10;</DIV>
<DIV> d -= 10;</DIV>
<DIV> if (d == 0) {</DIV>
<DIV> d = 300;</DIV>
<DIV> }<BR> <BR> if(m==600)<BR> <BR> m=0;</DIV>
<DIV> try {</DIV>
<DIV> t.sleep(10);<BR> <BR> }<BR> catch (InterruptedException ex) {</DIV>
<DIV> }</DIV>
<DIV> repaint();</DIV>
<DIV><BR> if (c == m && d == n) {</DIV>
<DIV><BR> img2 = null;</DIV>
<DIV> }</DIV>
<DIV> <BR> // repaint();</DIV>
<DIV> try {<BR> <BR> t.sleep(50);</DIV>
<DIV> }<BR> catch (InterruptedException ex) {</DIV>
<DIV> }<BR> <BR> repaint();</DIV>
<DIV> }<BR> <BR> }</DIV>
<DIV>}</DIV>
<DIV> </DIV>
<DIV>*****************************************************************<BR>package asl;</DIV>
<DIV>import java.awt.*;<BR>import java.awt.event.*;<BR>import java.applet.*;</DIV>
<DIV>import java.awt.*;<BR>import java.awt.event.*;<BR>import javax.swing.*;</DIV>
<DIV>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>
<DIV> </DIV><p>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com