25 Line ActionScript Contest begins tomorrow

We have rules. We have judges. We have prizes.

Now we need code.

The contest begins at 12:00:01 a.m. tomorrow morning EST (GMT – 5).

Check it out.

This entry was posted in ActionScript, Flash. Bookmark the permalink.

23 Responses to 25 Line ActionScript Contest begins tomorrow

  1. nice contest.

    in my opinion, it´s a bit pity that even no bitmaps/-images within the timeline are allowed, quasi as basis to manipulate.

    anyhow, there is so much that can be done within 25 lines…

  2. Yeah well you all tester just call then winner now!, because I hope you don’t cry when you see how I created a time machine in less then 25 lines.

    And even if I lose I can just go back in time and change my history! HA!

    //First you must travel at the speed of CPU
    timeTravel({^_^});

    function timeTravel(you:Object):?{
    return (time(you) = space(you);
    }

    function time(you:Object):Object{
    space(you);
    }

    function space(you:Object):Object{
    time(you);
    }

  3. About that last post, sorry just had a few too many today.

    =P

  4. kp says:

    Sorry, Josh, someone already posted that next month. 😉

  5. Zachary Berry says:

    Can you require a specific version of the Flash player (ie Flash Player 10 only?)

  6. Well then some one owes me royalties, because I already had applied for the patent on that in 2010

  7. kp says:

    Zachary, most questions like this can be answered with the following:

    1. Open Flash CS4.
    2. Create a new Flash File (ActionScript 3.0).
    3. Paste your code into the Actions Panel.
    4. Test movie.
    5. Does it work?

    That’s exactly what judges and voters will be doing.

  8. nicoptere says:

    pretty excited and rather scared I must admit
    may the best man win!
    🙂

  9. Don’t have many ideas, but (having read the rules) I was wondering if something like this will be accepted as one line:

    var c:Sprite = new Sprite(),vx:Number = 0,vy:Number = 0,lmp:Array = [];

  10. I guess that’s a yes – I may even have something contestable now. Don’t suppose we can see some of the previous winning SWFs – or will that just make me print out my code and rip it up?

  11. Unreality says:

    Hi there, I have submitted my entry. Am I too early that I will have to submit it again a few hours later?

    btw, FileReference.browse() no longer work at flash player without user interaction,but it works in Flash CS4 IDE, so does it allow?

    English is not my primary language, I hope my code haven’t broken any rules. Please kindly let me know if it does (heh) as I believe I can reduce some additional features to fit in 25 lines

  12. Unreality says:

    James, that is a no. You can only have one “;” per line.

  13. I can only see one “;” on that line.

  14. kp says:

    James, generally, a line of code is “anything that ends with, or should end with, a semicolon.”

    “should end with” being the key phrase.

    However, declaring multiple variables on a single line is perfectly valid, as is initializing variables when you create them, so I don’t see a reason to preclude this.

  15. hi keith,

    just one more comprehension question. For example:

    for ( var i:int = 0; i <= 10000; i++ ) {

    var foo:int = i;

    }

    …how many lines do you count for that ( 2 or 3 lines )?

    And another question:

    May it be possible to amplify the 3 free lines of your line template about one more default line ( stage.quality = StageQuality.MEDIUM)?

    ???
    frank

  16. kp says:

    Frank. I would do it in one line:

    for ( var i:int = 0; i <= 10000; i++ ) var foo:int = i; See rule 3. I'm going to say no on the stage quality line as the contest has already begun and people are using the template.

  17. …so that´s 1 line – correct?

    for ( var i:int = 0; i 350 || balls[i] < 0 ) balls[ i + 6 ] *= -1

  18. so that´s 1 line – correct?

    for ( var i:int = 0; i 350 || balls[i] < 0 ) balls[ i + 6 ] *= -1

  19. Dave Berzack says:

    So… is there a verdict on multiple variable declaration? The syntax is permitted in Flash, and based on rule#1 this is a single line of code – you couldn’t simply insert semicolons without breaking the code. Maybe clarify this for future contests…
    Also, I don’t see where it specifies AS3. I’m building in AS3, but I could definitely see people preferring AS2 for its shorter syntax, particularly in event handling.

  20. Eric says:

    Can you give a bit more details on rule #13?

    We most can live with alot of frowning… where will you trace the line of what’s acceptable or not?

  21. kp says:

    Eric, I’m purposely leaving it a bit vague. As soon as you say the line is at x=100, someone’s going to say, well what about 100.1?

    Also, the more specific you make the rules, the more loopholes become possible. So no scheme that allows for infinite code in a single line is the general rule.

Leave a Reply