Skip to content

jamesflorentino/Flip-Planes-AS3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlipPlane.as

An Actionscript3 class that converts a bitmap image into multiple planes

Dependencies

Example

Sample Code

var flipPlane : FlipPlane;
function createFlipCanvas () : void
{
    flipPlane = new FlipPlane ( 10 , 10 );
    flipPlane.addPattern ( new lib_bmp_intro as Bitmap );
    flipPlane.addPattern ( new lib_bmp as Bitmap );
    flipPlane.addPattern ( new lib_bmp2 as Bitmap );
    flipPlane.addPattern ( new lib_bmp3 as Bitmap );
    flipPlane.finished.add ( onPlaneTransition );
    flipPlane.doNextTransition ();
    addChild ( flipPlane );
}

function onPlaneTransition () : void
{
    flipPlane.setNextPattern ();
    flipPlane.doNextTransition ();
}

About

photo slideshow effect

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published