Page Flip effect

I found this code on the net and I try to adjust so that the effect of page is done automatically, but not the actual pages are turned. Just an effect of alpha'ed from the infinite page turns.

------------------------------------------------------------------------------------------ -----------------------------------

function curlPage (p): Void {}

var topPage:MovieClip = this.attachMovie (pages [p], [p] pages, TOP_PAGE_DEPTH, pagePos);

var bottomPage:MovieClip = this.attachMovie (pages [p + 1], pages [p + 1], BOTTOM_PAGE_DEPTH, pagePos);

bottomPage.setMask (line.rightMask);

line.onEnterFrame = function() {}

Line._x += (PAGE_CURL - line._x) / TURN_RATE;

movePages();

If ((line._x-PAGE_CURL) < 1) {}

delete this.onEnterFrame;

}

};

}

function pageTurn (): Void {}

var oldMousePos:Number = _xmouse;

line.onMouseMove = function() {}

oldMousePos - Line._x += _xmouse;

oldMousePos = _xmouse;

If (line._x > PAGE_CURL) {}

Line._x = PAGE_CURL;

} ElseIf (line._x < PAGE_SPINE) {}

Line._x = PAGE_SPINE;

}

movePages();

updateAfterEvent();

};

}

function movePages (): Void {}

backPage._x = line._x;

backPage.back._x =-(PAGE_EDGE-line._x);

backPage._rotation = 90 * (line._x - PAGE_SPINE) / page._width;

Line._rotation = 45 * (line._x - PAGE_SPINE) / page._width;

}

function pageRelease (): Void {}

delete line.onMouseMove;

If (line._x < HALF_PAGE_TURN) {}

turnInterval = setInterval (openPage, 10);

} else {}

turnInterval = setInterval (closePage, 10);

}

}

function openPage (): Void {}

Line._x += (PAGE_SPINE - line._x) / TURN_RATE;

If ((line._x-PAGE_SPINE) < 1) {}

If (pageNum < pages.length - 2) {}

Line._x = PAGE_EDGE;

curlPage(++pageNum);

}

clearInterval (turnInterval);

}

movePages();

updateAfterEvent();

}

function closePage (): Void {}

Line._x += (PAGE_CURL - line._x) / TURN_RATE;

If ((PAGE_CURL-line._x) < 1) {}

Line._x = PAGE_CURL;

clearInterval (turnInterval);

}

movePages();

updateAfterEvent();

}

var PAGE_SPINE:Number = page._x;

var PAGE_EDGE:Number = page._x + page._width;

var PAGE_CURL:Number = PAGE_EDGE-20;

var HALF_PAGE_TURN:Number = PAGE_SPINE + (PAGE_EDGE-PAGE_SPINE) / 3;

var TURN_RATE:Number = 3;

var TOP_PAGE_DEPTH:Number = this.getNextHighestDepth ();

var BOTTOM_PAGE_DEPTH:Number is TOP_PAGE_DEPTH + 1;.

var BACK_PAGE_DEPTH:Number is TOP_PAGE_DEPTH + 2;.

var lineAngle:Number = 45;

var pageNum:Number = 0;

var turnInterval:Number = 0;

var pages: Array = ['page 1', '2', 'page 3', 'page 4', '5', 'cover'];

var pagePos:Object = {_x:page._x, _y:page._y};

var backPos:Object = {_x:PAGE_EDGE, _y:page._y + page._height, _rotation:90};

var linePos:Object = {_x:PAGE_EDGE, _y:page._y + page._height, _rotation:lineAngle};

var hideShadowPos:Object = {_x:PAGE_EDGE, _y:page._y};

var backPage:MovieClip = this.attachMovie ("backPage", BACK_PAGE_DEPTH, "backPage", backPos);

the var line: MovieClip = this.attachMovie ("line", "line", this.getNextHighestDepth (), linePos);

var hideShadow:MovieClip = this.attachMovie ("hideShadow", "hideShadow", 1000, hideShadowPos);

backPage.onPress = pageTurn;

backPage.onRelease = pageRelease;

backPage.onReleaseOutside = pageRelease;

line.pageShadow.setMask (backPage.back.shadowMask);

backPage.setMask (line.leftMask);

curlPage (pageNum);

------------------------------------------------------------------------------------------ -----------------------------------

I also want to be able to do on the side of the adjustable page for example. size and place an effect to occur as a result.

But I'm sure ill get there, is that someone could me posint in the right directlion.

Appriciate and support!

THX

At this point, you are the only person who knows what the objects are involved in the design.  What you need to do, is use the function trace to follow through the treatment to see which behaves in a way you expect.  Line by line implement if necessary to see where missing.

Tags: Adobe Animate

Similar Questions

  • How to make Page Flip effect?

    Hello

    I want to convert my PDF to page flip book. And put the flip book on my Web page. I thought these two http://www.axmag.com and http://www.page-flip.com.

    You you guys buy or knows something about aXmag and page-flip? or any other software to recommend?

    I know nothing about the two you mention, or that I've linked below.  There was an another poster a while back who provided these...

    Links to page Flip
    ---------------

    Free solution/software:
    -----------------------
    http://www.axmag.com/submit.html

    Free basic support online flip page creator, PDF format, great page flip effect. FYI, you will have to pay for the pro service.

    http://www.swftools.org/download.html software, more important still offers a Version of Linux (source code) the/download.html.nix develpers who can help.

    Local

    http://www.Issuu.com platform of magazine and ebook, which can be considered page flip solution. This site contains brilliant special effects.

    Online

    Java and Flash code to the project:
    -------------------------------

    http://www.SitePoint.com/examples/jQuery/animate4.php

    Java code for page-flip, crude, but functional.

    http://PageFlip.Hu/help.html flash tutorial full of page flip, essentially in Flash.

    A

    http://page-Flip.com/Products/Flash-Component-AS2/ powerful add-on for Adobe Flash MX - CS4 to create the page flip effect. Offers great opportunities for expansion and integration. 199 (euros) per semester.

    A

  • Page Flipping only works for images?

    In the page flipping examples that I saw that the pages are always images. Has anyone ever used the page flipping effect on a page html or any other interactive format?

    Some of the page turn applications that resemble turning physical pages, some of them use the 3D libraries available for Action Script.  Those to both normal user interface components.

  • Looking for dynamic PDF (page-flipping) Viewer for my website

    I wasn't sure if this or the PDF forum is a better place for this question, but...

    I am looking for a PDF document for visitors to my website on a page that contains nothing but. Ideally, it would be an experience as dynamic as possible, with some animations-flipping of page (at least). As a virtual magazine.

    I researched what could exist to help me there and found things like this and this.

    Obviously, they are not all created equal and we could go crazy to try. So if someone has already been through this and can help a guy out, much appreciated. Ideally, I'm looking for something that obviously works very well on all devices, a smooth rather than entertainment in the staircase and allows the touch sliding (IE, iPad).

    Doesn't have to be freeware (I'll pay if it's worth the hump), though of course free it better than non-free.

    Thank you!

    I used this solution a bit backwards: Turn.js: the page flip effect in HTML5

    However, licensing is not clear for version 4. You may want to contact the developer about potential costs: blasten (Emmanuel Garcia) · GitHub

  • Create a layout fixed ePub with page flip and "double page view".

    Hello

    I try currently to create an eBook (for Apple iOS Devices) with inDesign CC with a layout fixed and I have 2 problems.

    (1) is it possible to have a page flip effect on leafing the ebook instead of just the effect of 'slide show' by default?

    (2) in my layout, I use a double layout (not very well how it is called in English since my inDesign is in another language). Using the iBooks on the iPhone or the iPad I see only the page left or right at the same time. Since I have images that overlap two pages, I want to be able to see the page left and right at the same time--> like a real book.

    Thank you very much for your help,

    Philipp

    1 n °

    2. in English, he called face to face and FXL Epub pages, you need to stop using it and move to the unique layout.

    All is not lost. You can convert the "spreads" on the export, as shown in this screenshot:

  • Flash Page turn effect

    Hello

    I need to know how to create a brochure in Flash - but I need to turn the pages to let the user highlight the lower right he page and click and drag to stimulate a turning page effect to go to the next page. Could someone help me please in this matter. A link to a site with tutorials would help. And oh, do I need an external plug in? because I would like to create from scratch, so I can get hands on creativity.
    I downloaded page flip but the interface is not quite what I want my design to look like and there are additional buttons etc. that I didn't need. I am a user of flash level environment, more on the design side, no development, suggest that so any help will be much appreciated

    Kind regards

    Ryan

    Ryan Padyachie says:
    > Hi there
    >
    > I need to know how to create a brochure in Flash - but I need to make pages
    > turn to leave the user highlight the lower right corner of the he and
    > click and drag to stimulate active effect in order to access the next page of a page.

    http://PageFlip.Hu/free.php

    --
    Best regards

    Urami

    --
    "Never play leapfrog with a Unicorn."


    If you want to send me a message - DO NOT LAUGH at MY ADDRESS

  • Someone at - he tried updated ePub page flip animation?

    So I found this link on the new features of the InDesign ePub: https://helpx.adobe.com/indesign/how-to/interactivity-fixed-layout-epub.html

    Did anyone tried page flip animation with improved ePub, again? If so, how did - he go?

    As far as I know, the Page Flip animation is only SWF. I think you're out of luck.

  • reversal of a clip (card flip effect)

    Hello

    There are several ways to code the card with pictures and movies flip effect, those that I found is very complicated.  Is it possible to use the card flip on a clip in a simple way?

    any help is very appreciated,

    Sam

    As a simple explanation of how do it, all you have to do is to change the rotationX or property rotationY movieclip of 180 degrees (use a Tween for a gradual change).

    If you want the effect of turning over a card, then you need to have both sides of the card in the movieclip also separate movieclips.  No matter which side is indicated first must pass over the other side and be made invisible to halfway through changing the rotationX or rotationY property.

  • page transition effect

    Is it possible to add a page transition effect "fade in" your page in dreamweaver CS5.5?

    JQuery - http://www.onextrapixel.com/2010/02/23/how-to-use-jquery-to-make-slick-page-transitions/

    CSS - http://tympanus.net/codrops/2012/01/30/page-transitions-with-css3/

    The JQuery will work on more devices that the CSS, but the CSS are the way things are going with recent browsers.

  • Creating an interactive pdf of page flip...

    Is it possible to use a program like InDesign CS4, export to Acrobat Pro and have the final result to do the following:

    • Act as a page flip/flipping book

    • Still have the opportunity to enter a text and submit

    • Send as e-mail, upload to the web and print

    Thank you


    Jayson

    ... but it can be achieved by using a Flash, embedded component in the PDF file.

  • URL link in flash page flip book

    I am very inexperienced to what I'm trying to accomplish.

    I created a flipbook in flash. On a page in the book, I made a button that makes a link to an external url. When I place the fast file from this page on my site, the link works. I made a link on my homepage to the flipbook. But when I opened the flip book the url link does not work.

    There, someone knows what's the problem?

    Thank you

    If the page flip in which the swf is asigned interactive code, such as the one you use to flip the page, it could be blocking access to the clickable objects in the swf file.

  • Page Flip reload

    Hello

    In my flash file, I have incorporated one .swf (another page flip of my previous posts) who is in charge of the flash fileclick the button of "clothes".  When I leave this page, it discharges. However, when I click on "Clothing" once again with the .swf, the flip page does not load.

    Reference:
    http://www.lucysonlinestore.co.cc/test/testhome.html

    To load the pageflip (under 'clothing'), I use:

    var myLoader:Loader = new Loader();

    addChild (myLoader);
    var url: URLRequest = new URLRequest ("magazine_flip.swf");
    myLoader.x = - 300;
    myLoader.y = - 165;

    myLoader.load (url);
    myLoader.unload ();

    To unload (for all the other buttons), I have:

    myLoader.unload ();

    All advice appreciated.

    in your as2 swf frame 1 line 1, add:

    This ._lockroot = true;

  • ActionScript 2.0 and program Page Flip.

    Again any help would be greatly appreciated here. You people are impressive.

    With the help I have already received, I was able to solve a problem only to face another.

    I have my "stationary caption" works fine but when I place my new AS2 swf file in my
    Program the Flash page flip which do not work.  Thets hotspo are there, but without the legend of hover.

    I read on the site of page flip that, ' If your page contains any ActionScript code, avoid using these.
    variables such as _root or _level0, pointing to the clip on your page. The book inside your page is not
    more long _root or _level0. ».

    I noticed that the ACE includes code that says _root in three different places.  I am very new to AS and I
    have no idea what should be deleted or added to this when _root is to make it work for my Flash page flip
    to work properly

    Here is my as any help would be great and the simpler the better if possible.  Thank you.



    D901.onRollOver = function() {}

    captionFN (true, "D901 \r 1 diamond earrings 3/4 CT.") t.w. $2 975 ", this);
    this.onRollOut = function() {}

    captionFN (false);

    };

    };
    D902.onRollOver = function() {}

    captionFN (true, "pendant diamond D901 \r 1 1/4 CT.") (TW $1 950", this);
    this.onRollOut = function() {}

    captionFN (false);

    };

    };
    D903.onRollOver = function() {}

    captionFN (true, "D901 Diamond Ring \r 3/4 c. t.w. $1 650", this ");
    this.onRollOut = function() {}

    captionFN (false);

    };

    };
    captionFN = function (showCaption, captionText, Anom) {}

    If {(showCaption)

    _root.createEmptyMovieClip ("hoverCaption", this.getNextHighestDepth ());
    Cap.desc.Text = captionText;
    Cap._width = 4 * cap.desc.text.length;
    Cap._alpha = 90;
    //
    If ((bName._width + bName._x + cap._width) > Stage.width) {}

    XO = - 2 - cap._width;
    Yo = - 17;

    } else {}

    XO = 2;
    Yo = - 17;

    }
    hoverCaption.onEnterFrame = function() {}

    Cap._x = _root._xmouse + xo;
    Cap._y = _root._ymouse + yo;
    Cap._visible = true;

    };

    } else {}

    delete hoverCaption.onEnterFrame;
    Cap._visible = false;

    }

    };


    Not at all, you just use the line

    This ._lockroot = true;

    before all your code... once, by himself.  What led you to imagine using it as you have done?

    If you are looking for the _lockroot property in the Flash help documents will be explained what is and how to use it.  The help of documents can I that, for just about everything, little of the language you use, then you must learn how to use them and turn their first.

    No matter how fast you want to get where you're going, you will raise every time and get nowhere unless you slow down and do things common sense - and it is not limited to working with Flash.  You can't rely on others for your problems, especially when you are the only one to be paid to solve.  I know that most often when someone posts here indicating that they are on a tight schedule, regardless of the amount of honey they establish how people here are, they are less likely to get of aid because it's quick to all notification that they will do the job of someone for them and no one is there to make a little... like me are freelancers who design things in life... most is here to help those who show effort and desire to learn.

  • Flash Page Flip

    Hello.

    I want to request a page Flip Flash. Are there any free on the web? Or is it the source code open source?
    All I could find is only of the trial or free, but with the logo and the website of the company. It's totally free.

    Thank you.

    Have a look here, on the list of popular posts to the right

    http://76design.com/ShiftControl/

  • Problem go to the next page after effect from scratch

    Anyone know what could be the problem we are having?  We did the scratch effect and it works on the page, we have created.  Very well.  But we are unable to move to the next or previous page.  Complete the wipe away, we're stuck on this page.  We cannot move out of it.  Any suggestions?

    Add navigation buttons to the page or leave an empty space at the top or at the bottom, which can be slipped.

Maybe you are looking for