Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to turn sound off

Status
Not open for further replies.

disfasia

Programmer
Apr 20, 2001
378
CA
i have mc's with sound. i want the sound off. how to do this in a keyframe.

thanks

disfasia
 
well, i want to turn only the sounds off in certain mc's that are loaded up. isn't there just a simple "sound off" command without having to identify the object, etc.???

thanks
disfasia

ps. isn't today too beautiful a day to be inside????
 
You can always try...

stopAllSounds();

But that stops all currently playing sounds. If a new sound is encountered on some timeline after the action was used, it will play.

Regards. Affiliate Program - Web Hosting - Web Design
After 25,000 posts, banned on FK, but proud not to have bowed down to them!
 
i put this in the first frame of the mc but the sounds come anyway. how can this work to stop sounds in the 40 frames of the mc?

thanks again,

disfasia
 
hi oldnewbie,

were you able to see the fla yet? i hope you are well.

peace!
 
Couldn't open your .fla... Just crashes Flash!

Are you on Mac? Can you zip up the .fla, and make sure it's in a MX only format?

You'd have a better chance of getting an answer if your .fla was in a MX only format, and zipped up.

You would have to save a copy of your MX2004 .fla, (using Save as...) and changing the Document type to MX only in the Save as... window.


Regards. Affiliate Program - Web Hosting - Web Design
After 25,000 posts, banned on FK, but proud not to have bowed down to them!
 
Nope! I really don't get this! I've opened files from you before, but simply can't open these latest ones from you...

Are you on Mac? And on MX only?

Regards. Affiliate Program - Web Hosting - Web Design
After 25,000 posts, banned on FK, but proud not to have bowed down to them!
 
yes, i am on a mac, mx only. i will do it again and put it in the same place. this is odd. i did upgrade to tiger recently...and boy was that a nightmare process!

best
d
 
i checked and rechecked the document and yes, it was saved as flash mx (not mx 2004). i don't know what is up. i redid it and reuploaded it. see if this helps.

best
d
 
Nope! No go!

Opened your Fez .fla right after attempting this new one, and it opened fine!

Since you're on Mac you definately need to zip it up, but your most recent .fla (zipped), still crashes my MX.

Do you have FLV's in this .fla?

Have you set AS1.0 rather than AS2.0 in your MX2004 preferences?

Regards. Affiliate Program - Web Hosting - Web Design
After 25,000 posts, banned on FK, but proud not to have bowed down to them!
 
No there are no flv's and the actionscript says it is as2. But I am figuring out that the scripting has to happen in the "button.as" file. Is there a script that I can use that will turn off these button sounds? Here is the script...

/*
Button.as
Base class for four frame buttons.
*/

class com.macromedia.flashvideogallery.Button extends MovieClip
{
var handlerClip:MovieClip;
var method:String;

function Button()
{
useHandCursor = false;
}
function setClickHandler(m:String, hc:MovieClip):Void
{
method = m;
handlerClip = hc;
}


function onRelease():Void
{
onRollOver();
handlerClip[method](this);
}


function onRollOver():Void
{
gotoAndStop(2);
}

function onDragOver():Void
{
onPress();
}

function onRollOut():Void
{
gotoAndStop(1);
}

function onDragOut():Void
{
onRollOut();
}

function onPress():Void
{
gotoAndStop(3);
}

function setEnabled(flag:Boolean):Void
{
enabled = flag;
_alpha = flag ? 100 : 50;
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top