Tuesday, December 14, 2010

Action Script- Let's start with the basics...

我上個禮拜開始ActionScript的課。我們在巨匠學很簡單AS3的功能。只有15個小時,就課的內容不多。我自從要自己學,自己練習。下面是第一個“挑戰”。因為有很多很多功能我還沒有學的,我在網路找資訊(tutorial /forums)。真很辛苦。。。但是很有興趣!

I finally started my first AS3 courses last week. So far we've been through few basics functionalities (how to make a play button work, to code a drag and drop function, etc. Within the few hours of class we probably won't be able to go very far, but it's actually good to dive into something you don't know at all, learn some stuffs and then find out the rest by yourself. Especially with a soft such as AS3, with all the tools (script assistant/code snippets, etc.) designed to help programming newbies such as me.
As from now, I'll learn by myself and try to complete a small challenge (or few, who knows), every week and post the result right here.

The following .swf is the result of my first challenge (thanks Arnaud), which was the following:
- making the first square (purple) move, only by code;
-click at any moment on the square, make it disappear, and another square (red) appears moving to the right...

It looks like nothing and it's only few lines of codes but it's a lot for someone who knew absolutely nothing about programming. And I still don't...




No comments: