1 Reply Latest reply on Jun 19, 2006 5:37 PM by NSurveyor

    Variable Name with onRelease

      Is it possible to use a variable name with onRelease?


      _root[_global.fullName].onRelease = _root[_global.fullName].onReleaseOutside = function() {

      BTW the above one does not work. I have also tried to use a mouse listener but the script does not function properly.
        • 1. Re: Variable Name with onRelease
          NSurveyor Level 2
          That should work. It will work if you have a clip, _root.abc, and you have _global.fullName = "abc";

          However, if you have a clip, _root.abc.DEF, and you have _global.fullName = "abc.DEF"; it will not work. Array access operator will only evaluate for an instance within the specified parent clip. If this were to be all done using array access operator, you would need: