Scratch the original post… it was premature.
I decided it was easier to use an onEnterFrame function to script my movement and I’ve figured out the logic for what I am trying to accomplish…
Here’s some code:
var degrees:Number = 360 / containerArray.length;
var rotation:Number = 0;
for(var i:Number = 0; i < containerArray.length; i++){
containerArray*.onEnterFrame = function(){
this._x = this._x + Math.cos(rotation * (Math.PI/180)) * 10;
this._y = this._y + Math.sin(rotation * (Math.PI/180)) * 10;
}
rotation = rotation + degrees;
}
In the above code, degrees is the number of degrees I want each item to move in relation to a circle, rotation is the actual angle I want to use in a particular movement…
the problem is that every clip is using the same (the first) value for rotation… how can I effectively update the rotation value so that each call to onEnterFrame() uses the correct value?
Any ideas?
Thanks again.