Background Loop Problem.

Hey all,
I'm working on a flash game with a movie clip that is constantly looping always displayed on the screen.
Unfortunately every time the image in the animation changes, the screen very noticably stutters. It's like every time a new image in the animation is loaded it causes considerable slow down.
I've tried a lot of things including Lowering the quality of all the images involved to 0. The images are PNG graphics with transparencies , but no transparency settings or display options were added in flash.
Is it wrong to have slapped a continuously looping movie clip on stage? What are my alternatives?
This slowdown occurs when run on Iphone touch, not on my PC
Flash CS5.5
Sorry, I'm a little inexperienced but I hope I've made the problem clear.
Thanks in advance guys,
Mark

because mobiles are such weak computing devices, it is easy to overwhelm their cpu/gpu.
that said, optimizing your code for use on mobiles can lead to dramatic differences.  in addition, cs6 produces much better perfoming iApps than cs5.5 (which was much better than cs5).
so, the simplest thing to do is use cs6.  otherwise, you'll probably need to learn some optimization techniques.  here's a good place to start:  http://help.adobe.com/en_US/as3/mobile/flashplatform_optimizing_content.pdf

Similar Messages

  • What is the best way to make a background loop ?

    Hi guys,
    I have another problem.
    Can I know what is the best way to put a background loop ?
    The background video loop I purchased is only 5 seconds. In Movie Maker, I just hold the end of the clip on the timeline & drag it longer & the background video will go back to the beginning once it reached the end of the 5th sec.
    Do I copy & paste & repeat the clips on the timeline as I don't seem to be able to pull it once it reach 5 secs long.
    Thanks

    Copy and paste.

  • Not the usual 'login loop' problem, help.

    The login loop problem I'm facing is not the usual login loop problem when starting up mac; it's when I'm trying to log into websites or applications (most of them, eg. facebook, instagram).
    I have tried:
    using other browsers: Safari, Firefox, Maxthon, Chrome
    clearing all cookies / caches / keychains / passwords
    repairing disk
    deleting launchservices cache
    using other userid to login
    All to no avail.
    How do I solve this without having to reformat/install mac?
    Thank you.

    Hi, are you using Parental contrils or a managed account, or an admin account?
    Using any Anit-Vrus software?

  • Trying SSH CLI ,  reading command line method is infinte loop problem!

    I am trying excute command and reading result. but reading result part has problem.
    below source is a part of my method.
    try{
                   SessionChannelClient sessionChannel = ssh.openSessionChannel();
                   sessionChannel.startShell();
                   OutputStream out = sessionChannel.getOutputStream();
                   String cmd = s + "\n";
                   out.write(cmd.getBytes());
                   out.flush();
                   InputStream in = sessionChannel.getInputStream();
                   BufferedReader br = new BufferedReader(new InputStreamReader(in));
                   byte buffer[] = new byte[255];
                   String read= "";
                   while (true) {
                        String line = br.readLine();
                        if (line == null)
                             break;
                        str += line;
                        str += "\n";
                   System.out.print(str); //print result
                   sessionChannel.close();
                   in.close();
                   out.close();
              }catch(IOException ee){
                   System.out.println(ee);
              }finally{
                   System.out.println("=============end cmd=============");
    while loop has problem. While statement has infinite loop problem.
    why has this problem?
    anybody, help me please. Thanks for reading .
    Edited by: BreathAir on Aug 5, 2008 12:16 AM

    That loop will loop until readLine() returns null, which will only happen when the other end closes its end of the connection, and it will block while no data is available.

  • My iPod can not play high volume and has crackling a scratchy noise in the background. hardware problem?

    my iPod can not play high volume and has crackling a scratchy noise in the background. hardware problem?

    It is a hardware issue e.g. bad contact between the earphone jack the earphone plug
    Consider setting up a mail-in repair for your iPod http://depot.info.apple.com/ipod/
    Or visit your local Apple Retail Store http://www.apple.com/retail/
    In case your iPod is no longer covered by the warranty and you want to find a second repairing company, you can try iPodResQ or ifixit at your own risk
    http://www.ipodresq.com/index.php
    http://www.ifixit.com/

  • Sony D-50 "boot-up loop" problem

    I have a Sony D-50 portable recorder barely three months old that did something totally strange. Has anyone else had this problem?
    During a shoot yesterday, I noticed that the Sony D50 I bought back in August would not turn OFF.
    When I moved the power switch to the OFF position, the machine went into a "boot up loop," that is:
    I'd turn it OFF after recording.
    Screen goes black.
    I get the "See you!" message.
    Screen lights up again.
    The word "SONY" appears as though it's gonna boot up,
    Then the whole process starts over again
    Screen goes black.
    I get the "See you!" message.
    Screen lights up.
    The word "SONY" appears as though it's gonna boot up....
    So, same thing late last night.
    I get up this morning and turn it ON; it works fine until I turn it off, then it goes back into the "boot loop" thing again.
    I tried everything I could think of, even searching for a "RESET" on the machine and in the Menu. I finally had to take the batteries out of it to shut it down.
    Then, I did something that apparently---so far---fixed it.
    This is so strange---right out of the Twilight Zone:
    I put the batteries back in it, then it starts the loop again.
    Since it won't turn OFF, I take the batteries out of it in the OFF position. I wait five minutes and put the batteries back in it with it in the OFF position.
    Same problem---the "boot up loop" thing.
    I take the batteries back out of it again in the OFF position and wait fifteen minutes. I put the batteries back in it while it's still in the OFF position. Guess what?
    Problem solved: It's doesn't start the "boot up loop" thing.
    So, I turn it back ON. Machine boots up fine and is ready to record.
    OK, I turn it OFF.
    Back to the exact same problem---It shuts down and goes into the "boot up loop" again.
    I go back through the same process of removing and installing the batteries with the machine in the OFF position.
    Nothing changes.
    Then, I have an idea.
    With the machine in the OFF position and going through the "boot up loop" thing, I remove the batteries.
    I then move the power switch to the ON position before I put the batteries back in it---had not tried that before: reinstalling the batteries with it in the ON position. I install the batteries with the machine in the ON position.
    Machine boots up fine and is ready for recording.
    Now, I turn it OFF.
    The machine shuts down fine with no "boot up loop" problem.
    Putting the batteries back in the machine with it in the ON position instead of the OFF position apparently solved the problem.
    So, I turn it back ON and then OFF several times.
    Same thing: No "boot up loop" problem.
    Do-do-Do-do....
    The machine now works fine.
    Anyone ever had this happen to a Sony D-50?
    I'm wondering if I should send it to back to Sony before it does this again. For God's sake, it's only three months old!
    I bought it after rave reviews in the "recorder" community, and I haven't found anyone else who has had this problem with one..

    Sorry to see that you were having this issue with your PCM-D50 Linear PCM Recorder - if you continue having the issue the unit may need service - give Sony Business and Professional team a call and they will be happy to assist:
    http://pro.sony.com/bbsc/ssr/services.s ... port.shtml

  • Possible solution to "Looping" problem

    Hello all, I've read several threads here dealing with a "looping" problem, I'm not sure what the ins-and-outs of this issue is but it seems to affect many different config and different manufacturers are blaming each other... check out the link below (mind the wrapping) for what might be a real solution at the Via forums. I happened upon this because I could not get a stable system out of my MSI via-km266 mobo with dual display.
    http://forums.viaarena.com/messageview.cfm?catid=25&threadid=9263&highlight_key=y&keyword1=dual%20display
    Alpay Eno

    What is the problem? Let the filters return a List instead of an array. Am I missing something?
    Kaj

  • Two transactions, same program, processed in background task problem

    Y0 Team ABAP,
    i got something here that bugs me.
    I have done a report. Nothing special, simple selection screen, selection of data, and output via SALV.
    One of my selection screen fields (a parameter) is VKBUR and it is "obligatory".
    2 weeks ago i got the requirement to create a copy of this program, and adopt VKBUR as select option.
    Since i didnt want changeanomalies i decided not to duplicate the program, but just add a second transaction to my program.
    In a routine at event at-selection-screen output, i´m hiding either the parameter or the select option, depending on which tcode was used.
    In some routine which gets triggered at the event at-selection-screen i´m moving either what we got in our parameter to our local range we use for the select, or just assign the select option to our local range, or process an error message if according field is not filled. Yeah that obligatory condition is done by myself since i cant just set the obligatory addition to the statement.
    This all works quite fine so far.
    BUT:
    Today i hear that the end-users process that report in background task by pressing F9.
    Problem is now that when it is processed in background task, sy-tcode is initial, so i dont know which of the transactions the user picked, and so i dont know which of the two fields has to be filled.
    Sure i could do another report, containing just my second selection screen, and when this is checked, do a submit on my real report, tho i still believe there must be some more elegant way.
    Any ideas?

    Unfortunateley those subtotals cant be handeled by the layout, thats why i manually add them.
    But you got me back on track! right now i´m for your solution.
    right now i´m having just ONE selection screen with the select option on it.
    User can decide if he fills just one value or more.
    In the end i loop over my output table and look if there are records of different VKBUR´s.
    If there are i know he wants subtotals and process them. If its just data of one VKBUR i can spare myself the hassle as there is anyway just one records per VKBUR so subtotaling this wouldnt make sense.
    thanks. Thats what i will present my consultant now lets see if i can get him satisfied with it...

  • Background Music Problem - "Not Authorized on this computer"

    I m stuck in a loop and hope that somebody here has an idea how to help. I just bought a new iMac and transferred my music library over from my old computer using the migration assistant. I authorized the new computer in iTunes and all the music plays without a problem. However, when I try to add music from my iTunes library as a background track over video, I get an error message saying that I am not authorized to play the music. It then directs me to iTunes to authorize the computer but that tells me that I AM authorized.
    So far, I have spoken with the iTunes department who tell me it is a problem on the iMovie side and the iMovie folks who direct me back to the iTunes department. If anyone has any idea how to solve this problem, I would greatly appreciate it. I'm running the latest version of both apps.
    Thanks

    Hi
    My list on this - may be of help.
    *No Audio*
    Most common origin is use of audio from iTunes.
    Work around -
    • Select needed audio to one new playlist
    • Copy out this as an Audio-CD .aiff (not .mp3)
    • Use this in the movieproject
    Other origins are
    1. strange/ailient file formats as -
    • .mp3, .avi, .wmv etc
    • Convert them into .aiff 48kHz 16-bit and use this
    2. the Mac is set wrongly in regard of midi -
    • Close iMovie and other programs
    • Start GarageBand
    • Make a new GB-project and play some notes
    • Close GB and Save
    • Now try iMovie again
    3. No audio when playback in iMovie 1 to HD 6.
    a. in iMovie pref - deselect ”Playback via Camera”
    b. in System preferences - see that Audio out is not set to zero. Mine often does this
    without me knowing why.
    Stuttering audio and video
    1. FileVault is ON - Turn it off
    2. More than 50 audio files in a movie-project
    Mix down to one audio clip
    3. Project is stored on one (USB) external hard disk - should be a FireWire one
    4. the External hard disk is not Mac OS Extended formatted - but
    UNIX/DOS/FAT32/Mac OS Exchange and this will not work for Video.
    5. To little free space on internal boot hard disk.
    I go for a minimum of 25Gb free space when project is imported and edited and this goes for
    4x3 SD Video. For 16x9 HD my guess would be about 5 times more at least.
    Neither Mac OS, iMovie or iDVD can address any other hard disk than the boot drive for it’s
    scratch files. (Unlike Final Cut Express/Pro where You select scratch disk/s)
    6. Network storage - DOESN’T WORK
    Yours Bengt W

  • Game center registration loop problem

    I have tried to reigister for the game center with my Apple ID and the message that the Apple ID has not been used in Game center... I tap continue. I enter my location, then my date of Birth.
    After this I get the same message again. "This Aplle ID has not yet been used in Game center" and i'm asked to enter my location again and then DOB and then I go back to the same message. I can't get past this loop.
    (I have tried turing up phone off and on again, and it still does not work)
    can any one help me ?

    I had exactly the same problem on my sons ipod 4th gen.
    I tried logging on using my phone and it worked fine.

  • ALV report run in background creates problem

    hi All,
    i have a ALV report which works fine in foreground but when i run the report in background
    (Execute in beackground option) the job always gets cancelled.
    As i was thinking that its due to quantity and currency field i passed the below parameters inMY FIELD CAT
    w_fieldcat-CFIELDNAME  =  p_001.
       w_fieldcat-CURRENCY    = 'WAERS'.
    w_fieldcat-CFIELDNAME  =  p_001.
        w_fieldcat-QUANTITY    = 'MEINS'.
    Still the job gets cancelled always , can anybody help me with this issue?
    Please give some useful suggestions?

    Hi Bhanu
    After populating the Grid/List elements, may be you were using 'REUSE_ALV_LIST/GRID_DISPLAY' function module.
    As some Function Modules will give problems in background execution,please call the same function module using CL_GUI_ALV_GRID => REUSE_ALV_LIST_DISPLAY for some cases it is the good solution.
    Regards,
    Sreeram Kumar.Madisetty

  • Background job Problem

    Hi,
    I scheduled a Program for background job running for every 10 minutes.
    When i go to SM37  I am seeing all the background jobs, it is creating a newline for every 10 min in the list.
    my problem is , Is there any settings to change for showing only one job that means over writing the old job and show the latest job.
    Thanks in advance,
    fractal

    Assuming that intention is to monitor jobs that are either failed or active, you can deselect rest of the radio buttons at the selection screen so as to see failed / active jobs.
    Other than this, I dont think there is any solution / way to do this.

  • Infinite loop problem

    Hi there,
    This is the second time I have posted this problem, as the last solution I was offered did not seem to work. Here is the problem:
    I have written a method to search through a text file for a word and replace it with another word. That word can either be on its own in the document or as part of another word. So, if the search word was "foot" and the replace word was "dog", the word "football" in the document would become "dogball".
    This method works fine, except for when the replace word is the same as the search word. Basically, if someone searched for "dog" and wanted to replace it with "dog dog" or even just "dog", the program goes into an infinite loop. I understand why it is doing this, but I don't know how to prevent it from happening.
    Now, to make it worse I have to stick to this array style structure and method of solving the problem. I know there is a way to do this by building temporary strings and then concatenating them at the end and returning them to their previous position in the array. The reason I know this is because a friend of mine has managed it. She also happens to be a girl.
    So, I am asking you all to assist in defending men's intelligence by helping me see where I am going wrong in this method. Please.
    Here is the method:
    // Search the document for a string and replace it with another string        
         public String [] SearchReplace() {
              // Declare variables to be used in the method
              String SecondSubstring;
              String FirstSubstring;
              int ReplaceNumber = 0;
              // Loop through the lines of text stored as strings contained in the array
              for (int i = 0; i < NumberOfLines; i++) {
                        // As long as the string contains an instance of the search string, run the method                    
                        while (StrArray.indexOf(SearchW) >= 0) {
                             // Make a string of all the characters after the search word
                             SecondSubstring = StrArray[i].substring(StrArray[i].indexOf(SearchW) + SearchW.length());
                             // Make a string of all the characters before the search word
                             FirstSubstring = StrArray[i].substring(0, StrArray[i].indexOf(SearchW));
                             // Concatenate FirstSubstring with the replace word to make a new string
                             String FirstHalf = FirstSubstring.concat(ReplaceW);
                             // Concatenate the new string with SecondSubstring to make the whole replaced string
                             String FullString = FirstHalf.concat(SecondSubstring);
                             // Put this altered string back to its original place in the array
                             StrArray[i] = FullString;
                             // Increment ReplaceNumber to count the replacements made
                             ReplaceNumber++;
              // Print the numbers of replacements made
              System.out.println("\nA total of " + ReplaceNumber + " changes made.\n");
              // Display the searched and replaced contents of the file
              return StrArray;
    Any suggestions, pointers or solutions would be much appreciated.
    Thanks very much.

    Doing it the "old fashioned" way:
    You need to keep track of a "from index" so you don't search through parts of the string you've already replaced:
           public static void main(String args[]) {          
              try {     
                   String[] lines = new String[] {
                        "the dog went up the dog hill",
                        "all dogs go to dog heaven",
                        "the dogball takes place on 3rd april"
                   lines = replace(lines, "dog", "dog dog");
                   for (int i = 0; i < lines.length; i++) {
                        System.out.println(lines);
              } catch (Exception e) {
                   e.printStackTrace();
         private static String[] replace(String[] lines, String searchWord, String replaceWord) {
              if (searchWord.equals(replaceWord)) return lines; // nothing to do          
              for (int i = 0; i < lines.length; i++) {
                   int fromIndex = 0; // from index to do indexOf
                   String line = lines[i];
                   while (line.indexOf(searchWord, fromIndex) != -1) {
                        final int index = line.indexOf(searchWord, fromIndex);
                        line = line.substring(0, index) + replaceWord + line.substring(index + searchWord.length());
                        fromIndex = (line.substring(0, index) + replaceWord).length();
                   lines[i] = line; // replace
              return lines;

  • Do while loop problem

    I have a problem with do while loop. I am displaying a dialogue box where a person should enter the type of quiz he had performed. The problem is that the user should enter only the following 3 words, either "Earthquakes" or "Place" or "Animals". If the user enters any other word, he/she should be displayed wwith another message saying "Invalid". This should keep repeatinf (i.e. displaying invalid) until the user enters either of those 3 words. When a user enters one of those words it will stop diplaying "Invalid". I tried doing this, but altough it displays "Invalid" when a user enters an invalid word, it will display invalid also when a user neters the correct word. I think i have something wrong with the loop.
    This is the code:
         String player = JOptionPane.showInputDialog(null, "Enter name");
                 String type = JOptionPane.showInputDialog(null, "Enter your quiz type");
                do
                    type = JOptionPane.showInputDialog(null, "Invalid entry. Try again." );
                 while (type != "Earthquakes"  || type != "Place" || type != "Animals" );

    Yeah thats a good idea, but i'm still a beginner and i'm still new to some things. I got a problem, because altough the while loop is working correctly, however the first time i enter a word even if its correct its still displays invalid. I think that thats a property of the while loop. So can someone pls tell me how can i change this loop and use another loop that wouldn't do this. Can i use perhaps a for loop instead here? Thanks a lot.
    String player = JOptionPane.showInputDialog(null, "Enter name");
              String type = JOptionPane.showInputDialog(null, "Enter your quiz type");
                  do {
                      type = JOptionPane.showInputDialog(null, "Invalid entry. Try again." );
                   } while(!type.equals("Earthquakes") && !type.equals("Places") && !type.equals("Animals"));
                Edited by: datax on Feb 21, 2008 10:46 AM

  • While loop problem

    I have a problem with a while loop in this code and it is really holding me up doing my degree. I can see nothing wrong with it but perhaps someone here can help. I would be really greatful if someone could. I have commented the line where the while loop starts about a third of the way down the code.
    Thanks
    Michael
    if (ae.getSource()==client_open)
    int row=0;
    check=true;
    row=client_listing.getSelectedRow();
    try
    System.out.println("information[row][1] is "+information[row][1]);
    if(information[row][1]!=null) //if the index is not null. Comment out this if statement to troubleshoot
    try
    InetAddress inet=InetAddress.getByName(information[row][1]);
    //Create a client socket on the listeners machone on port 7070
    client_socket=new Socket(inet,7070);
    System.out.println("Client port open on 7070 ");
    //Get the output as well as the input streams on that socket
    BufferedOutputStream out=new BufferedOutputStream(client_socket.getOutputStream());
    BufferedInputStream br_socket=new BufferedInputStream(client_socket.getInputStream());
    XMLWriter writer=new XMLWriter();
    writer.requestFString("SHOWFILES"," ");
    String file_data=writer.returnRequest();
    byte file_bytes[]=file_data.getBytes();
    int file_size=file_bytes.length;
    byte b[]=new byte[1024];
    // The methos takes a byte array and it's length as parameters and return
    // a byte array of length 1024 bytes....
    add_on upload=new add_on();
    System.out.println("Class of add_on created sucessfully");
    b=upload.appropriatelength(file_bytes,file_size);
    out.write(b,0,1024);
    /*An output stream is also initialised. This is used to store all the response
    from the listener */
    BufferedOutputStream out_file=new BufferedOutputStream(new FileOutputStream("response.xml"));
    int y=0;
    byte f[]=new byte[32];
    System.out.println("Entering while loop");
    //This while loop is not working. Any ideas. It just hangs here
    while((y=br_socket.read(f,0,32))>0) //the socket input stream is read
    out_file.write(f,0,y); //written on to the file output stream, y bytes from f start @ ofset 0
    out.close();
    br_socket.close();
    out_file.close();
    System.out.println("Exited while loop and closed streams");
    catch(Exception e)
    client_socket=null;
    check=false;
    System.out.println("Didnt enter try");
    try
    client_socket.close();
    catch(Exception e)
    System.out.println("Error occuered "+e.getMessage());
    row=0;
    if(check) //If the exception occurs then do not come here
    Vector parameters=new Vector();
    // A class SParser is also used here this class has a function/method of
    // the name perform which calls the xml parser to parse the xml file
    // generated by the response from the client soket...
    // the function perform returns a Vector which has the files/directories,
    // along with their flag information and size in case of files....
    SParser sp=new SParser();
    System.out.println("SParser object created sucessfully");
    parameters=sp.perform("response.xml");
    System.out.println("Parsing finished ");
    // The vector value returned by the xml parseris then passed as one of
    // the parameters to a class named file_gui this class is responsible for
    // displaying GUI consisting of a table and some buttons along with the
    // root information and flag..
    // Initially since the class is called for the first time the parameter
    // for the root is given the name "ROOT" and the Flag is set to "0"..
    file_gui showfiles=new file_gui(parameters,information[row][1],"Root","0");
    showfiles.show();
    check=false;
    } //end if
    } // end if
    } //end try
    catch(Exception e)
    row=0;
    } //end of ae.getSource()

    Why do you think it hangs at the while loop, eh? You need to put in additional printlns to justify your assertion. It takes alot less time to diagnose if you put in specific try/catch blocks with their own printlns - even if it is not as much fun. When you get into these kinds of troubles, there is no shame in putting in prints at each statement or logical point to track down the actual fault.
    ~Bill

Maybe you are looking for

  • Auto update of events in albums

    Hello! My question is this . . . If I create a new album, and then add an event, will the album dynamically update if I add/remove photos to the event? Thanks! Michael

  • Service Tax - Key Combination to Maintain Condition Record

    Dear Experts, Can anybody please explain which Key Combination is to be selected while maintaining Condition record for Service Tax ( 0% service tax and Service tax 12.5 + ECS). I have created two tax codes - S1 and S0. please explain the procedure t

  • Apple TV 3D stream?

    My boy friend just got a 70inch Sony LED 3D TV, will the Apple TV provide the 3D stream in order to run the 3D on the new TV?

  • Itanium2 - Windows 2003 64bit ODBC driver

    Dear, We have recently installed an Itanium 2 server with Win2K3 64bit on it. We are not able to see the default ODBC drivers. What could be the reason? On Win2K3 is ODBC driver to be installed seperately? Kindly share your knowledge.

  • How to identify factory unlocked iPhone 5?

    I'm going abroad for a while and wanted to get a factory unlocked iPhone 5S before leaving, but it appears that the factory unlocked iPhones won't be available for a 1-2 months. So I've decided to purchase a used iPhone 5 instead. However, when looki