Archive for May, 2009

Flash CS4 FLVplayback component not showing up


Just a quick note for when you are using Flash CS4 and your flvplayback component does not show on stage:

Be sure the constructor function of you as3 class does not have a return.

So instead of

class MyClass extends MovieClip {

public functionMyClass():void{
// stuff
return
}
}

you should use:

public class MyClass extends MovieClip{

public function MyClass(){
//stuff
}

}

Flash AS3 TextField Alpha

A though one to figure out: Setting the Alpha (transparancy) value for a textfield:


import flash.display.BlendMode;

[...]

textfield.text = 'Some text';
textfield.blendMode = BlendMode.LAYER;
textfield.alpha = 0.5;

You can also add textFormatting if you like…

Google spreadsheets: Random numbers and decimals

Google spreadsheets has 2 build-in random-number functions. Rand() and Randbetween().

Most of the time, I use randbetween(), because it offers a quick and easy way to insert some random numbers. However, this function only insert rounded numbers.

If you want to insert random numbers with decimals, you can use Rand(). I will explain both functions here.

Read more

Return top