Jump to content
xisto Community

suicide1405241470

Members
  • Content Count

    55
  • Joined

  • Last visited

Everything posted by suicide1405241470

  1. First step: In case someone dont have any background of flash. You may download flash MX 2004 here: https://www.adobe.com/?product=flash Here is a falsh tutorial from macromedia http://forums.xisto.com/no_longer_exists/ Second Step: learn form examples (Snow effect): I am posting some snow effect samples with tutorials If I could find more later, I would post them. But I believe these samples will already help you SNOW.... Falling Snow http://www.flashkit.com/tutorials/Actionscs-980/index.php Snow Globe Effect http://www.flashkit.com/tutorials/Actionscn-986/index.php Making snow http://www.flashkit.com/tutorials/ActionscA-991/index.php Snowing Effect http://www.flash-here.com/ Falling snow I like this one, it more realistic https://www.kirupa.com/developer/mx/snow.htm Falling down snowflakes THis one is for banner http://forums.xisto.com/no_longer_exists/ SNOW GLOBES This looks more like blinking star to me http://www.hypergurl.com/globe.html Second Step II learn from samples (clock): Clock, for tracking how much time, you have wasted... ANd how close to the END... I guess - must have some autoscripts knowledge Analog Clock http://www.entheosweb.com/Flash/analog_clock.asp Digital Clock http://www.entheosweb.com/Flash/digital_clock.asp analogue clock This one looks simpler http://forums.xisto.com/no_longer_exists/ ok, this is not a exactly clock, it is a timer http://forums.xisto.com/no_longer_exists/ Custom Date/Time Clock I dont think anyone is going to put this on his/her website http://www.flashkit.com/tutorials/Actionscr-521/index.php a Binary Clock Ok..... I think computers know how to read it http://forums.xisto.com/no_longer_exists/ watch? anyway... same fuction..just different interface http://www.readingkingdom.com/ how simple you want it be? http://javascript.about.com/index.htm what can I say, it looks so cool http://www.permadi.com/tutorial/flashclock/ Second Step III Learn from examples (Preloader): Reseach indicate most people cant wait over 7s .... With a 56k modem(IS anyone still using it???) it may take forever to load a flash... Preloader help those guys get more patience.. a simple preloader http://www.smartwebby.com/Flash/Flash_simple_preloader.asp all the preloader almost the same. This is a fancy one http://forums.xisto.com/no_longer_exists/ A cleaner and more graphic tutorial http://www.cbtcafe.com/flash/loadmovie/loadmovie.html this is all for today,practise more if you want to good at it
  2. Hi all,I am pretty new to HTML coding but not to graphic design, and my experience with HTML is that components tend to slip and slide all over the place depending upon window size. So I decided to create the pages for my new project in CoreDraw, then use DreamWeaver/Fireworks to convert it to HTML, adding hotspots for links.I am pretty pleased with the results but I seem to have created a major problem with search engine spidering. As the pages are basically one big graphic (although now sliced with Fireworks) there is very little actual text for the robots to index. I do have META tags for keywords and the like, but I understand a correlation between the keywords and the actual text on the page is important in getting top listings.So how do I get around this requirement? I have been submitting the new pages for about 6 months now and they still don't turn up in a search. Is there a META tag I can load all the text into, or sump'n? Thanks in advance for your advice.
  3. i suggest you can use a frame to design your web site.You can make a frame on the top on your site and you only put a ads on there.So, every time your visitior visits your site will find your ads easily and they need to see the ads when they are viewing any pages of your site,because you are using a frame fixing the ads on the top of your site.
  4. yes i also think it won't count your bandwidth when you use your bandwidth.But i think email maight counts, it is because it counts bandwidth when people downloading thins fron your website,it is the same to use your bandwidth when you send somethings to others.That's why i think i might count.In addtion,using a ftp to upload do not count bandwidth,because you are just upload , not viewing your web site.
  5. it is a list for free subdomains and urls,but not all of them provide dns service.(uni.cc provide dns service)If the free subdomains or urls do not provide dns service,you can't use it to sign up for a host.It can only use for making a shorter domain name and let the visitors easier to remember the domain of you site.
  6. hi guys,I was wondering does anyone of u know how to create an artificial lighting...not on the whole body but just partially,something like flaring along the side of the body/face etc without getting disntinct line between the lighted and the un-lighted...my point is an artificial lighting which looks real.Thanks peace!
  7. I've been using Total Training's Photoshop CS trining (7 DVD's, hosted by Deke McClelland) in order to gain more knowledge about PS:CS, but I've ran into a snafu.I've found that, upon boot, Photoshop takes 7 minutes to load. During this time, it stops for a LONG time on "Finding Plugins" and "Building TWAIN Menu List...".Through much trial and error, I have found that if you ~ out the beginning of a folder name, PS will not load the contents on boot.So I renamed:C:\Program Files\Adobe\Photoshop CS\Plug-Ins\Import-Export(which contains just TWAIN_32.8BA)toC:\Program Files\Adobe\Photoshop CS\Plug-Ins\~Import-ExportAND RENAMEDC:\Program Files\Adobe\Photoshop CS\Plug-Ins\Adobe Photoshop Only\AutomatetoC:\Program Files\Adobe\Photoshop CS\Plug-Ins\Adobe Photoshop Only\~AutomateAND RENAMEDC:\Program Files\Adobe\Photoshop CS\Plug-Ins\Adobe Photoshop Only\~Automate\Online ServicestoC:\Program Files\Adobe\Photoshop CS\Plug-Ins\Adobe Photoshop Only\~Automate\~Online ServicesWith this done, PS Cold Boots in 12 seconds, and warm boots in about 6-7. (AMD XP 1800 1.5Ghz, 1024MB DDR, Windows XP Pro).I noticed that if you goto START > RUN > 'SERVICES.MSC' That the WIA (Windows Imaging Acquisition) Service is not started. WIA sounds like something PS would need to capture my Twain Compliant Scanner (Microtek SlimScan C6 US. Well, I tried to start it, but it times out, so I don't know if that's my problem or not.If I dont' ~ out any folder names, PS DOES LOAD (after 7 minutes), but when I goto FILE > IMPORT > Microtek SlimScan (32bit)..., it takes another 2 MINUTES to bring up the ScanWizard for import into PS. Once I scan, the image comes in fine. But this is just WAY TOO LONG. Something is holding it up.
  8. HiIs it possible to put a watermark on images in photoshop,like putting the word "preview" or "sample" on the jpeg,with a transparant type of effect on it?Also would it be possible to do this in a batch process?Hope to hear from anyone.Thanks
  9. cHi, I have a file that is about 125megs, it stopped opening for me. I don't understand why, it's always has opened ever since I created it. Now it freezes my machine, this just started today. I'm running a G4 Dual 1.42mhz os 10.3 and 2gigs of ram. It's the only copy i have, please tell me there's a way to repare it. My Mac keeps telling me to restart every time i try to open it.
  10. Hey guys, I have created an image in Photoshop that I want to use as my website front end, but I have a few questions:1. How do I go about putting the hyperlinks into my navigation menu?2. I want to use the blank space I have left as a frame, what would be the best way to this? I was thinking of creating the layout of frames in dreamweaver theb slicing and inserting the images into the individual frames? the filling the centre frame the same colour as the frotn end so it belnds in
  11. Hi, I have Photoshop CS and I want to know how to make an image selection fade to transparency. Example, I select part of a photo, say a persons face, with the lasso select tool. I want to make the boundries of the lasso selected area fade to transparent in a gradient style. It seems very easy but I can't figure it out. Please advise thanks.
  12. I was trying to make a selection using the magnetic lasso tool and every time I get about half way done my screen goes blank. I can hit enter and return to the original screen but then ive lost my selection. I have used other tools to make a selection and have not had problems, only with the magnetic lasso tool does this happen. Does anyone have any tips?
  13. HI,I'm not an expert (yet!) in PS7. But I'm wondering why there's a color difference between what you print on a home printer and what you send to the lab to be developed (on photo paper)????I did a montage with KAKI (pale green) borders, it looked good on the screen and on my printer. SO I sent the file to be developed on photo paper. To my suprise the borders are now LIME (green) color, instead of the more KAKI green (Original montage). Is there anything I can do to get a more WYSIWYG (What you see is what you get) feel between the ORIGINAL, PRINTED and DEVELOPED (photo paper) versions????
  14. I have a minor problem. Everytime I use my brush or eraser it shows the the brush I've selected for the job as per usual. But I did something recently that's turned my brush/eraser into a crosshair that I can't get rid of. Any suggestions?
  15. How do u use system date in java?I only know how in jsp. In jsp, u need to do the code below to get the sysdate<%@ page import="java.text.*, java.util.Date" %>String date = DateFormat.getInstance().format(new Date());and you will be able to get the system date which has the format 6/6/04 7:19 AM______________________iv tried to do this in java import java.util.Date;public String getSysDate() { String date = ""; String date = DateFormat.getInstance().format(new Date()); return date; }there's an error on the variable DateFormat., it cannot resolve symbol.does anyone know how?
  16. Dear all, I have a question about java with windows form.I have an exe or DLL stand alone program make by visual basic 6.Also I have a java software build up with swing.Can the exe or DLL program executed inside the Java software?It means I click the menu and select a function in the Java software.And then the exe or DLL will be executed and a windows form will be pop up.But I want to fake like a Java jpanel not a stand alone program run outside the Java software.Is it possible?Thanks you~~
  17. Help needed: How to use DB2 Export command in JAVA so as to generate the output in a .xls sheet . We use the following in DB2 as - EXPORT TO C:\Book1.csv OF WSF <SELECT QUERY> . I need to know how this command can be used in java without doing it manually through FileOutputStream.
  18. Hi, I been making a retro style space game where the spaceship can move around the screen and other ships would slide accross the screen and try and shoot you down. Well, when i play it, its unfinnished, it seems really slow. It moves fast for a few seconds and then suddenly stops/slows down for a second. Sometimes is running really slow. But what dont makes sence is that my Thread.sleep is set at about 0.005 and that is really slow on the game and chnaging it to a lower value doesnt change much. But if i change it to 0, then the game goes crazy, well its still slow, but i end up on another part of the screen, meaning its going too fast. I think its somthing to do with the threading as i got lots of threads but i have given prioities which should make it a little more effiecent, but i dont want to put the threads into one thread becuase it will ruin the timeing of my spacecraft movement, the laser movement and the key listeners. I also thought it could be the display code which repaints every 24 frames, but removing that and adding repaints to every thread still makes it very slow. Thanks in advance if you can help me with the problem Heres the full code below, sorry its not documented, The graphics part is in the middle of the code and is pointed out. package spacy;import java.awt.*;import java.awt.event.*;import javax.swing.*;public class game extends JFrame { BorderLayout borderLayout1 = new BorderLayout(); CardLayout cc = new CardLayout(); boolean ismenu = true; boolean isgame = false; int menuspace = -10; int menuchoice = 0; boolean[] keys = new boolean[256]; int[] playerpos = {10, 200}; int[][] playerlasers = new int[100][3]; long bullettime = System.currentTimeMillis(); //Construct the frame public game() { enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } //Component initialization private void jbInit() throws Exception { this.getContentPane().setLayout(borderLayout1); this.getContentPane().setBackground(Color.black); this.setSize(new Dimension(600, 500)); this.setTitle(".:Space Shooter:."); addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(KeyEvent e) { this_keyPressed(e); } public void keyReleased(KeyEvent e) { this_keyReleased(e); } }); new Thread(new display()).start(); new Thread(new animatemenu()).start(); new Thread(new menuchoiceselection()).start(); //this.getContentPane().add(jPanel1, BorderLayout.CENTER); this.getContentPane().setLayout(cc); jPanel1.setBackground(Color.black); this.getContentPane().add(jPanel1, "jPanel1"); this.getContentPane().add(jPanel2, "jPanel2"); cc.show(this.getContentPane(),"jPanel1"); } //Overridden so we can exit on System Close protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); if(e.getID() == WindowEvent.WINDOW_CLOSING) { System.exit(0); } } JPanel jPanel1 = new JPanel() { public void paintComponent(Graphics g) { Graphics2D c = (Graphics2D)g; c.clearRect(0,0,jPanel1.getWidth(),jPanel1.getHeight()); c.setColor(Color.blue); c.fillRoundRect((jPanel1.getWidth()/2)-50,186 + (menuchoice*20),100,20,5,5); c.setColor(Color.black); c.drawLine(menuspace,100,menuspace+10,105); c.drawLine(menuspace,110,menuspace+10,105); c.setColor(Color.white); c.drawString("START",(jPanel1.getWidth()/2)-20,200); c.drawString("HIGH SCORES",(jPanel1.getWidth()/2)-44,220); c.drawString("OPTIONS",(jPanel1.getWidth()/2)-28,240); c.drawString("EXIT",(jPanel1.getWidth()/2)-16,260); } };//-------------------------panel------------------------------------------------ JPanel jPanel2 = new JPanel() { public void paintComponent(Graphics g) { Graphics2D c = (Graphics2D)g; c.clearRect(0,0,jPanel2.getWidth(),jPanel2.getHeight()); c.setColor(Color.black); c.drawLine(playerpos[0]-10,playerpos[1]-5,playerpos[0],playerpos[1]); c.drawLine(playerpos[0]-10,playerpos[1]+5,playerpos[0],playerpos[1]); for (int i = 0; i != 100; i++) { if (playerlasers[i][0] > 0) { c.drawLine(playerlasers[i][0]-5,playerlasers[i][1],playerlasers[i][0],playerlasers[i][1]); } } } }; class display implements Runnable { public void run() { while(true) { try { Thread.sleep(40); } catch (InterruptedException e){} repaint(); } } } class animatemenu implements Runnable { public void run() { while(ismenu == true) { try { Thread.sleep(100); } catch (InterruptedException e){} menuspace++; if (menuspace > jPanel1.getWidth()) { menuspace = -10; } } } }//=============================GAME============================================= class animategame implements Runnable { public void run() { while(isgame == true) { try { Thread.sleep(1); } catch (InterruptedException e){} for (int i = 0; i != 100; i++) { if (playerlasers[i][0] > 0) { playerlasers[i][0]++; } if (playerlasers[i][0] > 500) { playerlasers[i][0] = 0; } } } } } class gamebuttons implements Runnable { boolean slowdown = false; public void run() { Thread.currentThread().setPriority(Thread.MIN_PRIORITY); while(isgame == true) { if (keys[32] == true && bullettime < System.currentTimeMillis()) { bullettime = System.currentTimeMillis()+500; for (int i = 0; i!=100;i++) { if (playerlasers[i][0] == 0){ playerlasers[i][0] = playerpos[0]; playerlasers[i][1] = playerpos[1]; playerlasers[i][2] = 0; break; } } } if (keys[38] == true && playerpos[1] > 20) { playerpos[1]--; slowdown = true; } else if (keys[40] == true && playerpos[1] < 500) { playerpos[1]++; slowdown = true; } if (keys[37] == true && playerpos[0] > 30) { playerpos[0]--; slowdown = true; } else if (keys[39] == true && playerpos[0] < 400) { playerpos[0]++; slowdown = true; } if (slowdown == true) { slowdown = false; try { Thread.sleep(5); } catch (InterruptedException e){} } } } } class menuchoiceselection implements Runnable { public void run() { Thread.currentThread().setPriority(Thread.MIN_PRIORITY); while(ismenu == true) { try { Thread.sleep(1); } catch (InterruptedException e){} if (keys[38] == true && menuchoice > 0) { menuchoice--; try { Thread.sleep(200); } catch (InterruptedException e){} } else if (keys[40] == true && menuchoice < 3) { menuchoice++; try { Thread.sleep(200); } catch (InterruptedException e){} } else if (keys[10] == true && menuchoice == 0) { System.out.println("Play"); ismenu = false; isgame = true; new Thread(new gamebuttons()).start(); new Thread(new animategame()).start(); setpanel("jPanel2"); } else if (keys[10] == true && menuchoice == 1) { System.out.println("High scores"); } else if (keys[10] == true && menuchoice == 2) { System.out.println("Options"); } else if (keys[10] == true && menuchoice == 3) { System.out.println("BOOM"); System.exit(0); } } } } void this_keyPressed(KeyEvent e) { keys[e.getKeyCode()] = true; //System.out.println("Key: \t" + e.getKeyCode()); } void this_keyReleased(KeyEvent e) { keys[e.getKeyCode()] = false; } void setpanel(String panel) { cc.show(this.getContentPane(),panel); }}
  19. hi friends,I am facing a problem which i believe many people had faced earlier...but the net doesnt provide any clear solution of it...so i am here!I wanna record the sound that is being generated in the speakers at any given time...can i use using java sound for this?is tat possible? If so..do u have any idea whether i can use the Port LINE_OUT line to capture the data?I will be greatly obliged if u can show me wit an example the solution of this question...thanx in advance
  20. Runtime.exec() stdout/stderr lost after execvp() in C program?Hello,I have a C program that is printing one line of text to stdout, then it is replacing the current process with a new one using execvp(), and then the new program is printing many lines of text to stdout.When I execute the program in a console (Linux), I can see the line printed by the first process followed by the lines printed by the second process.But when I run the program using Runtime.exec(), the line printed by the first process seems to be thrown away, actually everything the first process writes to stdout gets lost. The first line that can be read from Process' InputStream is the one printed by the second process.This behaviour is consistent with JDK 1.3.1, 1.4.2 and 1.5.0 RC, so I assume this is not a bug.My question is, why is it not possible to read the text written by the first process before execvp()? Is there a way to make that work?I could provide very simple sample code if needed.
  21. Hi,I am trying to write a code to combine RTF file and TIFF file into an output RTF file. That means, output RTF file should have RTF file contents at the top followed by TIFF image. The code is:import java.io.*;public class RTFTest{public RTFTest(String rtfFile, String tifFile){try{BufferedInputStream bis = new BufferedInputStream (new FileInputStream (new File(rtfFile)));int iAvailable = bis.available();byte[] b = new byte[iAvailable];bis.read (b, 0, iAvailable);bis.close();BufferedInputStream bis2 = new BufferedInputStream (new FileInputStream (new File(tifFile)));int iAvailable2 = bis2.available();byte[] b2 = new byte[iAvailable2];bis2.read (b2, 0, iAvailable2);bis2.close();BufferedOutputStream bos = new BufferedOutputStream (new FileOutputStream (new File("output.rtf")));bos.write (b, 0, iAvailable);bos.write (b2, 0, iAvailable2);bos.flush();bos.close();}catch(Exception ex){ex.printStackTrace();}}public static void main(String args[]){new RTFTest("./input.rtf", "./test.tif");}}But, when I open the output.tif, I could only see RTF contents. Not sure what happened to the TIFF contents written onto it. Please help me with this.Regards,
  22. hi, all,I have a question, can anybody give an answer? Thanks in advance.Why the following code throws NullPointerException?String v =null;System.out.println("aaaaa"+v==null?"":Integer.toString(v.length()));while the following code not?String v =null;System.out.println("aaaaa"+(v==null?"":Integer.toString(v.length())));
  23. I read several articals about java programming before downloading j2sdk1.4.2_05 to C directory. I wrote Hello World on wordpad and saved the program as HelloWorlApp.java. But when I tried to compile itI got this message " javac is not recognized as an internal or external comand, operable program or batch file". Please help what am i doing wrong?Thank you
  24. Hi all,I am using DeJDecompiler and working with swing applications.If I try to convert a .class file into .java file,it is converting into .jad file only.Fine but if I try to save that file into .java file,It is giving lot of errors in that program.When I went into that program the total style of the program is changed and TRY-CATCH block is not recognised by the dejdecompiler,hence If I try to include some methods in the existing .java file thus got,I could not do.Kindly help me.If I get the .java file without error then I can process the rest of the functionality.Thanks in advance
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.