Skip to main content
Participant
May 12, 2013
Question

Toggle buttons - problem

  • May 12, 2013
  • 2 replies
  • 828 views

I’m trying to create a “real” toggle button for play/stop audio using smart shape buttons so that if the “Audio Play” button is clicked, it displays the “Audio Stop” button.

I imported an audio file to use with slides (Audio – record to slides).

I use a  Master slide with two smart shapes “back” and “next” checked  “use as button” and  “pause project until user clicks”.

In the first slide there are two smart shapes: “Audio Play” and “Audio Stop”  .

In the property panel I named the smart shape “Audio Play”, “Bt_Play” and the smart shape “Audio Stop”,  “Bt_Stop”.

I checked for each smart shape “Use as a button” , “place object on the top”, “display for rest of project” . 

 

I created 2 advanced actions :

Action Name: Play

Assign cpCmndMute with 0

Show Bt_Stop

Hide Bt_Play  

 

Action Name: Stop

Assign cpCmndMute with 1

Show Bt_Play 

Hide Bt_Stop

 

I associated the “Play” advanced action to the button “Audio play” and the “Stop” advanced action to the button “Audio Stop”

I set the two buttons in the same location on the slide (selecting the two buttons -  right click – align – align and resize to the same size). 

 

Here is the PROBLEM:

The two buttons in the same location on the slide don’t work well. If I click the play/pause audio button  several times, it stops working, freeze  but never on the same slide, and I don’t understand why. (I made a new project from scratch but the buttons have the  same behaviors). This strange behavior appears in the Preview and published Swf.

 

 BUT if I just separate the two buttons on the first slide,  they work well on the whole project!

 

 Where is the mistake? 

I read the Lilybiri’s blog and the answers on Adobe forum, just another user had a problem almost  like mine  http://forums.adobe.com/message/5231376#5231376  but I have not found the solution.

 I use Cp 6.1.0.319 – Annual subscription Elearning Suite 6 – SO Windows 7 64 bit

 I can share a small project to find the solution. 

Thanks in advance for your help!

Elena

This topic has been closed for replies.

2 replies

Tara Aukerman
Inspiring
May 14, 2013

I'm struggling with EXACTLY the same thing. My advanced action has one more command (that the CC be turned off and on as well), and I've got the same problem. Would love to hear what your solution was!

Mine was to have each button in the toggle pair to be just a pixel or two different in size, and - because my nav is super-simple and uses Webding characters - make use of text alignment (left & center) so that neither the left nor the top edges of the smart shapes were in the same place, but that the play/pause and mute/unmute icons still lined up.

Elena57Author
Participant
May 18, 2013

I think I found the solution of my own question. I share it in the hope that it’ll be useful to other people. Remind that I use Cp 6.1.0.319. I modified the project as follows: 1) I unchecked “Visible in output” for the button “Audio Play” (Bt_play) 2) I  modified the AA associated to the audio on/off buttons as descrived below: Action Name: Play Assign cpCmndMute with 0 Show Bt_Stop Enable Bt_Stop Hide Bt_Play Disable    Bt_Play Action Name: Stop Assign cpCmndMute with 1 Show Bt_Play  Enable Bt_Play  Hide Bt_Stop Disable Bt_Stop In this way the two buttons in the same location work well as a real toggle button! Greetings Elena

Lilybiri
Legend
May 19, 2013

Hi,

Thanks for posting. Just one remark: if you hide a button it is automatically disabled, if you show it, will be enabled. So I don't think you need both statements. I need not to do that,

Lilybiri

Lilybiri
Legend
May 12, 2013

I created that example on blog (and YouTube) with 6.0. Now wondering whether 6.1 has disturbed something, didn't check that.

Before 6 it was not possible to have two interactive objects in exact the same place at the same time, even when one was hidden and the other made visible. I discovered that it did work in 6.

Just checked my file in 6.1.319 and the toggle works just fine. But sorry, have really no time now to check your file.

Lilybiri

Elena57Author
Participant
May 12, 2013

Thanks for the reply.  If I don't ask too much, can you send me your project that works fine? So I can find the differences with my project.  Thanks again.  Elena