May 7, 2001 #1 directorguy Programmer Joined Nov 10, 2000 Messages 16 Location US does anyone know how to add a volume control icon in director to control my avi audio level? Thanks
May 8, 2001 #2 Baixinha Programmer Joined Dec 27, 2000 Messages 122 Location BR -- to add volume on mouseUp global volume put the volume of sprite 1 into volume if volume < 255 then put volume + 5 into volume set the volume of sprite 1 to volume else nothing end if end This value can be setted from 0 to 255. If you wanna reduce the volume you can use -5 ou another value. -- to reduce volume on mouseUp global volume put the volume of sprite 1 into volume if volume > 0 then put volume - 5 into volume set the volume of sprite 1 to volume else nothing end if end Upvote 0 Downvote
-- to add volume on mouseUp global volume put the volume of sprite 1 into volume if volume < 255 then put volume + 5 into volume set the volume of sprite 1 to volume else nothing end if end This value can be setted from 0 to 255. If you wanna reduce the volume you can use -5 ou another value. -- to reduce volume on mouseUp global volume put the volume of sprite 1 into volume if volume > 0 then put volume - 5 into volume set the volume of sprite 1 to volume else nothing end if end
May 18, 2001 #3 stueestu Technical User Joined May 18, 2001 Messages 2 Location GB xtra tip if you are working with soundfiles; ie .mp3 etc you will need to control sound 1 and not sprite 1 as shown below on mouseUp global volume put the volume of sound 1 into volume if volume < 255 then put volume + 5 into volume set the volume of sound 1 to volume else nothing end if end Upvote 0 Downvote
xtra tip if you are working with soundfiles; ie .mp3 etc you will need to control sound 1 and not sprite 1 as shown below on mouseUp global volume put the volume of sound 1 into volume if volume < 255 then put volume + 5 into volume set the volume of sound 1 to volume else nothing end if end