">'); win.document.writeln(''); win.document.writeln(''); }

The Indefinite Article.

Monday, December 12, 2005

My first class

I wrote my first class following Moock's Essential Action Script. I've added a couple of extra functions (the alpha change on click and the 'dragability' as well as the text field on each that displays the height) and then ran the class through a for... loop in a .fla file, resulting in a series of randomly sized, randomly placed boxes on the stage. If you refresh your browser the box sizes/placement/text will change.

As of now, the randomly generated numbers are variables in the .fla file and not the class. I thought that putting them in the class would limit the class somewhat, but now that i think about it:

if( h == undefined) {
height = Math.round(Math.random*1000)/2;
} else {
height = h;

On to chapter 5: Authoring an Image Viewer class


  • Nice work Killy! I am glad that you are finally starting to grok the sweet Object Oriented goodness that ActionScript2 provides...

    Please upload you .fla and .as files so that they may be learnt from and critiqued.

    By Blogger pablo, at 1:59 PM  

  • the .as file is there. i'll upload the .fla in just a sec.

    By Blogger Killy, at 2:01 PM  

  • By Blogger Killy, at 2:06 PM  

  • well
    to you too!

    your work is divine my love - keep it up

    By Blogger CarolinaDivina, at 2:25 PM  

  • I didn't realize what a humongous geek you were brother! DId I tell you that I love you?

    By Blogger B-ann, at 10:46 PM  

Post a Comment

<< Home