1 Reply Latest reply on May 23, 2006 2:14 PM by atog

    Using Variable Name problem with this_x

      Hello to all (on a Sunday afternoon),

      Briefly: Trying to load 32 movie clips (via the script below) onto the stage (dynamically). In theory, each clip (or box) will load through a For Loop and each name of the clip is loaded through the number created by the loop. The problem is the x and y position is ignored ONLY when I insert a variable name instead of "this" in f "this._x" or "this._y". (The variable I am using is _global.cl_Name) The clips load fine but all in the upper left hand corner of the stage.

      Any help or variation on this theme would be appreciated.
        • 1. Re: Using Variable Name problem with this_x
          atog Level 1
          You can pass an init object as the 4th argument to load movie.
          Basically this takes the form of braces encapsulating a comma seperated list of property_name colon property_value

          eg {_x: xpos, _y:ypos}

          _root.attachMovie(_global.cl_Name, _global.cl_Name, _global.clipHeight++, {
          _x: xValue,
          _y: yValue

          Happy Flashing