Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Volume slider

0 views
Skip to first unread message

Paul

unread,
Sep 28, 1999, 3:00:00 AM9/28/99
to
I want to create a slider to control the volume of a
specific soundchannel. For this I will probably have to use
the "constrain to line" behaviour but that's as far as I
get. Can someone please help me?


* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!


Chuck Neal

unread,
Sep 28, 1999, 3:00:00 AM9/28/99
to
There are a number of volume and volume slider behaviors at
www.mediamacros.com/search.shtml


--
-Chuck

----------
Looking for pre-built code examples? Search our behavior database.
Trying to find that perfect Xtra? Search our Xtras database by type,
keyword or price.
Want to download full libraries of code? Check our behavior libraries page.
All this and more are available at www.mediamacros.com
----------


Paul <phunk200...@hotmail.com.invalid> wrote in message
news:09412a7e...@usw-ex0102-012.remarq.com...

Paul

unread,
Sep 29, 1999, 3:00:00 AM9/29/99
to
Thank you for your help, I looked around and here's what I
came up with:

on beginSprite
set the volume of sound 1 to 127.5
set the loch of sprite 2 to the left of sprite 1 + the
volume of sound 1
end

on mouseDown
repeat while the stilldown
set the loch of sprite 2 to constrainh (1,the mouseh)
set the volume of sound 1 to the loch of sprite 2
updatestage
end repeat
end

Sprite 1 is the bar and nr. 2 is the slider and it works!
Thanks again.

Chuck Neal

unread,
Sep 29, 1999, 3:00:00 AM9/29/99
to
Glad to help. You might want to "jazz" it up a bit more, by using the left
of sprite, width of sprite, etc to get the percentage across the bar and set
it to a percentage of the max volume. Just a suggestion.

;-)

--
-Chuck

----------
Looking for pre-built code examples? Search our behavior database.
Trying to find that perfect Xtra? Search our Xtras database by type,
keyword or price.
Want to download full libraries of code? Check our behavior libraries page.
All this and more are available at www.mediamacros.com
----------


Paul <phunk200...@hotmail.com.invalid> wrote in message

news:1f1200dc...@usw-ex0102-012.remarq.com...

0 new messages