Range Over Built in ActionScript
Here we use range
to sum the numbers in a slice. Arrays work like this too.
To run the program, include the above code in an ActionScript file and compile it using the Flex SDK.
Running the compiled SWF file will output:
Now that we can run and build basic ActionScript programs, let’s learn more about the language.