Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. stop();
  2.  
  3. lso = SharedObject.getLocal( "home.preschool.kidscbc.cbc.ca", "/", false );
  4.  
  5. if( lso.data.vol != undefined ) {
  6.     if( lso.data.vol == 0 ) {
  7.         var snd:Sound = new Sound();
  8.         snd.setVolume( 0 );
  9.         is_muted = true;
  10.     }
  11.     else {
  12.         var snd:Sound = new Sound();
  13.         snd.setVolume( 100 );
  14.         is_muted = false;
  15.     }
  16. }
  17. else {
  18.     var snd:Sound = new Sound();
  19.     snd.setVolume( 100 );
  20.     is_muted = false;
  21. }
  22.  
  23. ss = new stage_scale( 1.35, false, false, this, "CON" );
  24. ss.start_resizer();
  25.  
  26. function lc_mute( _b )
  27. {
  28.     is_muted = _b;
  29.  
  30.     if( is_muted ) {
  31.         // is_muted = false;
  32.         var snd:Sound = new Sound();
  33.         snd.setVolume( 0 );
  34.     }
  35.     else {
  36.         // is_muted = true;
  37.         var snd:Sound = new Sound();
  38.         snd.setVolume( 100 );
  39.     }
  40. }
  41.  
  42. lc = new content_lc( lcid );
  43. lc.addEventObserver( this, 'lc_mute', 'lc_mute' );
  44. lc.addEventObserver( this, 'lc_show_help', 'start_help' );
  45.  
  46. //****************************
  47. // HELP FUNCTION
  48. //****************************
  49. function start_help(_b) {
  50.    
  51.     //play help animation
  52.     template.playHelpAnimation();
  53. }
  54.  
  55. function end_help()
  56. {
  57.     //end help
  58.     lc.stop_help();
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement