1 Reply Latest reply on Jan 12, 2011 3:27 AM by kglad

    onRollOut button not responding on fast/quick mouse mouvement

    Phet_Maly

      I got this expendable Bigbox I made for my client. All works well. The only problem I have is that, where there is a quick mouse (not event THAT quick) rollout, the action (closes the expended portion) doesn't work. It get's stuck and doesn't gotoAndStop(1).

       

      Someone can tell me what I'm doing wrong?

       

      Thanks for the help!

       

      Link to .fla: http://dl.dropbox.com/u/17204238/SMQ-600x250-110106.zip

       

      stop();

       

      closeBtn._alpha = 100;

      closeBtn.enabled = true;

       

      closeBtn.onRelease = function() {

           flash.external.ExternalInterface.call("closeBigbox");

           gotoAndStop(1);

           rolloverBtn.enabled = false;

           }

       

      rolloutBtn.onRollOut = function() {

           flash.external.ExternalInterface.call("closeBigbox");

           gotoAndStop(1);

           rolloverBtn.enabled = true;

           }

       

           

      clicktagBtn.onRelease = function() {

           function cFcTg(t) {

                              return (t.substr(0, 7) == 'http://' || t.substr(0, 8) == 'https://');

                  }

       

                  var fcTg = ''; var fcTt = '_blank';

                  var cTgM = 'clicktag'; var cTtM = 'clicktarget';

       

                  for (prop in this) {

                              var p = prop.toLowerCase();

                              if (p == cTgM && cFcTg(this[prop])) fcTg = this[prop]; if (p == cTtM) fcTt = this[prop];

                  }

                  if(fcTg == '' || fcTt == '_blank')

                              for (prop in _root) {

                                          var p = prop.toLowerCase();

                                          if (p == cTgM && cFcTg(_root[prop]) && fcTg == '') fcTg = _root[prop];

                                          if (p == cTtM && fcTt == '_blank') fcTt = _root[prop];

                              }

                  if(fcTg == '' || fcTt == '_blank')

                              for (prop in _level0) {

                                          var p = prop.toLowerCase();

                                          if (p == cTgM && cFcTg(_level0[prop]) && fcTg == '') fcTg = _level0[prop];

                                          if (p == cTtM && fcTt == '_blank') fcTt = _level0[prop];

                              }

                  if (cFcTg(fcTg)) getURL(fcTg, fcTt);

                  else getURL("http://noclicktagfound", fcTt);

      }