object Array problem/help?
OMG!.. I can NOT for the life of me figure out what I am doing wrong here:
I am populating an OBJECT ARRAY.... and passing it into the 'attachedClip' form the library.. the clip in the library has a function hardCoded into it..to work/grab the values from the objectArray once it is pushed into it..
Code:
//----- line API code -----//
function lineOn(){
for(i=0; i<connectionArray.length; i++){
_parent.createEmptyMovieClip("line", 100+i);
this.swapDepths((100+i)+_parent.getNextHighestDepth());
_parent.line.lineStyle([connectionArray[i]].lineThickness, "0x" + [[connectionArray[i]].lineColor], 100);
//_parent.line.lineStyle(this.lineThickness, "0x" + this.lineColor, 100);
_parent.line.moveTo(this._x, this._y);
trace("Clip "+[connectionArray[i].id]+" X: "+_parent[connectionArray[i].id]._x+" / Y: "+_parent[connectionArray[i].id]._y);
trace("Distance: "+connectionArray[i].distance+" / Time: "+connectionArray[i].time);
_parent.line.lineTo(_parent[connectionArray[i].id]._x, _parent[connectionArray[i].id]._y);
}
trace("----------------");
};
I have been all over the place.. creating NEW vars.. strict data typing as well.. eval, Number() function...etc..etc.. nothing has worked.. I can trace out my values in the object array fine... but using them in the function to PLACE/DRAW the API line..just will NOT work..
I think I may have been looking at it for too long..LOL Im not sure whatthe deal is..since I can target/path to it..and trace out the values.. but I can NOT eithe, convert to a number to be used in the lineTo method(), or something...
any ideas??
thanks gang..