Monthly archives: September, 2013

Abstract class in ActionScript

There is a shame that we have to emulate Abstractions or virtual members. In most cases we can use Interfaces to define some required structure. Of course this is useful to valid composition.

When we would like to set composition over inheritable that will goes to use some tricks.  We can image situation in normal implementation:

public interface IFactory
{
	function create(description:Object):Object;
}
 
0 Kudos
Don't
move!

Flash main loop

Flash is platform like another one, but specific is that we have a quarantined loop cycle.

Ramka

 

That means if we set 30 FPS in our app/game that in the best way we achieve exactly 30FPS (or less in some cases), and each next ENTER_FRAME broadcast event will be dispatched in next 33,(3)ms. Rest of this time will be spend in idle mode. 

 
1 Kudos
Don't
move!

new Blog();

My last portfolio.

 
0 Kudos
Don't
move!