Change state of an object followed by page link

Comments

1 comment

  • Avatar
    Tony Redhead

    Hi Nghia,

    Unfortunately there is no way right now to initiate a section change in an Action Hotspot. I'm also pretty sure that "MouseDown" and "MouseUp" are treated as one action by iOS. So you couldn't do a mousedown, change color, mouseup go to page. You would have to do it as first tap, change the color or button (and script) second tap go to the new section.

    Rather than move to a new page to show new content you can change the color state and show content local to that section as an alternative.

    To do that we use Action Hotspots and we need two objects, on our P1-1.pdf, that contain pdf's made up of two pages each.

    In the case of the button we want a pdf who's first page, green, with the word "Open" on it and the second page, orange, with the word "Close" on it.

    For the content area we need a two page pdf whose first page doesn't have anything on it. This means it will be displaying a blank ie transparent page on load so it's invisible. The second page will contain the content we want to reveal when the user taps the "Open" button.

    The only other thing to do is to attach Action scripts to both the first and second page of the button pdf that actions a. the change of color of the button b. the reveal/hide of the content. I've attached an Oomph sample and an InDesign document so you can review them. 

    Sample_screens.png

    Here are the steps I went through.

    1. Create two fields on a blank page

    2. Select the first field that will be your button and create a hyperlink called "MyButton"

    3. Select the second field that will be your content area and create a hyperlink called "ContentPanel"

    This effectively turns them into Object containers.

    4. Create 2 InDesign pages that match the size of the field you have used for "MyButton"

    5. Make each a different color and add text "Open" on the first one and "Close" on the second one

    6. Group the color field and the text on the first button and create a hyperlink called "Action,ContentPanel,Page=2,Transition=Dissolve,Action,MyButton,Page=2,Transition=Dissolve"

    This means that when someone taps on the button, the pdf inside the "ContentPanel" will display page 2, and the pdf inside the "MyButton" will also display page 2.

    7. To make it all go back to the original status group the color field and text on the second button and create a hyperlink called "Action,ContentPanel,Page=1,Transition=Dissolve,Action,MyButton,Page=1,Transition=Dissolve"

    8.Create 2 more InDesign pages that match the size of the field you have used for "ContentPanel"

    9. Leave the first one blank on the second one put the content you wish to display. It could be a IPS or a VIPS or HTML etc.

    10. Export the page with the two fields as P1-1.pdf

    11. Export the two pages of "MyButton" to a folder called "MyButton" as S1-1.pdf

    12 Export the two pages of "ContentPanel" to a folder called "ContentPanel" as S1-1.pdf

    And off you go. It sounds a bit long winded but it only takes a minute to set up.

    Here's the final file structure...

    screenshot196.png


    I know it doesn't help with the section change but this may help.

    regards,

    Tony

Please sign in to leave a comment.

Powered by Zendesk