title: How to access Object function in another function
body: <p>In my <em>buildEstat function</em>, I build up my script element, and then I wait for it to load...then I call eSloaded(), which will create an Object on <strong><em>var contentStreamTag.</em></strong> </p>
  
  <pre><code>Object {} 
      - notifyPlayer: function()
      - post: function()
      - set: function()
  </code></pre>
  
  <p>My question is, in my <em>bindEvents() function</em>, I have some <em>play/pause/mute</em> functions. In those play/pause/mute functions, I need to use some object functions inside the var contentStreamTag, such as the <strong>post/set function</strong></p>
  
  <p>I am having a hard time figuring this out.  Please let me know if my question is confusing or does not make sense. </p>
  
  <pre><code>     buildEstat: function() {
  
          var eS = document.createElement('script');
          eS.type = 'text/javascript';
          eS.async = true;
          eS.src = ('https:' === document.location.protocol ? 'https://' : 'http://') + 'prof.estat.com/js/mu-5.1.js';
  
          var s = document.getElementsByTagName('script')[0];
          s.parentNode.insertBefore(eS, s);
  
          if (eS.addEventListener) {
              eS.addEventListener('load', function() {
                  eSloaded();
              }, false);
          } else {
              console.log('something not working')
          }
  
          function eSloaded() {
              var contentStreamTag = new eStatTag(confStreamingAnalytics);    
              // console.log(contentStreamTag);            
          }
      },
  
      bindEvents: function() {
          var self = this;
  
          this.buildEstat(function(){
  
          });
  
          this.dom.play.click(function() {
              $(this).css('display', 'none');
              $('.gp_pause').css('display', 'block');
              self.sound.play();
  
          });
          this.dom.pause.click(function() {
              $(this).css('display', 'none');
              $('.gp_play').css('display', 'block');
              self.sound.unload();
              self.sound.stop();
  
          });
  
          this.dom.mute.click(function() {
              self.sound.toggleMute();
              $(this).toggleClass('muted');
          });
  
          $('#goomplayer').addClass('animated bounceInUp');
  
      },
  </code></pre>