Results 1 to 4 of 4

Thread: Flash ActionScript loops

  1. #1
    Join Date
    Oct 2009
    Posts
    9

    Flash ActionScript loops

    I am looking for tool or any code which execute a segment of code for number of time until condition is true. I have lot of data and i wnat to run that data in to number of loop, can nay one provide me the code for Flash ActionScript loops.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: Flash ActionScript loops

    The syntax for creating loops in ActionScript is a little more complex than the simple if statement. ActionScript loops are tools used to execute a segment of code repeatedly for a number of times or while a certain condition is satisfied.For-each-in is quite a secret looping method in ActionScript. This can save time and effort by not having to type the same code multiple times to repeat a process.

  3. #3
    Join Date
    Jan 2009
    Posts
    199

    Re: Flash ActionScript loops

    There are three main types of ActionScript loops, the for loop, the while loop, and the do-while loop.Code blocks are also used within if/else statements if multiple statements are to be carried when a given condition is true or false The for and while loops do exactly the same thing but with different syntax, the do-while loop differs in one small aspect.

  4. #4
    Join Date
    Dec 2008
    Posts
    177

    Re: Flash ActionScript loops

    Code:
    function chArr(arrayc:Array, arrayd:Array):void {
      for(var g=0, k=0; (g<arrayc.length-1) || (j<arrayd.length-1); g++, jk++) {
          if(arrayc[g]==arrayd[j]){
              trace("elements c["+g+"] and d["+k+"] are equal!");
              trace("element value is : "+arrayc[g]);
          }
      }
      trace("process finished.");
    }
    
    checkArrays(c, d);

Similar Threads

  1. Flash/Actionscript links won't work in Google Chrome
    By jns6971 in forum Software Development
    Replies: 1
    Last Post: 28-04-2012, 12:22 PM
  2. How to convert Actionscript 2 to actionscript 3
    By Bol-Bacchan in forum Software Development
    Replies: 4
    Last Post: 17-01-2011, 07:59 AM
  3. Want to learn ActionScript.....What to Refer?
    By Andrzej in forum Software Development
    Replies: 3
    Last Post: 14-11-2009, 12:12 PM
  4. ActionScript in Flash CS3
    By Manthan in forum Software Development
    Replies: 4
    Last Post: 08-07-2009, 10:18 PM
  5. Actionscript 3 Compiler ?
    By Xavier1234 in forum Software Development
    Replies: 3
    Last Post: 29-06-2009, 05:09 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,062,637.98599 seconds with 16 queries