Learnthat.com Free Certification and Computer Online Courses
ThatNetwork.com Internet Media Network Exampractice.com free certification practice exams, mcse, comptia Definethat.com - Free technical definitions, define Free Romance Tips, Romantic Tips, Date Ideas Free POD publisher comparison print on demand
Learnthat.com Free A+ Certification, Computer Classes, Certification Courses, Business, Lifestyle, ApplicationsFree business tutorials and definitionsFree certification tutorials and definitionsFree computer and technical tutorials and technical definitionsFree Finance Tutorials and DefinitionsFree House Repair TutorialsFree Lifestyle and Fun Tutorials
  All Online CoursesNew Courses QuickTipsWord DefinitionsSubmit a TutorialLinks
÷ Resources
Home
free tech tutorials
Free Tutorials
free tech tutorials
Certifications
free tech tutorials
Definitions
free tech tutorials
Resources/Links
free tech tutorials
Forums
free tech tutorials
Distance Education
free tech tutorials
Highest Rated Tutorials
÷ Popular Tutorials
÷ New Tutorials

Macromedia Flash MX 2004 ActionScript Programming Tutorial

 

Loops

A loop repeats a series of actions as long as a specified condition exists. It consists of three elements: the condition, the actions to be repeated, and a counter that increments (or decrements) each time the actions are repeated. In ActionScript, there are four types of loops:

  • while
  • do…while
  • for
  • for…in

It’s important to be aware that the stage isn’t updated each time a loop is executed, so these kinds of loops aren’t practical for displaying the repeating actions on the stage. To display repetitive actions on the stage, use the onEnterFrame() event handler or the setInterval() function. The onEnterFrame() event handler is described under Automating Processes with Keyframe Loops and the setInterval() function is described later in the tutorial, when you use it to call a function that updates the contents of the stage at 1-second intervals.

As with if statements, you can find loop statements in the Actions toolbox, in the Conditions/Loops subfolder of the Statements folder:

 

by Summer Doucet

Find more free Software tutorials from Learnthat.com.

More Information:

Help us by rating this tutorial: [---] [--] [+] [++] [+++]
[---] lowest; [+++] highest

 

 

 


Learn: Free Tutorials - Links to Free Tutorials
Understand: Free Technical Definitions - ExplainThat Whitepapers
Use: Certification Section - Discussion Forum

Visit Our Network Sites:

DefineThat.com Technical Defintions Romancetips.com
Free Gift Ideas - GiveThat Planthat.com Free Unique Business Ideas
PublishOnDemand.net - Learn about Print on Demand (POD) - Self Publishing Seekthat.com - Technical Search Engine
ThatNetwork.com  

About Us : Contact Us : Advertise : Privacy Information

© 1998-2004 Learnthat.com