Wednesday, November 08, 2006

Beginner Flash Programming


Wow - how'd it go today?! Hopefully you feel a little overwhelmed; it's not an easy task to learn everything we covered today in a short 1 hour sitting. I do, however, have confidence that once seen and practiced, that you will be able to use this information and eventually turn it into some practical knowledge and skill set (at least that's the goal by the end of next week.) I decided to be a little more helpful so here's "the how" guide for today's last assignment. I should also remind you to use your two hours on Friday to not only finish you two assignments, but to try and understand what you are doing (re: basic java/ action scrip programming). In addition I think you really should start using any online Flash tutorials to help you figure out more advanced things (remember: eventually you will have an assignment that requires you to find and do 2 advanced Flash tutorials.) Now on to today's basic programming assignment:

An image of the coding is posted above (I made it an image so you can't simply copy it - try and understand it while you type it in.) Also here is an example of the working quiz you should be trying to re-create (it can be your own version - try and branch out if you like.) When you have it completed - simply upload it to your www drive and put a link on our moodle site.

So again here are a brief of the steps:

1.) Create a movie clip with a button inside it.
2.) Program the button (not the mc) to be draggable
3.) Create an "answer" box (make it dynamic and give it a "variable" name.)
4.) Create a counter/ score box (make it dynamic and give it a "variable" name.)
5.) Create a movie clip which will be the target you will be dragging to (ie. the color words were my targets) and give it an instance name.
6.) Further program your draggable mc/btn to count your score, put text in the "answer" box telling you if you are right or wrong.
7.) Program the first frame of the quiz - telling it to put the starting score at zero (ie. score = 0) (remember the word "score" in this example is the variable.)
8.) Go to file > export and then upload it to your www drive and put a link of it on our moodle site (yes, Jared, on our moodle site. Sorry, I know you hate moodle.)

Good luck - I'll be around tomorrow to help out - or drop me a line.