Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 22nd, 2025, 7:47 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Toogle switch
PostPosted: August 9th, 2005, 11:17 am 
Offline

Joined: August 9th, 2005, 11:10 am
Posts: 3
I have only just bought Opus and am creating my first presentation.
I have a page which shows a video clip. I can make a button which mutes the audio and another which unmutes the audio
I would like to combine these functions into one button, so one click mutes audio and the second unmutes it and so on.

Any advice?

_________________
Andrew


Top
 Profile  
 
 Post subject: Variables
PostPosted: August 9th, 2005, 1:02 pm 
Offline

Joined: October 25th, 2004, 2:20 pm
Posts: 686
Location: Naperville, Illinois (USA)
Opus: 7.05
OS: Win XP SP3
System: P4 3.2GHz 1GB RAM 2-TB HDs + 4 more
Andrew --

Welcome to the world of OPUS! We're glad you joined us.

To make a Button Object perform different Actions each time you Left Click requires the use of a Programming "If" statement and a Variable.

After you create your Button Object, the Actions Window automatically opens with a "Left Mouse Click" default Trigger already in place. You need to go to the Programming tab and double click "If". You then need to create a New Variable. OPUS has many System Variables. You don't want to use them (for this project). Press the "New" button and name it "Mute$." Variables can be Numbers or Text. I learned to use "$" in the name if a Variable was Text. Let's assign it an initial value of "Off" (Case senstive). Click "Ok." Go to the "Compare with" input field and type "Off" and click "Apply."

Now add an Action of "Change Volume." Make the value of the volume zero so the audio is off. You'll have to select which audio source you are adjusting.

Click the Programming Tab again and select Variables, then click "Set Variable. From the drop-down list, select your "Mute$" variable, and in the "Text" field type "On" (without the " " marks). Click "Apply."

You're half way done. Click the Programming Tab again, and select Programming, then click "Else." You could re-do the Change Volume and Variable set steps again. Let's take a shortcut and highlight "Change Volume" and "Mute$=On" then right mouse click and Copy. Click on "Else" and do a Paste.

Click on "Change Volume" and increase the volume to 100%. Click on "Mute$=On" and change the Text value to "Off." Click Apply or OK and you should be done.

Take a look at what you've done. If you click the Button and the Mute is Off, then OPUS will lower the volume to nothing, then change the Mute to On. If Mute is On, the OPUS changes the volume to full on, and changes the Mute variable to Off.

Let us know how you do with this. It's actually more complicated to explain than it is to do.

_________________
Fred Harms, Extraordinary Demos
Naperville, Illinois (USA) 630/904-3636
demofred@aol.com


Top
 Profile Visit website  
 
 Post subject: IT WORKS
PostPosted: August 9th, 2005, 1:21 pm 
Offline

Joined: August 9th, 2005, 11:10 am
Posts: 3
Thanks for the advice. You're right very difficult to explain but easy to do.

Thanks Again

_________________
Andrew


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group