Crackle at the end of a loop

There is always a quiet but annoying crackle at the end of my loops when I record from a real instrument.
What can I do?

I haven't noticed a "crackle" but I have noticed that sometimes when I create a loop it ends up with its tail chopped off. And when this happens, these loops have the missing tail added to the front of the loop.
It's really annoying and I haven't found any way to reproduce the problem consistently (otherwise, I'd file a bug).
All of my loops are the spoken voice, so it's easy to tell when the first bit of audio is actually from the last bit of speech from the end of the loops.
This happened on GB '08, both before and after the latest set of patches (circa Sept '07). I'm using a PowerMac G5 dual 2GHz, for what it's worth.

Similar Messages

  • Inserting a pause at the end of a loop in a film clip...

    Hi,
    I just scanned in 16 frames from old 16 mm film and created a short clip in .swf, by default the clip is looping.
    I want it to loop, but all I want to do is place a 5 second pause at the end of the short 1 second clip before it starts up again.  How would I do that?  Or is there a simple tutorial on this?
    I am using CS4 Flash Professional.
    Thanks.

    OK thanks much,
    So to do that, do i begin by highlighting the last frame (the last frame of the movie itself - actual film image) on the timeline, and go to main menu and select Insert>Timeline>Keyframe?  Then insert stop(); on the last frame via the actionscript panel?
    Then highlight the first frame and insert the setTtimeout() and  play() onto the first frame?
    I inserted the stop() command on the last frame and the clip now stops...
    I tried adding this script on the last frame and clip stops but does not repeat after 5 seconds...
    stop()
    setTimeout(5)
    play();

  • How do I increment a variable at the end of a loop to run it through the loop again?

    I'm new to LabVIEW programming and I'm trying to write a small program that just receives a lower and upper limit, and whether the user wants to increment or decrement the number. I can't figure out how to increment the number after the simple calculations have been done and to run through the loop again with the incremented number. Right now I'm using a while loop inside of a case structure where true decrements and false increments.

    Here are a few possibilities.
    Message Edited by altenbach on 12-05-2008 03:25 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    fractionaIncrement.png ‏8 KB

  • How do I get a song to stop at the end in garageband on ipad 2?

    When a song in Garageband (on ipad 2) reaches the end, it immediately loops back to the beginning and starts playing again. I'd like to use Garageband as an accompaniment to live performance. So, how do I get the song to stop (and not restart) at the end?

    I really wish the Apple team would fix this.  It's one of those nagging things that was overlooked, I would imagine, and no one but musicians that perform would notice.
    Anyway, my workaround is this.  I just put a really long silent space at the end of the song giving me time to stop it before it loops. 
    Hey ipad/garageband team -  How about a new release of gargageband?

  • I tunes player gets stuck at the end of the song

    When I play albums from external drive library sometimes a song gets stuck at the end and keeps looping at the last a second or two, and doesnt go to the next song. If I restart iTunes it will play OK. It happened more than a dozen of times.
    What is the problem and how to fix that. Its annoying to restart the iTunes all the time.
    thanks,

    Presnently experiencing this 'last second' glitch downlaoding songs from a CD. The first CD transferred okay. The second CD will not import beyond the last second of any – first, second, middle, last – selected song. FORCE QUIT , eject CD, and reinserting the CD does not change the issue.

  • Stopping the File Open At the End of Loop

    How can I make the script skip the "docRef = open(fileList[i])" at the end of the iteration once all the files are opened? Is there a way to get rid of
    this by perhaps getting the total number of files on a folder and assigned it as a variable 'max", such that if the variable "i" is eventually equal to
    "max," the the script will not execute the last action on the iteration?
    As of now, this loop (taken from Paul Riggott's response to my question before regarding folder processing) is generating the following error:
    Error 8000: Cannot open the file because the open options are incorrect
    Line: 20
    -> docRef=open(fileList[i]);
    Here is the script I am working on:
    var startDisplayDialogs = app.displayDialogs
    app.displayDialogs = DialogModes.NO
    // ask the user for the input and output folders
    var inputFolder = Folder.selectDialog("Select a folder to process")
    var outputFolder = Folder.selectDialog("Select a folder for the output files")
    if (inputFolder != null && outputFolder != null) {
    // get all the files found in this folder
    var fileList = inputFolder.getFiles()
    // open each one in turn
    for (var i = 0; i < fileList.length; i++) {
    // The fileList includes both folders and files so open only files
    if (fileList[i] instanceof File && fileList[i].hidden == false) {
    // get a reference to the new document
    var docRef = open(fileList[i]);

    The main problem is
    var fileList = inputFolder.getFiles();
    You are getting a list of all files and folders that exist in that folder, they could be text files etc.
    It is better to specify the file types IE:
    var fileList = inputFolder.getFiles(/\.(jpg|tif||psd|)$/i);
    As this will only get a list of files that are jpg, tif or psd

  • Highlighted button Disappearing at the end of loop?

    Hey guys,
    I have a simple menu with a few buttons and a short clip in a drop zone and a song in the background. All of this takes a minute to reach the end and once it reaches the end it loops but after the loop the highlight is gone and the buttons wont work ( on a DVD player).
    Any suggestions will be appreciated.
    Cheers,
    Alex

    The main problem is
    var fileList = inputFolder.getFiles();
    You are getting a list of all files and folders that exist in that folder, they could be text files etc.
    It is better to specify the file types IE:
    var fileList = inputFolder.getFiles(/\.(jpg|tif||psd|)$/i);
    As this will only get a list of files that are jpg, tif or psd

  • I have an iPhone 4 that is stuck in a recovery loop. i try to restore it but it comes up with an error code (-1) towards the end of the restore. can someone please help me?

    i have an iPhone 4 that is stuck in a recovery loop. i try to restore it but it comes up with an error code (-1) towards the end of the restore. can someone please help me?

    i just baught it off someone.. so im unsure if it was jailbroken or not.. and i dont think its under warranty now.
    is there a software or something along those lines that would indicate what peice of hardware is faulty?
    i baught it in this recovery loop thinking it was going to be a cheap way of getting a new phone without having to do much.. but now im starting to think its a brick

  • MIDI Record automatically loops to the end

    GarageBand 10.0.3
    I recorded something with the software midi Keyboard (Using the normal Apple Keyboard) and I guess I pressed some wrong key that changes some magic settings.
    Anyway, my problem now is that whenever I record something, after finishing it automatically repeats that newly recorded region until the end.
    How can I turn this off?
    Cheers,
    Michi

    You may have enabled the Cycle Region. Is there a yellow bar across the Track area?
    Click the button with the yellow chasing arrows to disable it.

  • How can I use "write to spreadsheet" during the data is taking but not the end of all the loops

    Hi,
    I have to run an experiment on Labview 6 or 5. I don't have Labview 7 on that computer for some reason. My experiment is talking about 1000 hours, and I have a probelm on storing the data. Right now I am using "Write to spread sheet" and I set the "append" to false. And the data is installed at the end of the experiment, that means after 1000 hours. In the mean time if somthing oges wrong like power cut or what, I will lose all the data. So what I want to do is to save the data evertime when the data is took. I tired to set the "append" to true, but it does not let me to choose the "file path"--- when I choose this and select write on new or excisting file, it said" you may not be able to save on a exciting file" and it does not let me create a new file either. If anyone have the lidea like how can I use the "wrtie to spreadsheet" function and at the same time can install the data everytime inside the look, please let me know. Thanks alot.
    KL

    KL,
    It sounds like you want to periodically save your data so it is in smaller files. (great idea) For this operation you will not want to append the data...if something happens to your system while the file is open it could become corrupt and ruin all the data. You need to write the new block of data to a new file every time. Now...this depends on how big your data is...if you only have like 500k of data to write in a block you should probably write several blocks before starting a new file. I don't know enough about how much data you are acquiring. In either case...the write to spreadsheet file.vi will need a different name each time it is called and you will not want to append. Append = false.
    -Brett

  • THE END OF THE RECORD IS NOT TRIGGERING(urgent)

    HI ALL I HAVE WRITTEN A REPORT AND I AM DISPLAYING THE OUTPUT OF EACH DISTRICT..
    NOW THE REPORT IS SHOWING RIGHT WHEN IT IS CHANGING THE DISTRICT BUT IT IS NOT TRIGGERING AT THE END OF THE REPORT AS AFTER THAT THE DISTRICT IS NOT CHANGING..
    I TRIED WITH AT END OF BUT IT IS SOME HOW SHOWING PROBLEM SO I USED A VARIBLE CONCEPT TO GET THE REPORT....
    HERE IS THE REPORT  can anyone please look at this and let me know how can i do that..
    is there any method where i can used in the IF condition to get the last record...
    ==========================================================
    *& Report  ZDISTRICT_CUST_AUCSALES
    &--THE PROGRAM USED TO DISPLAY THE TOTAL NUMBER OF CONSUMER IN A D.C.-
    &----PROCESSED ON A PERTICULAR MONTH AND YEAR..--
    REPORT  ZDISTRICT_CUST_AUCSALES .
    *TABLE DECLARATION*****************************************************
    TABLES: /BIC/AUCSALES00,
            /BIC/TCOKEY.
    *DATA DECLARATION*****************************************************
    DATA:  BEGIN OF ITAB OCCURS 0,
           /BIC/COKEY   LIKE /BIC/TCOKEY-/BIC/COKEY,
           TXTSH        LIKE /BIC/TCOKEY-TXTSH,
           END OF ITAB.
    DATA:  BEGIN OF ITAB2 OCCURS 0,
           BILL_DATE    LIKE /BIC/AUCSALES00-BILL_DATE,
           /BIC/COKEY   LIKE /BIC/AUCSALES00-/BIC/COKEY,
           BPARTNER     LIKE /BIC/AUCSALES00-BPARTNER,
           END OF ITAB2.
    DATA:  COUNT        TYPE I,
           COKEY        TYPE I,
           COKEYNO(2)   TYPE C,
           COKEYCH(2),
           BILDT        TYPE I,
           PROCOKEY     TYPE I,
           NOTPROCOKEY  TYPE I,
           TOTCOKEYDIV  TYPE I,
           TOTCOKEYDIV1 TYPE I,
           TOTCOKEYDIV2 TYPE I,
           TOTAL        TYPE I.
    DATA: C TYPE I VALUE 4.
    SELECT OPTION FOR DATE SELECTION IN THE SELECTION SCREEN.************
    SELECTION-SCREEN BEGIN OF BLOCK DATE WITH FRAME TITLE TEXT-001.
    PARAMETERS: S_BILDT LIKE /BIC/AUCSALES00-BILL_DATE OBLIGATORY .
    SELECTION-SCREEN END OF BLOCK DATE.
    *INITIALIZATION******************************************************
    FORMAT INTENSIFIED ON COLOR = C.
    write:/  'PROCESSING DATE:',    20 S_BILDT,
         128 'TIME:',              135 SY-UZEIT.
    WRITE:/  'USER NAME      :',    20 SY-UNAME,
         142 ' '.
    WRITE SY-ULINE.
    WRITE: / 'D.C'                , 12 SY-VLINE,
             'NAME OF D.C'        , 39 SY-VLINE,
             'NUMBER OF CONSUMER' , 60 SY-VLINE,
             'REMARKS'            , 105 SY-VLINE.
    WRITE:/ SY-ULINE.
    FORMAT INTENSIFIED OFF.
    *AT SELECTION-SCREEN**************************************************
    SELECT BILL_DATE
          UP TO 1 ROWS
          INTO (/BIC/AUCSALES00-BILL_DATE)
          FROM /BIC/AUCSALES00
          WHERE BILL_DATE = S_BILDT.
    ENDSELECT.
    IF SY-SUBRC <> 0.
      WRITE:/ ' NO DATA FOUND ON THIS DATE'.
      EXIT.
    ENDIF.
    START OF  SELECTION***************************************************
    SELECT /BIC/COKEY TXTSH from /BIC/TCOKEY into table itab.
    SORT ITAB.
    IF NOT ITAB[] IS INITIAL.
      SELECT  BILL_DATE
              /BIC/COKEY
              BPARTNER
              FROM /BIC/AUCSALES00
              INTO CORRESPONDING FIELDS OF TABLE ITAB2
              FOR ALL ENTRIES IN ITAB
              WHERE /BIC/COKEY = ITAB-/BIC/COKEY
              AND BILL_DATE = S_BILDT.
      SORT ITAB BY /BIC/COKEY.
    ENDIF.
    *CHECK WHETHER THE DATA RETRIVE SUCESSFULLY OR NOT********************
    IF SY-SUBRC NE 0.
      WRITE:/ 'THIS DATE DOESNOT CONTAIN ANY DATA'.
    ENDIF.
    *DATA DISPLAY*********************************************************
    *****GET THE FIRST VALUE AND DELETE THE ADJECENT AND DUPLICATE FROM ITAB2.
    READ TABLE ITAB INDEX 1.
       IF SY-SUBRC = 0.
          COKEYNO = ITAB-/BIC/COKEY+4(2).
       ENDIF.
    READ TABLE ITAB2 WITH KEY /BIC/COKEY = itab-/BIC/COKEY.
       IF SY-SUBRC = 0.
          SORT ITAB2 BY /BIC/COKEY.
          DELETE ADJACENT DUPLICATES FROM ITAB2 COMPARING /BIC/COKEY.
       ENDIF.
    LOOP AT ITAB.
      READ TABLE ITAB2 WITH KEY /BIC/COKEY = itab-/BIC/COKEY.
    *IF THE D.C ARE NOT SAME THEN DISPLAY THE SUM***************************
      COKEYCH = ITAB-/BIC/COKEY+4(2).
      IF (  COKEYCH <> COKEYNO ).
          FORMAT COLOR = 4.
            WRITE:/ '  TOTAL NUMBER OF  D.C  IN   PERTICULAR RAO  ','(', COKEYNO,')','=',TOTCOKEYDIV.
            WRITE:/ '  TOTAL NUMBER OF CONSUMER PROCESSED IN RAO  ','(', COKEYNO,')','=',TOTAL.
            WRITE:/ '  TOTAL NUMBER OF D.C   PROCESSED    IN RAO  ','(', COKEYNO,')','=',PROCOKEY.
            WRITE:/ '  TOTAL NUMBER OF D.C  NOT PROCESSED IN RAO  ','(', COKEYNO,')','=',NOTPROCOKEY.
            WRITE:/ '', 128 'PAGE NUMBER:',   139 SY-PAGNO.
            SKIP 4.
    *******INITIALLIZE ALL THE VARIABLE*************************************
            FORMAT COLOR OFF .
            TOTCOKEYDIV = 0.
            TOTCOKEYDIV1 = 0.
            TOTCOKEYDIV2 = 0.
            TOTAL = 0.
            PROCOKEY = 0.
            NOTPROCOKEY = 0.
            WRITE:/ SY-ULINE.
            NEW-PAGE WITH-TITLE.
            NEW-PAGE WITH-HEADING.
    ENDIF.
    **END OF THE TOTAL SUM OF ALL THE D.C.**********************************
    *IF THE D.C ARE SAME THEN DISPLAY THE D.C.******************************
      IF ITAB2-/BIC/COKEY = ITAB-/BIC/COKEY.
             SELECT COUNT( DISTINCT BPARTNER )
                   INTO COUNT
                   FROM /BIC/AUCSALES00
                   WHERE /BIC/COKEY = ITAB2-/BIC/COKEY and
                   BILL_DATE = S_BILDT.
            IF SY-SUBRC = 0.
                 PROCOKEY = PROCOKEY + 1.
            ENDIF.
              TOTCOKEYDIV1 = TOTCOKEYDIV1 + 1.
              TOTAL = TOTAL + COUNT.
              COKEY = ITAB2-/BIC/COKEY.
              FORMAT INTENSIFIED ON COLOR = 2.
              WRITE:/ ITAB2-/BIC/COKEY,             SY-VLINE,
                   15 ITAB-TXTSH+1(19),         39  SY-VLINE,
                   40 COUNT,                    60  SY-VLINE,
                      ' ',                     105  SY-VLINE.
             WRITE :/ SY-ULINE.
             FORMAT INTENSIFIED ON COLOR = 2.
      ELSE.
           FORMAT INTENSIFIED ON COLOR = 2.
           COKEY = ITAB-/BIC/COKEY.
           WRITE:/ ITAB-/BIC/COKEY,               SY-VLINE,
                15 ITAB-TXTSH+1(19),           39 SY-VLINE,
                40  ' ',                       60 SY-VLINE,
                'Data Not extracted to BW',   105 SY-VLINE.
           FORMAT INTENSIFIED ON COLOR = 2.
           WRITE:/ SY-ULINE.
           TOTCOKEYDIV2 = TOTCOKEYDIV2 + 1.
      ENDIF.
          TOTCOKEYDIV = TOTCOKEYDIV1 + TOTCOKEYDIV2.
          NOTPROCOKEY = TOTCOKEYDIV - PROCOKEY.
          COKEYNO = ITAB-/BIC/COKEY+4(2).
          CLEAR: ITAB, ITAB2.
    ENDLOOP.
    ===========================================================
    please at this and let me know..
    thanks in advance,,,

    HI ALL ,
         I GOT THE ANSWER...
    THANKS TO SDNNNN AND ALL THE FRIENDS LOOKING AT THIS...
    THANKS ONCE AGAIN....

  • How to delete the ends of line ["\n"] in a String before parsing

    hi, i'd want to parse a String with Regex/Pattern.
    This String contains ends of line i want to delete before applying my parsing treatment.
    I've tried to do that by replacing the character "\n" with "" :
        // the original text
        String orgTextToParse = new String(buffer);
        //we create a pattern to recognize the ends of line
        String regExpEol = "\n";
        Pattern patternEol = Pattern.compile(regExpEol);
        Matcher matcherEol = patternEol.matcher(orgTextToParse);
        // the new text without end of line
        StringBuffer newTextToParse = new StringBuffer();
        // we replace the "\n" by ""
        while(matcherEol.find()) {
          String REPLACE = "";
          matcherEol.appendReplacement(newTextToParse,REPLACE);
        matcherEol.appendTail(newTextToParse);
        System.out.println("[new string start] " + (newTextToParse.toString()) + " [end of new string]");Is there an appropriate way to delete "\n" ?
    (perhaps a method of the Pattern or Matcher classes... ?)
    thanx
    Edited by: jfact on Dec 29, 2007 11:05 AM
    Edited by: jfact on Dec 29, 2007 11:06 AM

    The second (optional) argument to Pattern is a set of flags. Take a look at the Javadoc.
    The 'genomic' implication is that the EOL is an arbitrary line break for human consumption so it does look like you need to remove the EOL. I would just use replaceAll() since it can be done with one line of code (or just a couple if you pre-compile the regex) without the need for any looping.
    line = line.replaceAll("\n","");Edited by: sabre150 on Dec 29, 2007 10:27 AM

  • How to add spaces at the end of record

    Hi Friends,
    i am creating a file which contains more than 100 records.
    In ABAP i have internal table with on field(135) type c.
    some time record have length 120, somtime 130 its vary on each record.
    but i would like to add space at the end of each record till 135 length.
    Can you please help me how to add speace at the end of record.
    regards
    Malik

    So why did you said that in your first posting? My glass sphere is out for cleaning...
    Instead of type c use strings and add spaces until they have the appropriate length.
    loop at outtab assigning <pout>.
      while strlen( <pout>-val ) < 135.
        concatenate <pout>-val `` into <pout>-val.
      endwhile.
    endloop.

  • How to add a character at the end of an array element that meets certain criteria.

    Hi. I am using CF 9.2.1. I started learning CF yesterday, and I am trying to figure out a way to add a special character (like "?", "!"," &amp; ") to an array row if the first row element (say, element [1][1]) has a specific letter like " t" in the word it is holding. In this case the special character will be added at the end of the last row element (element [1][3]).
    Example: The take columns are: "Firstname", "Lastname", "Age".  If Firstname contains an "s" or "S" (in any order) then add "!" at the end of the row so that :
    Sam, Rubins, 26 !
    Nick, Palo, 32
    Robert, Williams, 28
    Oscar, Ramirez, 23 !
    I tried using the ReReplace, Refind and the #findoneof functions. I could probably loop through the array and return a value and store, while storing the value in a separate variable and using an if/Boolean function to compare that value and so on.... But I am sure there's an easier and more efficient way. Thanks in advance.
    <!--- #1 I will create a three column query named CityInfo--->
    <cfset CityInfo = QueryNew("City, State, LCode","VarChar, VarChar, Integer")>
    <cfset newRow = QueryAddRow(CityInfo, 2)>
    <cfset newRow = QueryAddRow(CityInfo, 3)>
    <cfset newRow = QueryAddRow(CityInfo, 4)>
    <cfset newRow = QueryAddRow(CityInfo, 5)>
    <cfset newRow = QueryAddRow(CityInfo, 6)>
    <!---Using the column names City, Sate and LCode I will now enter the information--->
    <cfset temp = QuerySetCell(CityInfo, "City", "Dallas", 1)>
    <cfset temp = QuerySetCell(CityInfo, "State", "TX", 1)>
    <cfset temp = QuerySetCell(CityInfo, "LCode", "214", 1)>
    <cfset temp = QuerySetCell(CityInfo, "City", "Fort Worth", 2)>
    <cfset temp = QuerySetCell(CityInfo, "State", "TX", 2)>
    <cfset temp = QuerySetCell(CityInfo, "LCode", "817", 2)>
    <cfset temp = QuerySetCell(CityInfo, "City", "San Antonio", 3)>
    <cfset temp = QuerySetCell(CityInfo, "State", "TX", 3)>
    <cfset temp = QuerySetCell(CityInfo, "LCode", "210", 3)>
    <cfset temp = QuerySetCell(CityInfo, "City", "L.A.", 4)>
    <cfset temp = QuerySetCell(CityInfo, "State", "CA", 4)>
    <cfset temp = QuerySetCell(CityInfo, "LCode", "213", 4)>
    <cfset temp = QuerySetCell(CityInfo, "City", "Austin", 5)>
    <cfset temp = QuerySetCell(CityInfo, "State", "TX", 5)>
    <cfset temp = QuerySetCell(CityInfo, "LCode", "512", 5)>
    <h4> Number1. City info TABLE contents:</h4>
    <cfoutput query = "CityInfo">
    #City# #State# #LCode#<br>
    </cfoutput> 
    <!--- #2 Now I focus on the array. I declare it first --->
    <cfset cityarray=arraynew(2)>
    <!--- Then I retrieve the data and populate the array --->
    <cfloop query="CityInfo">
    <cfset cityarray[CurrentRow][1]=City>
    <cfset cityarray[CurrentRow][2]=State>
    <cfset cityarray[CurrentRow][3]=LCode>
    </cfloop>
    <h4>Number2. City info ARRAY contents before appending:</h4>
    <cfloop index="Counter" from=1 to=5>
    <cfoutput>
    City: #cityarray[Counter][1]#,
    Estate: #cityarray[Counter][2]#,
    Code: #cityarray[Counter][3]#<br>
    </cfoutput>
    </cfloop>
    <!--- #3 I now add/append Irving to the array and change L.A. --->
    <cfset cityarray[6][1] = "Irving" />
    <cfset cityarray[6][2] = "Texas" />
    <cfset cityarray[6][3] = "972" />
    <cfset cityarray[4][1] = "Los Angeles" />
    <h4>Number3. City info Array contents after adding Irving, TX and updating L.A.:</h4>
    <cfloop index="Counter" from=1 to=6>
    <cfoutput>
    City: #cityarray[Counter][1]#,
    Estate: #cityarray[Counter][2]#,
    Code: #cityarray[Counter][3]#<br>
    </cfoutput>
    </cfloop>
    <br>
    <!--- #4 now I look for the 's' in order to add a '!' THIS IS WHERE MY PROBLEM BEGINS --->
    <h4>Number4. City info after searching for "s"</h4>
    <cfloop index="Counter" from=1 to=6>
    <cfoutput>
    City: #cityarray[Counter][1]#,
    Estate: #cityarray[Counter][2]#,
    Code: #cityarray[Counter][3]#,
    <!--- I know the findoneof function is not going to help me, but I hope it helps to give you an idea of what I am trying to do--->
    #findoneof("sS",cityarray[Counter][1])#
    <br>
    </cfoutput>
    </cfloop>

    It is much simpler than you think. Additions and modifications are in italics. Good luck!
    <h4>Number2. City info ARRAY contents before appending:</h4>
    <cfloop index="Counter" from="1" to="#CityInfo.recordcount#">
    <cfoutput>
    City: #cityarray[Counter][1]#,
    State: #cityarray[Counter][2]#,
    Code: #cityarray[Counter][3]#<br>
    </cfoutput>
    </cfloop>
    <!--- #3 I now add/append Irving to the array and change L.A. --->
    <cfset cityarray[6][1] = "Irving" />
    <cfset cityarray[6][2] = "Texas" />
    <cfset cityarray[6][3] = "972" />
    <cfset cityarray[4][1] = "Los Angeles" />
    <h4>Number3. City info Array contents after adding Irving, TX and updating L.A.:</h4>
    <cfloop  index="Counter" from="1" to="#arrayLen(cityarray)#">
    <cfoutput>
    City: #cityarray[Counter][1]#,
    State: #cityarray[Counter][2]#,
    Code: #cityarray[Counter][3]#<br>
    </cfoutput>
    </cfloop>
    <br>
    <!--- #4 now I look for the 's' in order to add a '!' THIS IS WHERE MY PROBLEM BEGINS --->
    <h4>Number4. City info after searching for "s"</h4>
    <cfloop index="Counter"  from="1" to="#arrayLen(cityarray)#">
        <cfset sPosition=findNoCase("s",cityarray[Counter][1])>
        <cfoutput>
        City: #cityarray[Counter][1]#,
      State: #cityarray[Counter][2]#,
        Code: #cityarray[Counter][3]#
        </cfoutput>
       <cfif sPosition GT 0><!--- Just display the exclamation mark--->
        <cfelse> <!--- Add whatever you like, or nothing, here--->
        (no 's')
        </cfif>
        <br>   
    </cfloop>

  • How to stop a slideshow and show another movie clip at the end?

    Currently my slideshow is in a loop. At the end of last slideshow, I want to show another movie clip (End_mv) that's on another layer. How do I do that? My current scripts are below:
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    //change scale on an image
    var fadeTween:Tween;
    //To slide in on X axis
    var slideXTween:Tween;
    //To slide in on Y axis
    var slideYTween:Tween;
    //To fade IN
    var alphaTween:Tween;
    //To get bigger on its X axis
    var scaleXTween:Tween;
    //To get bigger on its Y axis
    var scaleYTween:Tween;
    //var fadeTween:Tween;
    //description place holder
    var strDescrp:String;
    //source place holder
    var strSource:String;
    //x poistion
    var posX:Number;
    //y position
    var posY:Number;
    //degree rotation
    var degreeRot:Number;
    // delay between slides
    //const TIMER_DELAY:int = 5000;
    var TIMER_DELAY:int = 5000;
    // fade time between slides
    const FADE_TIME:int = 3;
    // reference to the current slider container
    var currentContainer:Sprite;
    // index of the current slide
    var intCurrentSlide:int = -1;
    // total slides
    var intSlideCount:int;
    // timer for switching slides
    var slideTimer:Timer;
    // slides holder
    var sprContainer1:Sprite;
    var sprContainer2:Sprite;
    // slides loader
    var slideLoader:Loader;
    // url to slideshow xml
    var strXMLPath:String = "lstHouse.xml";
    // slideshow xml loader
    var xmlLoader:URLLoader;
    // slideshow xml
    var xmlSlideshow:XML;
    var txtField:TextField = new TextField();
    var formatText:TextFormat = new TextFormat();
    //start of sound section is for sound
    var soundReq:URLRequest = new URLRequest("PaukenBrumfiel_AngelsOnHigh.mp3");
    var sound:Sound = new Sound();
    sound.load(soundReq);
    sound.addEventListener(Event.COMPLETE, onComplete);
    //end of sound section
    function onComplete(event:Event):void
        sound.play();
    function init():void
        // create new urlloader for xml file
        xmlLoader = new URLLoader();
        // add listener for complete event
        xmlLoader.addEventListener(Event.COMPLETE, onXMLLoadComplete);
        // load xml file
        xmlLoader.load(new URLRequest(strXMLPath));
        // create new timer with delay from constant
        slideTimer = new Timer(TIMER_DELAY);
        // add event listener for timer event
        slideTimer.addEventListener(TimerEvent.TIMER, switchSlide);
        // create 2 container sprite which will hold the slides and
        // add them to the masked movieclip
        sprContainer1 = new Sprite();
        sprContainer2 = new Sprite();   
        mcSlideHolder.addChild(sprContainer1);
        mcSlideHolder.addChild(sprContainer2);
        // keep a reference of the container which is currently
        // in the front
        currentContainer = sprContainer2;
    function onXMLLoadComplete(event:Event):void
        // create new xml with the received data
        xmlSlideshow = new XML(event.target.data);
        // get total slide count
        intSlideCount = xmlSlideshow..image.length();
        // switch the first slide without a delay
        switchSlide(null);
    function fadeSlideIn(e:Event):void {
        // add loaded slide from slide loader to the
        // current container
        currentContainer.addChild(slideLoader.content);
        // clear preloader text
        //mcInfo.lbl_loading.text = "";
        // fade the current container in and start the slide timer
        // when the tween is finished
        //Tweener.addTween(currentContainer, {alpha:1, time:FADE_TIME, onComplete:function() { slideTimer.start(); }});       
        //strSource = xmlSlideshow.image[intCurrentSlide].@src;
        fadeTween = new Tween(currentContainer, "alpha", Regular.easeInOut, 0, 1, 2, true)
        //scale = new Tween(currentContainer, "alpha", Regular.easeInOut, 0, 1, 2, true)
        slideTimer.start()
        onComplete:function();
    function switchSlide(e:Event):void
        // check, if the timer is running (needed for the
        // very first switch of the slide)
        if(slideTimer.running)
            slideTimer.stop();
        // check if we have any slides left and increment
        // current slide index
        if(intCurrentSlide + 1 < intSlideCount)
            intCurrentSlide++;
        // if not, start slideshow from beginning
        else
            intCurrentSlide = 0;
        // check which container is currently in the front and
        // assign currentContainer to the one that's in the back with
        // the old slide
        if(currentContainer == sprContainer2)
            currentContainer = sprContainer1;
        else
            currentContainer = sprContainer2;
        // hide the old slide
        currentContainer.alpha = 0;
        // bring the old slide to the front
        mcSlideHolder.swapChildren(sprContainer2, sprContainer1);
        strDescrp = xmlSlideshow.image[intCurrentSlide].@desc;
        //strSource = xmlSlideshow.image[intCurrentSlide].@src;
        //txtField.border = true;
        //txtField.x = 0;
        //txtField.y = 600;
        txtField.width = 855;
        txtField.height = 200;   
        //txtField.background = true;
        //txtField.backgroundColor = 0xEE9A00;
        txtField.alpha = 20;
        txtField.text = strDescrp;
        formatText.align = TextFormatAlign.CENTER;
        //txtField.autoSize = TextFieldAutoSize.LEFT;
        formatText.color = 0x000;
        formatText.size = 30;
        txtField.x = 0;
        txtField.y = 550;
        posX = 0;
        posY = 0;
        degreeRot = 0;
        // create a new loader for the slide
        slideLoader = new Loader();
        // add event listener when slide is loaded
        slideLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, fadeSlideIn);
        // load the next slide
        slideLoader.load(new URLRequest(xmlSlideshow.image[intCurrentSlide].@src));   
        addChild(txtField);
        txtField.setTextFormat(formatText)
    // init slideshow
    init();

    I got this error:
    ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
        at flash.display::DisplayObjectContainer/swapChildren()
        at University_Advancement_Holiday_Greeting2012_fla::MainTimeline/switchSlide()
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()
    And here's the code:
    // import tweener
    //import caurina.transitions.Tweener;
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import flash.display.MovieClip;
    //change scale on an image
    var fadeTween:Tween;
    //To slide in on X axis
    var slideXTween:Tween;
    //To slide in on Y axis
    var slideYTween:Tween;
    //To fade IN
    var alphaTween:Tween;
    //To get bigger on its X axis
    var scaleXTween:Tween;
    //To get bigger on its Y axis
    var scaleYTween:Tween;
    //var fadeTween:Tween;
    //description place holder
    var strDescrp:String;
    //source place holder
    var strSource:String;
    //x poistion
    var posX:Number;
    //y position
    var posY:Number;
    //degree rotation
    var degreeRot:Number;
    // delay between slides
    //const TIMER_DELAY:int = 5000;
    var TIMER_DELAY:int = 5000;
    // fade time between slides
    const FADE_TIME:int = 3;
    // reference to the current slider container
    var currentContainer:Sprite;
    // index of the current slide
    var intCurrentSlide:int = -1;
    // total slides
    var intSlideCount:int;
    // timer for switching slides
    var slideTimer:Timer;
    // slides holder
    var sprContainer1:Sprite;
    var sprContainer2:Sprite;
    // slides loader
    var slideLoader:Loader;
    // url to slideshow xml
    var strXMLPath:String = "lstHouse.xml";
    // slideshow xml loader
    var xmlLoader:URLLoader;
    // slideshow xml
    var xmlSlideshow:XML;
    var txtField:TextField = new TextField();
    var formatText:TextFormat = new TextFormat();
    //var myEnding:MovieClip = stage.getChildByName('End_mc') as MovieClip;
    //start of sound section is for sound
    var soundReq:URLRequest = new URLRequest("PaukenBrumfiel_AngelsOnHigh.mp3");
    var sound:Sound = new Sound();
    sound.load(soundReq);
    sound.addEventListener(Event.COMPLETE, onComplete);
    //end of sound section
    function onComplete(event:Event):void
        sound.play();
    function init():void
        //reference my movie clip "End_mc" oon the stage and turn its visibility off
        MovieClip(getChildByName('End_mc')).visible = false;
        // create new urlloader for xml file
        xmlLoader = new URLLoader();
        // add listener for complete event
        xmlLoader.addEventListener(Event.COMPLETE, onXMLLoadComplete);
        // load xml file
        xmlLoader.load(new URLRequest(strXMLPath));
        // create new timer with delay from constant
        slideTimer = new Timer(TIMER_DELAY);
        // add event listener for timer event
        slideTimer.addEventListener(TimerEvent.TIMER, switchSlide);
        // create 2 container sprite which will hold the slides and
        // add them to the masked movieclip
        sprContainer1 = new Sprite();
        sprContainer2 = new Sprite();   
        mcSlideHolder.addChild(sprContainer1);
        mcSlideHolder.addChild(sprContainer2);
        // keep a reference of the container which is currently
        // in the front
        currentContainer = sprContainer2;
    //function onXMLLoadComplete(e:Event):void
    function onXMLLoadComplete(event:Event):void
        // create new xml with the received data
        xmlSlideshow = new XML(event.target.data);
        // get total slide count
        intSlideCount = xmlSlideshow..image.length();
        // switch the first slide without a delay
        switchSlide(null);
    function fadeSlideIn(e:Event):void {
        // add loaded slide from slide loader to the
        // current container
        currentContainer.addChild(slideLoader.content);
        // clear preloader text
        //mcInfo.lbl_loading.text = "";
        // fade the current container in and start the slide timer
        // when the tween is finished
        //Tweener.addTween(currentContainer, {alpha:1, time:FADE_TIME, onComplete:function() { slideTimer.start(); }});       
        //strSource = xmlSlideshow.image[intCurrentSlide].@src;
        fadeTween = new Tween(currentContainer, "alpha", Regular.easeInOut, 0, 1, 2, true)
        //scale = new Tween(currentContainer, "alpha", Regular.easeInOut, 0, 1, 2, true)
        slideTimer.start()
        onComplete:function();
    function switchSlide(e:Event):void
        // check, if the timer is running (needed for the
        // very first switch of the slide)
        if(slideTimer.running)
            slideTimer.stop();
        // ADDED: Check if using sprContainer2 and at the last slide
        //if ((currentContainer == sprContainer2) && (intCurrentSlide == intSlideCount))
        trace("Current Slide: " + intCurrentSlide);
        trace("SlideCount: " + intSlideCount);
        if ((currentContainer == sprContainer2) && ((intCurrentSlide + 1) == intSlideCount))
            // hide the slideshow (and other related elements, or remove them if desired)
            //mcSlideHolder.visible = false;
            // remove any clips directly inside slideshow (any timers/etc need to be stopped too)
             while (mcSlideHolder.numChildren > 0)
                mcSlideHolder.removeChildAt(0);
            // I do see a var named 'sound' playing so you might want to:
             //sound.stop();
             //sound = null;
            // etc any other slideshow-only elements to hide/remove..
            // play your movie
            MovieClip(getChildByName('End_mc')).visible = true;
            MovieClip(getChildByName('End_mc')).play();       
        // check if we have any slides left and increment
        // current slide index
        if(intCurrentSlide + 1 < intSlideCount)
            intCurrentSlide++;
        // if not, start slideshow from beginning
        else
            intCurrentSlide = 0;
        // check which container is currently in the front and
        // assign currentContainer to the one that's in the back with
        // the old slide
        if(currentContainer == sprContainer2)
            currentContainer = sprContainer1;
        else
            currentContainer = sprContainer2;
        // hide the old slide
        currentContainer.alpha = 0;
        // bring the old slide to the front
        mcSlideHolder.swapChildren(sprContainer2, sprContainer1);
        strDescrp = xmlSlideshow.image[intCurrentSlide].@desc;
        //strSource = xmlSlideshow.image[intCurrentSlide].@src;
        //txtField.border = true;
        //txtField.x = 0;
        //txtField.y = 600;
        txtField.width = 855;
        txtField.height = 200;   
        //txtField.background = true;
        //txtField.backgroundColor = 0xEE9A00;
        txtField.alpha = 20;
        txtField.text = strDescrp;
        formatText.align = TextFormatAlign.CENTER;
        //txtField.autoSize = TextFieldAutoSize.LEFT;
        formatText.color = 0x000;
        formatText.size = 30;
        txtField.x = 0;
        txtField.y = 550;
        posX = 0;
        posY = 0;
        degreeRot = 0;
        // create a new loader for the slide
        slideLoader = new Loader();
        // add event listener when slide is loaded
        slideLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, fadeSlideIn);
        // add event listener for the progress
        //slideLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, showProgress);
        // load the next slide
        slideLoader.load(new URLRequest(xmlSlideshow.image[intCurrentSlide].@src));   
        addChild(txtField);
        txtField.setTextFormat(formatText)   
    // init slideshow
    init();

Maybe you are looking for

  • Regarding list alv display

    Hi All, I am catching double click event in user command for alv list display,where we get one structure filled on runtime called slis_selfield upon double clicking on alv rows. in this structure i am not getting the field 'sel_tab_field' filled. and

  • Report to see total stock transfer value

    Hi, Is there any way where we can get a consolidated report to see the total value of stock transfer between two company codes. say there are two company codes A and B. A is procuring from B. So , i want the total value of procurement. Thanks, Kumar

  • Ipod Won't Go into Recovery Mode

    I tried holding down the home button as I am plugging it up to my computer, and I keep holding it after I get it in waiting for the Recovery Mode Icon to Pop up. But all it does is go to the home screen as if I turned it on. Help.

  • Os x lion frequent crashes

    just installed lion os x.. the only reason i installed it was because the new iphone osx recommended i do it to get the most out of icloud etc. now whenever i am running firefox and mail at the same time (maybe coincidence) the system freezes and tel

  • RE: Acls for a particular users

    Hi, I want to get a list of Acls for a particular users. Can anyone tell me how to achieve this. I am using the RDBMS Realm Implementation. After user logs in, I want to present the user with a list of applications that the user is authorized. To do