AS3 abstract page flip effect - ActiveDen Item for Sale

September/9/2010 UPDATE

  • Now also supports DisplayObjects / MovieClips and Sprites.

DESCRIPTIONS

This flip effect class works dynamically and is created through pure coding. There is NO library assets or symbols or what soever. you can simply initialize the class and set which corner of your project you want to have the flip effect and it will just work like charm!

You can add this paper flip effect to any display object, any MovieClip, stage or anywhere. below is a sample code showing the different settings that you can have for your CornerFlip class:

SAMPLE CODES


import com.doitflash.utils.flip.CornerFlip;
import com.doitflash.utils.flip.FlipType;
import com.doitflash.utils.flip.FlipPosition;
import com.doitflash.events.ButtonEvent;

var myFlip:CornerFlip = new CornerFlip();
myFlip.addEventListener(ButtonEvent.CLICK, onClick);
myFlip.position = FlipPosition.TOP_RIGHT;
myFlip.setThumbType = FlipType.DISPLAY_OBJECT;
myFlip.setLargeType = FlipType.IMAGE;
myFlip.papers(_thumb_mc, "img/large.jpg");
myFlip.handCursor = true;
myFlip.shiverSize = 5;
myFlip.speedThumb = 1;
myFlip.speedLarge = 2;
myFlip.flipColor = 0xAAAAAA;
myFlip.shadowFilter(0x000000, 0.5, 135, 5);
this.stage.addChild(myFlip);


Note that you do not have to necessarily set all above settings each time you are initializing the class! try below and it will be good enough to get the class to work with default values!
import com.doitflash.utils.flip.CornerFlip;

var myFlip:CornerFlip = new CornerFlip();
myFlip.papers("thumb.jpg", "large.jpg");
this.stage.addChild(myFlip);

Thanks for your interest,
Hadi





by
by
by
by
by
by