Welcome, Guest
  • Author Topic: Why is the attached movieclips appearing in the corner???  (Read 859 times)

    Glenn Ko

    • Jr. Programmer
    • **
    • Posts: 90
      • View Profile
      • Email

    Code: [Select]

    graphDrawer.moveTo( this["xPos"] , this["yPos"]);
    this.attachMovie(mySym, "rangeSym"+i, 10+i, {isLower:true} );
    graphDrawer.lineTo( this["xPos"], this["yMax"] );
    this.attachMovie(mySym, "rangeSym"+i, 1000+i, {isLower:false} );

    The attached movies appear on the stage displaced at the corner instead of being at xPos, yPos, and yMax respectively.. I understand that moveTo only affects the drawing start point fo r the drawing API. However, i did this:

    Code: [Select]

    graphDrawer.moveTo( this["xPos"] , this["yPos"]);
    graphDrawer.attachMovie(mySym, "rangeSym"+i, 10+i, {isLower:true} );
    graphDrawer["rangeSym"+i]._x=this["xPos"];
    graphDrawer["rangeSym"+i]._y=this["yPos"];

    graphDrawer.lineTo( this["xPos"], this["yMax"] );
    graphDrawer.attachMovie(mySym, "rangeSym"+i, 1000+i, {isLower:false} );
    graphDrawer["rangeSymUp"+i]._x=this["xPos"];
    graphDrawer["rangeSymUp"+i]._y=this["yMax"];

    Still no result. The attached movies displaced at the corner.

    BTW, the lines draw correctly, so there's perfectly nothing wrong with my this '["xPos"] ' variables and such.

    Also, does anyone know how to use initalisation propreties (ie. create customisable initialisation prpoerties) for your particular movie clip in the library? Am i doing it the right way? (ie. just dump in the variable "isLower=false" into the movieclip??).

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Try:

    graphDrawer.attachMovie(mySym, "rangeSym"+i, 10+i, {_x:10, _y:10, isLower:true} );

    Jorge