Results 1 to 2 of 2

Thread: Pageflip problem

  1. #1
    Join Date
    Jan 2007
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Pageflip problem

    I need some help on pageflip. This is a very good application, but i haven't found out how can i had dynamic content to the pages.

    I've already created a dynamic text box in a page and tried to insert content from an external file. But what i want is to know how can i call each page. I've tried with the instance name, but it wasn't possible. I believe, the instance name of the pages are created dynamically.

    I've putted in page two this code: trace(this); and got this result:
    - when i turn the cover:
    - _level0.pages.flip.p2.page.pf.ph.pic
    - _level0.pages.flip.p2.page.pf.ph.pic
    - _level0.pages.p1.page.pf.ph.pic

    - when i turn to page 3 and 4:
    - _level0.pages.p1.page.pf.ph.pic
    - _level0.pages.p1.page.pf.ph.pic
    - _level0.pages.p1.page.pf.ph.pic
    - _level0.pages.p0.page.pf.ph.pic

    I'm trying to understand the logic to identify which page I'm turning, but i didn't get there yet.


    Can anyone help me to understand this?

  2. #2
    Join Date
    Jan 2007
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Problem almost solved.

    It was easy to solve this problem.

    There are two vars that save the current pages: left page and right page.
    And there is another var that saves the current page number.

    so the answer was that simple as:
    - leftPage.text = page;
    - rightPage.text = page+1;

    However this vars is only when the page stops flipping, and not while it is flipping. In this case, the page number that i'm inserting in a dynamic text box only appears when the page stops flipping. Now i'm searching a way of the page numbers also appears when the page is flipping.

    If anyone knows this, it would be a good help.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •