Dispboards

This week, I’ve been trying out the dispboards in Action Script that I have learnt from the workshop lessons. Basically the Dispboards imports multiple instances on to the stage.

import DispBoard;

var dBSideLength:Number=20;
var spacer:Number=.1;
var unitSize=dBSideLength+(spacer*dBSideLength);
var sW:Number=stage.stageWidth;
var sH:Number=stage.stageHeight;
var noCols:Number=Math.floor(sW/unitSize);
var noRows:Number=Math.floor(sH/unitSize);
var totDBs:Number=noCols*noRows;

This code basically shows small cubes imported onto the stage.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: