3 Replies Latest reply on May 15, 2008 6:15 AM by kglad

    Passing a variable value into a parameter

    Think Seed
      Here's a general example (not all of the code):

      _global.xPosition = function(whichMc:MovieClip, xStart:Number, xEnd:Number):Void {
      new Tween (whichMc, "_x", Strong.easeOut, xStart, xEnd, 1, true);

      function loadFunction(success:Boolean):Void {
      if (success) {
      var image01ClosedPosition:Number = this.firstChild.childNodes[0].attributes.imageChangeX;

      hit01.onRollOver = function() {

      In the XML file, the value I'm pulling in is -29.
      If I do a trace of imag01ClosedPosition, I get the correct value of -29.
      If I change the call to the function to read xPosition(img01,-29,0); this also works

      I just cant seem to get it to work the way I have it above.
      (I know I left a lot out, but just wanted to give an idea of the part that's not working.)