This time we will create the two actions for controlling the audio before we attach those actions to the button. Why? Because we are going to attach two actions to one button. Then we will tell the button to remember which action it performed last and when clicked again to perform the other action. This works like a light switch. If the light is off, you use the switch to turn the light on. If the light is on, you use the same switch to turn off the light. This is commonly called a toggle button.
Before we can set the toggle button, we need to create the two actions that will control the music.
Note: We have already set the audio to start playing when the app opens to the cover page.
Pause the audio
Resume the audio
- Select the Project and Pages icon in the Categories bar.
- Click the Actions tool in the Toolset (third tool in second row)
- In the Add Actions dialog box, rename the action to "musicBgOFF".
Notice that the Default and Over button state controls are grayed out. This is because we are not yet attaching the action to any layer. - In the Interactions panel, open the Audio list and choose Pause Audio.
- Choose the musicBg audio file from the pop-up box.
- Click Create.
- Name the action "musicBgON".
- From the Audio list, choose Resume Audio and select the same musicBg audio file as before.
- Select the musicbtn layer.
- Select the Interactions icon in the Categories bar.
- Click the Add Button tool in the Toolset to open the Add Button dialog box.
- Rename the button to "musicBgTog".
- The Default and Over button states will be the musicbtn layer.
- In the Interactions panel, open the Common list.
- Choose the Play Random action to open the Suffle dialog box.
- Click the Plus button to open the list of actions.
- Select the musicBgOFF action.
- Click the Plus button again and choose the musicBgON action.
- Click Create to close the dialog box.
You will notice that the two actions are added to the Actions panel in the Add Button dialog box. - Click Create to finish the button.
- Select the infobtn layer.
- Click the Interactions icon in the Categories bar.
- Click the Add Button button from the Toolset.
- In the Add Action dialog box, name the button "info_pg".
- We want to use the infobtn layer for both the Default and Save button states.
- In the Interactions section, expand the Common list.
- Select the Go To Page option and choose page29 from the drop-down list.
- Click Create.
Select the Export Current Page Only icon and click Publish to preview the animation.
Go to your LearnKwik folder and make a backup copy of the Template project folder. Rename the backup folder by adding the current date to the end. (TemplateMM-DD-YY).
← Back
These tutorials are for the older version of Kwik 2 and may not be much help when using Kwik 3 and above. If you are having trouble, please use the Kwik forum
Kwik product, the Kwik logo and Kwiksher are properties of Kwiksher.com - Copyright 2011. Screen shots used by permission.
Copyright 2018 Adobe Systems Incorporated. All rights reserved. Adobe product screen shot(s) reprinted with permission from Adobe Systems Incorporated. Adobe, Photoshop, Photoshop Album, Photoshop Elements, Illustrator, InDesign, GoLive, Acrobat, Cue, Premiere Pro, Premiere Elements, Bridge, After Effects, InCopy, Dreamweaver, Flash, ActionScript, Fireworks, Contribute, Captivate, Flash Catalyst and Flash Paper is/are either [a] registered trademark[s] or a trademark[s] of Adobe Systems Incorporated in the United States and/or other countries.