Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 15-12-2009
Members
 
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.
Reply With Quote
  #2  
Old 15-12-2009
Member
 
Join Date: May 2008
Posts: 2,293
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.
Reply With Quote
  #3  
Old 15-12-2009
Member
 
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.
Reply With Quote
  #4  
Old 15-12-2009
Member
 
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);
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 01:08 AM.