9 Replies Latest reply on Jul 20, 2009 10:31 AM by kglad

    Need help with conditional statement.

    incubox Level 1

      I have a conditional setup that needs to check for 6 values, and I'm not sure how to set it up.  I know the way I have it setup is wrong, but I'm stuck here after several attempts at other variations. 

       

      LINE OF CODE IN QUESTION:

      if (eventObject.info.name != "marker2" | "marker4" | "marker5" | "marker6" | "marker7" | "marker8" )

       

      FULL CODE BLOCK:

      var listenerObject:Object = new Object();
      listenerObject.cuePoint = function(eventObject:Object):Void {
          if (eventObject.info.name != "marker2" | "marker4" | "marker5" | "marker6" | "marker7" | "marker8" ) {
              var listenerObject:Object = new Object();
              listenerObject.stateChange = function(eventObject:Object):Void {
                  trace(_root.theVideo.state);
                  if (_root.theVideo.paused) {
                      mclContinue._visible = true;
                      var myTween:TweenLite = new TweenLite(mclContinue, .35, {_alpha:100, ease:Back.easeOut, onComplete:contBtn});
                  } else {
                      var myTween:TweenLite = new TweenLite(mclContinue, .35, {_alpha:0, ease:Back.easeOut, onComplete:contBtn});
                  }
              }
              _root.theVideo.addEventListener("stateChange", listenerObject)
          }
      }
      _root.theVideo.addEventListener("cuePoint", listenerObject)

       


      Thank you.