[SIZE=6]25 Line AS Contest[/SIZE]
In this contest, create something cool in Flash using only 25 lines of ActionScript code. The deadline for submitting your entry is February 1st.
What is a Line of Code?
A line of code is a statement. Function declarations will not count towards your line count. For example, the following is 6 lines of code:
foo = new function() {
var red:Node = new Node();
var blue:Node = new Node();
var red:Node = new Node();
blue.addEdge(red, "blue->red");
blue.addEdge(green, "blue->green");
green.addEdge(red, "green->red");
}
You can only have one statement per line. You will not be allowed to piggyback statements into one huge line. You will also not be allowed to draw anything or import anything to your library. Everything must be drawn using AS only.
In Flash, for the most part, statements are ended by a semicolon, so you have an idea of what a statement is or isn’t based on that. Even though loops and if statements don’t end in semicolons, they will count towards your final line count.
Regarding abbreviated if statements (condition ? ifTrue : ifFalse), you may use them only if you are not daisy-chaining commands together. In other words, you **cannot **have something like:
true ? (trace(123), trace("asd"), trace(Boolean(1)), trace(321), trace("dsa"), trace(Boolean(1)), trace(98765), trace("qwerty"), trace(String(!1))) : null;
But you can have something like:
true ? _root.arrayList.reverse() : _root.arrayList.pop()
You will not be allowed to use import statements to import any external classes or data sources.
How to Submit Entry?
Simply create a new thread in the 25 Line AS Contest forum with your entry’s name as the subject. Ensure you have attached your SWF using the forum’s attach feature. If you don’t, you may risk the chance of some unforeseen server error causing your entry to not work for the judges.
After you have submitted your entry, check the stickied “Current Entries” thread after a day or so to ensure that I have your entry and name listed.
You are allowed to submit as many entries as you want. Just ensure that you create a new thread for each of your entry. It makes it easier for me to find and add your entry when it is a new thread as opposed to being buried as a post.
So What are the Prizes?
The prizes are:
1st place - $50 Amazon.com gift certificate
2nd place - $30 Amazon.com gift certificate
3rd place - $20 Amazon.com gift certificate
Judging/Judges
Entries will be judged based on creativity. While that is a broad topic with each judge possibly having their own interpretation of what makes something creative, it should at least provide some indication of what you should focus on while coding your entry.
The judges have not been determined, but you will see more information on that as the contest deadline nears.
If you have any questions, post them in this thread and I will respond to them as quickly as possible. I will edit this post to incorporate good questions and related answers.
Good luck!
- kirupa.com Moderators