.:: Jasa Membuat Aplikasi Website,Desktop,Android Order Now..!! | | Order Now..!! Jasa Membuat Project Arduino,Robotic,Print 3D ::.

PageFlip AS3.0

0 komentar
Let talk about how to create pageFlip on AS3.0 flash step by step.

I'm write same pageFlip classes, it's easy for using. You need drawing book content on Adobe Flash CS3 or later. Look like movie clip.

Create new movie clip and fill him layers: background, content (uses static text or dynamic - font mast be EMBED, vector graphics, jpg or png), link (another story), breaking it's just line of middle page.

Layers content and link mast be blank key frame, background and breaking - key frame, or just as you like.








How to create link. If you want go to page example 5, you need create movieclip and set him instance name goto_5.








If you want navigateToURL from book, need to use not number, example goto_kirupa, and a few AS3 coding.

On content movie clip you mast set Linkage class, example ContentMC.







Now create document class for this application. Document class Doc.






If user do mouse pressed of goto_kirupa moviclip, book will dispatch Event.CHANGE and change public var eventComment on kirupa.
Let see custom document class

package
{

import flash.display.*;
import flash.events.*;
import lex.book.*;

/**
* ...
* @author Lexcuk
*/
public class Doc extends Sprite
{
private var pageFlip:PageFlip;
public function Doc()
{
addChild(pageFlip = new PageFlip(ContentMC, 300, 400));
pageFlip.addEventListener(Event.CHANGE, pageFlipChangeHandler);
pageFlip.x = 100;
pageFlip.y = 60;
}
//text link reaction
private function pageFlipChangeHandler(e:Event):void {
if (pageFlip.eventComment == "kirupa")
navigateToURL(
new URLRequest("http://www.kirupa.com"), "_blank");
if (pageFlip.eventComment == "game") navigateToURL(
new URLRequest(
"http://www.kongregate.com/games/Lexcuk/rat-rods-ralli"
),"_blank");
}
}
}


Attention: PageFlip(ContentMC, 300, 400)); //300 page width, 400 page height.














pageFlip source archives classes and fla file for Adobe Flash CS3.


Same updates Flash page flip and flv video.
How to make obfuscation action script, for exmple page flip using free software.
Suni

Tawk.to