Maybe someone can help quickly turn off or turn on the sound of the scene in Flash CS3 using AS 3.0.
thanks
What you want is the SoundMixer class. Just set the soundTransform object for this as follows:
Mute:
SoundMixer.soundTransform = new SoundTransform(0);
Unmute:
SoundMixer.soundTransform = new SoundTransform(1);
Put this line in your script if you want to stop the sound:
SoundMixer.stopAll();
Source: https://habr.com/ru/post/1716591/More articles:How to save date values partially? - sqlПараметры в функции FormsOf и SQL-инъекции - sql-injectionIIS 7, classic application pool, 100% CPU usage issue - iis-7How to determine if filters in a sheet have changed? - filterC compiler flag to ignore sign - cTutorials on creating and deploying a simple java portlet in pluto 2.0 - javaThe maximum size of actor queues? - performanceuse of different delegates - c #Learning how to use irony for .net - c #Minimal client that supports message-level security over the channel interface - wcfAll Articles