Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-03-2006, 10:41 AM
Junior Member
 
Join Date: Jul 2006
Posts: 3
Default Stop Sound on Minimise

lo

I have a desktop pet which has sound playing while it's active.
Is it possible to stop the sounds when the app is minimised (right-click/minimise)?

thanks
Reply With Quote
  #2 (permalink)  
Old 07-03-2006, 02:36 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Stop Sound on Minimise

This can be done by handling the "onSize" event of the main window.

Code:
getMainWnd().onSize = function (type, width, height)
{
if (type == 1)
{
// add code at here to turn off the sound
Dialogs.msgBox("Minimized!");
}
else if (type == 0)
{
// add code at here to restore the sound volume
Dialogs.msgBox("restored!");
}
}
Reply With Quote
  #3 (permalink)  
Old 07-03-2006, 03:42 PM
Junior Member
 
Join Date: Jul 2006
Posts: 3
Default Re:Stop Sound on Minimise

very nice - thanks
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:44 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.