Author Archives: Zevan

AS Quiz #7

This quiz is about sound and gradients…
Number of Questions : 5
Difficulty : Medium
Topic : Sound and Gradients

Posted in Quiz | Tagged , , , | 4 Comments

AS Quiz #6

Wrote this quiz on the fly today… I think it came out pretty hard. Tomorrow I’ll post an easier quiz.
Number of Questions : 5
Difficulty : Medium/Hard
Topic : Mixed (Math, BitmapData, Design Patterns, Tweening)

Posted in Quiz | Tagged , , , | 3 Comments

AS Quiz #5

Here is another quiz. The next quiz will be posted on Monday.

Number of Questions : 5
Difficulty : Medium
Topic : General

Posted in Quiz | Tagged , , , | 9 Comments

QuickBox2D Update On the Way

Been meaning to mention that I’m going to release an updated version of QuickBox2D in the next few days… It will have two minor bug fixes, one or two minor new features and will work with the latest version of Box2D…

Posted in Uncategorized | Tagged | Leave a comment

AS Quiz #4

This quiz contains a few questions about design patterns. I think the best intro book to design patterns is Head First Design Patterns. (the examples are in Java but it is an excellent resource/intro). After that its worth checking out GOF

Number of Questions : 7
Difficulty : If you know patterns this will be easy, if [...]

Posted in Quiz | Tagged , , , | 4 Comments

AS Quiz # 3

Here is another quiz. Tomorrows quiz will be about design patterns…

Number of Questions : 5
Difficulty : Easy
Topic : General

Posted in Quiz | Tagged , , | 6 Comments

AS Quiz # 2

People seemed to do pretty well on yesterday’s quiz. I have lots of questions written that fall into that same category of being somewhere between beginner and intermediate level. I decided to write a trickier quiz for today. Tomorrow I’ll alternate back to some easier questions. This quiz is really more about operators and hex [...]

Posted in Quiz | Tagged , , , | 13 Comments

AS Quiz #1

This is the first in a hopefully long series of short ActionScript Quizzes I’ll be writing. This is just 6 simple questions… check it out….
Number of Questions : 6
Difficulty : Easy
Topic : General

Posted in Quiz | Tagged , , , | 13 Comments

Too Many Buttons

CLICK HERE TO COPY
Actionscript:

[SWF (width = 500, height = 500)]

 

var canvas:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight, false, 0xFFFFFF);

addChild(new Bitmap(canvas));

 

var indexCanvas:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight, false, 0xFFFFFF);

 

var btnNum:int = 5000;

var info:Array = [];

 

var brush:BitmapData = new BitmapData(10,10,false, 0xCCCCCC);

var border:Shape = new Shape();

border.graphics.lineStyle(2, 0x000000);

border.graphics.drawRect(0,0,10,10);

brush.draw(border);

 

var txt:TextField = TextField(addChild(new TextField()));

with (txt) height = 20, width = 50, background = 0xFFFFFF, [...]

Posted in BitmapData, arrays, misc | Tagged , , | Leave a comment

~20,000 Rollovers

CLICK HERE TO COPY
Actionscript:

[SWF(width = 500, height = 500, frameRate = 30)]

 

var canvas:BitmapData = new BitmapData(stage.stageWidth,stage.stageHeight,false, 0xFFFFFF);

 

var indexCanvas:BitmapData = new BitmapData(stage.stage.stageWidth, stage.stageHeight, false,

                                            0xFFFFFF);

addChild(new Bitmap(canvas));

 

var s:Shape = new Shape();

 

var lineData:Array = [];

var dataIndex:int = [...]

Posted in BitmapData, Data Structures, UI, arrays, display list, graphics algorithms, matrix, misc, pixel manipulation, return values | Tagged , , | Leave a comment