Problem With Swf File. Please Help!!!!

Hi! I recently got adobe flash cs4 and i tried to create swf wallpaper (flash lite 1.1), so everything looked good, untill i opened the file. The problem is its constantly blinking, like its refreshing with every second or frame or something. Then i transfered it to my phone and theres no change. I had the same problem with CS3...I attached the sample, if someone cares to see...Please can somebody help me??? Thank you!

I think (at a first look) that you should put a stop() command at each frame of your movie.
Playhead is running through your movie from one frame to another and back to beginning if you don't stop it with stop() command.
What I mean is:
in frame one of your movie put ActionScript: stop();
in frame two of your movie put ActionScript: stop();
etc.
If navigation through your movie is linear, like some animations then don't put this AS in frames, but it seems to me that this will solve your problem.
For more (if this isn't helping) upload your movie along with ActionScript.

Similar Messages

  • Problem with jar file please help!!

    Hi everybody
    I make a jar file using Jbuilder;my application interact with oracle and when i try to run it ,I get the following message:
    "no driver was found "
    however i add the oracle driver in my jar file as a library dependencies.
    could some one help

    I don't know whether this will help you or not.
    You have mentioned that drivers are added into jar file which you have created. Similar situation I faced. In my case I added classes12.zip for ORACLE thin drivers. For this to work I had to set classpath for this zip file. Once I set the classpath for this zip file my application started working fine.
    So if you are using any zip or jar file for your driver you will have to define it in your classpath.
    Mushy

  • Weirdest problem with ipod!PLEASE HELP ME!!!

    Okay, i tried to load a playlist that had about 100 songs on it. While its loading, the update just stops. My ipod starts going crazy.The apple logo keeps lighting up and then the light doesnt come on but the logo is still there. You can hear the inside of it like trying to come on but then it just keeps doing the same thing til the battery life runs out! I really need help on this! I've tried to reset but everytime I do it it just keeps doing the same thing. I dont know if i should wipe all my songs off of itunes or what but im so confused and so aggravated with it. PLEASE HELP ME! I'D REALLY APPRECIATE IT!
      Windows XP  

    Welcome to Apple Discussions!
    See if any of these help...
    iPod Only Shows An Apple Logo and Will Not Start Up
    iPod Only Shows An Apple Logo
    btabz

  • Having problems with Frontrow. Please help!

    Hi,
    i've been trying to figure this out all day today but i haven't found any solution. hopefully you Mac Geniuses can help. now, my problem isn't that my videos won't play, because they do. they all play perfectly. okay, so when i launch Frontrow, all my video files appear under their respective folders; my TV Shows appear under the TV Shows folder and my Music Videos appear under the Music Videos folder. however, for some strange reason, these files also want to appear under the Movies folder. That means they're showing up twice! -under the Movies folder and TV Shows/Music Videos. is there anyway to fix this, because it's really cluttering my Movies folder and i admit i'm a really anal neat-freak.
    Also, i have correctly labeled the video files as Movie, TV Show or Music Video under iTunes. Everything is organized well under iTunes, so i doubt it's that.
    please help!!
    Message was edited by: ec84

    It might be because with the new update, it seems as though anything stored in the MOVIES folder , shows up under movies in Front Row. I have a folder of Transformers AVI'S in my movie folder, now it shows up in the movie directory of front row

  • URLClassLoader - with JAR Files- - - Please Help

    Hi all,
    I have two seperate JAR files which contain same files but different progressive versions.JAR 1 is version V1 and JAR 2 is Version V1.1
    I have a program which loads classes from these two JARS and runs certain comparsions on them.CODE IS SHOWN and SO is ERROR.PLEASE HELP and ADVISE.Im on a UNix box using JDK 1.3.
    CODE:
    ====
    1.In my main i define the TWO JARS PATHS and the item to compare called ENTITYNAME as:
    String jarFile1 = "/xenv/GFINet_Java/6.2_Z1/1.3.X/gfinet_entities.jar";
    String jarFile2 = "/xenv/GFINet_Java/6.1_Y1/1.3.X/gfinet_entities.jar";
    String entityName = "gfinet.entities.GFIBasketEntity";
    2.Then i call the function
    EntityVersionComparator evc = new EntityVersionComparator();
    evc.test(jarFile1, jarFile2, entityName);
    3.Test function loads the JARS
    private void test(String jarFile1, String jarFile2, String entityName) throws Exception {
    URLClassLoader jar1 =
    (URLClassLoader)newClassLoader(jarFile1);
    URLClassLoader jar2 =
    (URLClassLoader)newClassLoader(jarFile2);
    4. Load that item ENTITYNAME FROM JAR.
    // load GFIBasketEntity from Jar1
    GFIBaseEntity ent1 =
         (GFIBaseEntity)loadClass(jar1, entityName).newInstance();
    PROBLEM ERRORS:
    ==============
    Exception in thread "main" java.net.MalformedURLException : no
    protocol :/xenv/GFINet_Java/sun4/6.2.Z2/Solaris8/3.3.2/1.3.X/lib/gfinet_entities.jar
    at java.net.URL.<init>(URL.java:473)
    at java.net.URL.<init>(URL.java:376)
    at java.net.URL.<init>(URL.java:330)
    at EntityVersionComparator.newClassLoader(EntityVersionComparator.java:143)
    at EntityVersionComparator.test(EntityVersionComparator.java:88)
    at EntityVersionComparator.main(EntityVersionComparator.java:74)
    WHATS GOING ON..Is there something wrong with the path?Pls advise
    jason

    I also in my CODE have:
    private ClassLoader newClassLoader(String path)
    throws MalformedURLException
    { URL url = new URL(path);
    return new URLClassLoader(new URL[]url);

  • Problem with long report - please help

    We are using crystal report with ASP.NET/C# (Visual Studio 2005).
    Using Crystal report viewer control on the web page to have previews.
    A particular report is for say 6000 pages. I can not preview the report on the web page.
    I have the following questions:
    1. Does it make sense to think of previewing such a huge report on web page?
    2. What should be the alternate?
    3. I tried "Export to PDF" technique, but it failed.
    Thanks in advance for your help.
    Regards,
    Kangkan

    I tried to use exportToPDF technique. It works when the number of page is less. But just hangs up when the number of pages is high. I am working on finding the breaking number.
    There is no problem with HD space as well.
    I also tried to print the report to a printer on the server directly. I used the printer as "Adobe PDF" to use Acrobat Distiller to create the PDF. It starts up and asks for the destination for the PDF file also. Once it starts the system shown an error and the Microsoft Feedback Assistant for failed application comes up.
    I am now trying to print the pages to a network printer connected to the server. Shall get back with latest update after sometime.
    Please do look into other possibilities or points where I might have committed an mistake.
    Thanks and regards,
    Kangkan

  • Problem with my OC4J, please help

    Hi
    i have one big problem with my OC4J Application Server: i create an instance, then i deployed my appliation with the .ear file. i have 15 page uix. my problem is when i want to see my application from the browser, some of the page run correctly ans some other no; in other world the one that don't run, in reality it run but it display the last one that run correctly.
    i hope that i m celar.
    can you help me.
    Thank you

    Islem,
    Please post your log file content as well as server version, OS etc. (see:
    http://forums.oracle.com/forums/ann.jspa?annID=818-Michael

  • Problem with PWM signal, Please Help!

    Hi all,
    I am designing a PWM signal where its output is going to connect 4 optocouplers to drive a H-bridge MOSFETs. However, I am now having a problem of getting an output signal strong enough to drive the optocoupler. 
    I have attached the Multi-Sim file along with this post. Please feel free to help me to solve this problem thank you.
    The version of Multi-Sim I am using is 10.0.144
    Attachments:
    PWM_HCPL0631.ms10 ‏72 KB

    Hi Justin,
    I am slightly confused as to whether this is a problem with Multisim or the design of your circuit.  Are the components in Multisim behaving in an unexpected manner in comparison to their real-world counterparts?
    Regards,
    Thomas Clark
    Applications Engineer
    National Instruments UK & Ireland

  • Activation problems with Cingular. Please help very frustrated

    Ok, here is the deal, I live in Orlando, FL most of the time, but I am in Michigan and I bougt 2 iphones today, that was 1000 bucks, plus 200 in security deposits. I went to cingular, payed the deposit, and now that im at home, i cant register the product. I have been on the phone with cingular suppost getting different reasons why i cant answer but i still want to check it out here. Im getting an address verification problem. The guy is saying that when we payed the sucurity deposit, we put our florida market address on file with the Pre Approved Credit Check Number. THere saying our sim cards are michigan sim cards, and its not letting me register because of the sim cards are not in the same market as the credit check number. I tunes keeps giving me an error of address though. Is anyone receiving this same problem? The error is saying that they cannot verify the address on file, as the address that im typing in, even though it is the same address. We tried changing everything to michigan, and still got the same problem. We changed the address on the credit check number, and the address that im trying to register in michigan.
    Please Help
    Rodd,
    Thanks guys
    You can only imagine that im upset not being able to even power the thing up. It wont let you go past the emergency call feature since its not activated.
    *****

    Heres what you have to do Rodd...I used to be a RSM for Cingular.
    First you need to cancel your first activation because your sim cards have been set up with activation in Michigan you will get a Michigan area code, prefix, etc. If you did not set it up with the exact are that you paid the deposit in, then you will not be able to activate it.
    Ex: if I live in Texas, but want a California number, I have to go to Cali and set up my account, and then come back to Texas and I will have my Cali number while living in Texas.
    If you tried to set it up wrong to many times it flags your account.
    Either go back to the store you got them in and pay the security deposit again, or go to the closest ATT store in the area you would like to have your area code, prefix, etc. in.
    Example: if you want a Michigan number, then go to Michigan..and set up your account all in the same place that you want your number....Billing addresses can be different but the activation address will be where the iPhone number is given from.
    Hope this helps..God bless

  • I suppose it is the problem with socket connection,Please help

    Hi,
    I'm trying to build a chat server in Java on Linux OS.I've created basically 2 classes in the client program.The first one shows the login window.When we enter the Login ID & password & click on the ok button,the data is sent to the server for verification.If the login is true,the second class is invoked,which displays the messenger window.This class again access the server
    for collecting the IDs of the online persons.But this statement which reads from the server causes an exception in the program.If we invoke the second class independently(ie not from 1st class) then there is no problem & the required data is read from the server.Can anyone please help me in getting this program right.I'm working on a p4 machine with JDK1.4.
    The Exceptions caused are given below
    java.net.SocketException: Connection reset by peer: Connection reset by peer
    at java.net.SocketInputStream.SocketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:119)
         at java.io.InputStreamReader$CharsetFiller.readBytes(InputStreanReader.java :339)
         at java.io.InputStreamReader$CharsetFiller.fill(InputStreamReader.java:374)
         at java.io.InputStreamReader.read(InputStreamReader.java:511)
         at java.io.BufferedReader.fill(BufferedReader.java:139)
         at java.io.BufferedReader.readLine(BufferedReader.java:299)
         at java.io.BufferedReader.readLine(BufferedReader.java:362)
         at Login.LoginData(Login.java:330)
         at Login.test(Login.java:155)
         at Login$Buttonhandler.actionPerformed(Login.java:138)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1722)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:17775)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4141)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:253)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:261)
         at java.awt.Component.processMouseEvent(Component.java:4906)
         at java.awt.Component.processEvent(component.java:4732)
         at java.awt.Container.processEvent(Container.java:1337)
         at java.awt.component.dispatchEventImpl(Component.java:3476)
         at java.awt.Container.dispatchEventImpl(Container.java:1399)
         at java.awt.Component.dispatchEvent(Component.java:3343)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3302)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3014)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2967)
         at java.awt.Container.dispatchEventImpl(Container.java:1373)
         at java.awt.window.dispatchEventImpl(Window.java:1459)
         at java.awt.Component.dispatchEvent(Component.java:3343)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
         at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:150)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:131)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
         My program looks somewhat like this :
    1st class definition:
    public class Login extends Jframe// Login is the name of the first class;
    Socket connection;
    DataOutputStream outStream;
    BufferedReader inStream;
    Frame is set up here
    public class Buttonhandler implements ActionListener
    public void actionPerformed(ActionEvent e) {
    String comm = e.getActionCommand();
    if(comm.equals("ok")) {
    check=LoginCheck(ID,paswd);
    test();
    public void test() //checks whether the login is true
    if(check)
    new Messenger(ID);// the second class is invoked
    public boolean LoginCheck(String user,String passwd)
    //Enter the Server's IP & port below
    String destination="localhost";
    int port=1234;
    try
    connection=new Socket(destination,port);
    }catch (UnknownHostException ex){
    error("Unknown host");
    catch (IOException ex){
    ex.printStackTrace ();
    error("IO error creating socket ");
    try{
    inStream = new BufferedReader(new InputStreamReader(connection.getInputStream()));
    outStream=new DataOutputStream(connection.getOutputStream());
    }catch (IOException ex){
    error("IO error getting streams");
    ex.printStackTrace();
    System.out.println("connected to "+destination+" at port "+port+".");
    BufferedReader keyboardInput=new BufferedReader(new InputStreamReader(System.in));
    String receive=new String();
    try{
    receive=inStream.readLine();
    }catch(IOException ex){ error("Error reading from server");}
    if(receive.equals("Logintrue"))
    check=true;
    else
    check=false;
    try{
    inStream.close();
    outStream.close();
    connection.close();
    }catch (IOException ex){
    error("IO error closing socket");
    return(check);
    // second class is defined below
    public class Messenger
    Socket connect;
    DataOutputStream outStr;
    BufferedReader inStr;
    public static void main(String args[])
    { Messenger mes = new Messenger(args[0]);}
    Messenger(String strg)
    CreateWindow();
    setupEvents();
    LoginData(strg);
    fram.show();
    void setupEvents()
    fram.addWindowListener(new WindowHandler());
    login.addActionListener(new MenuItemHandler());
    quit.addActionListener(new MenuItemHandler());
    button.addActionListener(new Buttonhandle());
    public void LoginData(String name)
    //Enter the Server's IP & port below
    String dest="localhost";
    int port=1234;
    int r=0;
    String str[]=new String[40];
    try
    connect=new Socket(dest,port);
    }catch (UnknownHostException ex){
    error("Unknown host");
    catch (IOException ex){
    ex.printStackTrace ();
    error("IO error creating socket ");
    try{
    inStr = new BufferedReader(new InputStreamReader(connect.getInputStream()));
    outStr=new DataOutputStream(connect.getOutputStream());
    }catch (IOException ex){
    error("IO error getting streams");
    ex.printStackTrace();
    String codeln=new String("\n");
    try{
    outStr.flush();
    outStr.writeBytes("!@*&!@#$%^");//code for sending logged in users
    outStr.writeBytes(codeln);
    outStr.write(13);
    outStr.flush();
    String check="qkpltx";
    String receive=new String();
    try{
    while((receive=inStr.readLine())!=null) //the statement that causes the exception
    if(receive.equals(check))
    break;
    else
         str[r]=receive;
         r++;
    }catch(IOException ex){ex.printStackTrace();error("Error reading from socket");}
    catch(NullPointerException ex){ex.printStackTrace();}
    } catch (IOException ex){ex.printStackTrace();
    error("Error reading from keyboard or socket ");
    try{
    inStr.close();
    outStr.close();
    connect.close();
    }catch (IOException ex){
    error("IO error closing socket");
    for(int l=0,k=1;l<r;l=l+2,k++)
    if(!(str[l].equals(name)))
    stud[k]=" "+str[l];
    else
    k--;
    public class Buttonhandle implements ActionListener
    public void actionPerformed(ActionEvent e) {
    //chat with the selected user;
    public class MenuItemHandler implements ActionListener
    public void actionPerformed(ActionEvent e)
    String cmd=e.getActionCommand();
    if(cmd.equals("Disconnect"))
    //Disconnect from the server
    else if(cmd.equals("Change User"))
         //Disconnect from the server & call the login window
    else if(cmd.equals("View Connection Details"))
    //show connection details;
    public class WindowHandler extends WindowAdapter
    public void windowClosing(WindowEvent e){
    //Disconnect from server & then exit;
    System.exit(0);}
    I�ll be very thankful if anyone corrects the mistake for me.Please help.

    You're connecting to the server twice. After you've successfully logged in, pass the Socket to the Messenger class.
    public class Messenger {
        Socket connect;
        public static void main(String args[]) {
            Messenger mes = new Messenger(args[0]);
        Messenger(Socket s, String strg) {
            this.connect = s;
            CreateWindow();
            setupEvents();
            LoginData(strg);
            fram.show();
    }

  • I have a problem with my microphone, please help if you can

    Hello everyone.
    I have a problem with my microphone. After i bougth Creative's sound card "Sound blaster X-Fi Xtreme Audio" and installed it, everything was allright and my microphone was working great, but this was when I used Windows XP, when i started to use Windows 7, it suddenly was very weak and i almost didn't heard it.
    Currently, I have bouth Windows XP and Windows 7 installed, so I know the microphone is working when I am switching up between the OS, because it still works good on Windows XP.
    If you can help please tell me.
    I am using Windows 7 64 bit, I made sure the flexijack settings in the Audio controll panel are set to microphone and not line in, in the Windows 7 audio controll I have set the microphone volum to maximum and made sure it is configured properly.
    Thank you for helping.

    Originally Posted by tav2000
    Hello everyone.
    I have a problem with my microphone. After i bougth Creative's sound card "Sound blaster X-Fi Xtreme Audio" and installed it, everything was allright and my microphone was working great, but this was when I used Windows XP, when i started to use Windows 7, it suddenly was very weak and i almost didn't heard it.
    Currently, I have bouth Windows XP and Windows 7 installed, so I know the microphone is working when I am switching up between the OS, because it still works good on Windows XP.
    If you can help please tell me.
    I am using Windows 7 64 bit, I made sure the flexijack settings in the Audio controll panel are set to microphone and not line in, in the Windows 7 audio controll I have set the microphone volum to maximum and made sure it is configured properly.
    Thank you for helping.
    Hi tav,
    While waiting for other forum members to post..
    Perhaps you havent installed the latest drivers yet? (link HERE)
    Cheers!

  • Problems with Boot Camp - PLEASE HELP!

    I'm having problems with Boot Camp. Here's what's happening. I ran Boot Camp Assistant, partitioning a 32GB BOOTCAMP drive. I insert my copy of XP and start the installation. My MBP restarts and boots into the Windows Setup. I let it run through the initial actions. I press ENTER to proceed, F8 to accept the license agreement, then when I get to the part where I should be able to select the Partition 3 BOOTCAMP drive (as it says in the Apple Boot Camp Manual) there is only a Partition 1 Unknown drive. It is the only drive to choose from and its a C: drive. I can't figure out why after I run boot camp the partitioned drive doesn't appear as an option in the windows installation. Please help!!!
    Message was edited by: CarlConti08

    Boot into Leo, start Disk Utility and you should see two partitions, your Leo partition and a Fat32 partition of 32GB at the end of the drive.
    If not, boot camp didn't create it for some reason. If it is there then check it with DU and make sure its OK.
    While your in there give it a name so you can easily identify it in your windows installer.
    If there is no partition, create one using Disk Utility at the END if the drive. make sure you create it as a msdos (Fat32) partition and give it a name. The name cannot be more than 11 characters must be comprised of numbers and/or letters (no special characters).
    Verify it before exiting DU.
    Put in windows install disk, reboot - hold option key after the chime until you see the boot screen - select windows CD to begin install.
    Don't forget to install Leo windows drivers after installing windows.
    Kj

  • I'm still having problems with XUL Runner - please help am getting desperate!

    I recently sought help over a problem I am having with FF. When I try and load it, I get a message telling me that XUL runner 1.9.2.11 is not compatible with 1.9.2.12. The advice I received was to do a clean install. I have done this a number of times - using the Uninstall option in Control Panel as well as running the uninstall utility in the Firefox program folder. Each time I reinstall, and get the same problem. The only difference is that a few days ago I was installing FF 3.6.10, and that gave the error message that XUL runner 1.9.2.11 was not compatible with 1.9.2.10.
    I have FF set as my default browser, so when I click on links in e-mails, etc. I get the same failure to load symptoms. However, I found by chance that FF works OK in conjunction with System Mechanic 10 - a maintenance utility I have on my machine. If I select the on-line help option from that Menu, FF loads and runs OK. I can open new tabs and have no problem loading other pages. However, even with FF open, if I click a link in an e-mail, I get the XUL Runner error message.
    Although not all symptoms are the same, I am also having problems with IE8. When I run the program it loads, shows a 'connecting' message in the tab header, then closes. If I uninstall FF, then System Mechanic selects IE8 as the default browser, and as with FF, loads OK.
    Chrome and Safari both run OK (thankfully). there must be someone out there who knows what this all points to - is that person you?!
    Note: Trouble shooting information retrieved using FF when opened with System Mechanic.

    If you have such problems then you need remove the Firefox program folder before installing a new copy of the full Firefox installer.
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.

  • PROBLEM WITH NEW ROW  --- PLEASE HELP

    Hello,
    I've had it with the framework. It's been 20 hours and counting that I am trying to insert/validate a new record.
    Things just don't work as advertised.
    Here's the situation:
    I have an entity object with various validation rules in the validate() method.
    Then I have a simple JSP page to insert new records.
    At submit of button, I follow the framework's default
    create new row and fill it up, with the difference
    that i need to validate the row as soon as I fill it up
    with data from the http request:
    <jbo:OnEvent name="Create">
    <jbo:Row id="newrow" datasource="ds" action="CreateInRange" >
    <% try { %>
    <jbo:SetAttribute dataitem="*" />
    <%
    newrow.validate(); //******* NOTICE HERE THAT I VALIDATE
    } catch (JboException ex) {
    newrow.remove();
    throw ex;
    } %>
    </jbo:Row>
    </jbo:OnEvent>
    Unexpected behavior 1: If the validation fails,
    newrow DOES NOT GET REMOVED!!!! I know this
    since when I view data thru a data table component,
    the row is there WITH THE ERROR INFORMATION set!!.
    If I do a commit transaction, then the erroneous information ENDS UP IN THE DATABASE!!!!!
    Unexpected behavior 2: If I do a rollback, every
    call to subsequent pages results in a jsp error:
    java.lang.ClassCastException: oracle.jbo.html.jsp.datatags.OnEventTag
    PLEASE HELP.
    Chris Lambrou

    I have (hopefully) found a solution to my part of this problem. I was getting the ClassCastExceptions on any page with a <jbo:row> tag after doing a failed DML action. I have tested this with the delete event. (btw, I am using jdev9.0.3.3 w/ BC4J/JSP) Before what I was doing was this:
    <% try { %>
    <jbo:Row id="delrow" datasource="ds" rowkeyparam="jboRowKey" action="Delete" />
    <% } catch (JboException jboEx) { %>
    do something
    <% } catch (Exception ex) { %>
    uh-oh, this is bad
    <% } %>
    If I removed the try/catch block everything worked fine. Unfortunatlely, I need to try/catch block here. To work around the problem I changed the code to this:
    <% Row rowDelete = ds.getRowFromKey(params.getParameter("jboRowKey")); %>
    <% try { %>
    <%
    rowDelete.remove();
    %>
    <% } catch (JboException jboEx) { %>
    do something
    <% } catch (Exception ex) { %>
    uh-oh, this is bad
    <% } %>
    The second bit of code does the same thing (but it doesn't use a bean like I think <jbo:Row> does) and it doesn't cause the ClassCastError on subsequent errors.
    I really hope this helps someone else because it took me forever to get a workaround!
    ~Rob Lundeen

  • Problem with while loops, please help!

    I am having quite a bit of trouble with a program im working on. What i am doing is reading files from a directory in a for loop, in this loop the files are being broken into words and entered into a while loop where they are counted, the problem is i need to count the words in each file seperately and store each count in an array list or something similar. I also want to store the words in each file onto a seperate list
    for(...)
    read in files...
         //Go through each line of the first file
              while(matchLine1.find()) {
                   CharSequence line1 = matchLine1.group();
                   //Get the words in the line
                   String words1[] = wordBreak.split(line1);
                   for (int i1 = 0, n = words1.length; i1 < n; i1++) {
                        if(words1[i1].length() > 0) {
                             int count= 0;
                                           count++;
                             list1.add(words1[i1]);
              }This is what i have been doing, but with this method count stores the number of words in all files combined, not each individual file, and similarly list1 stores the words in all the files not in each individual file. Does anybody know how i could change this or what datastructures i could use that would allow me to store each file seperately. I would appreciate any help on this topic, Thanks!

    Don't try to construct complicated nested loops, it makes things a
    tangled mess. You want a collection of words per file. You have at least
    zero files. Given a file (or its name), you want to add a word to a collection
    associated with that file, right?
    A Map is perfect for this, i.e. the file's name can be the key and the
    associated value can be the collection of words. A separate simple class
    can be a 'MapManager' (ahem) that controls the access to this master
    map. This MapManager doesn't know anything about what type of
    collection is supposed to store all those words. Maybe you want to
    store just the unique words, maybe you want to store them all, including
    the duplicates etc. etc. The MapManager depends on a CollectionBuilder,
    i.e. a simple thing that is able to deliver a new collection to be associated
    with a file name. Here's the CollectionBuilder:public interface CollectionBuilder {
       Collection getCollection();
    }Because I'm feeling lazy today, I won't design an interface for a MapManager,
    so I simply make it a class; here it is:public class MapManager {
       private Map map= new HashMap(); // file/words association
       CollectionBuilder cb; // delivers Collections per file
       // constructor
       public MapManager(CollectionBuilder cb) { this.cb= cb; }
       // add a word 'word' given a filename 'name'
       public boolean addWord(String name, String word) {
          Collection c= map.get(name);
          if (c == null) { // nothing found for this file
             c= cb.getCollection(); // get a new collection
             map.put(name, c); // and associate it with the filename
          return c.add(word); // return whatever the collection returns
       // get the collection associated with a filename
       public Collection getCollection(String name) { return map.get(name); }
    }... now simply keep adding words from a file to this MapManager and
    retrieve the collections afterwards.
    kind regards,
    Jos

Maybe you are looking for