Hi, Im not sure what you mean, the x for the clips is simply: current_location._x
getting the reference is eg (if this is the movieclips parent): this["location_"+row+"_"+column] parsing the x and y from the name can be done (quick and dirty) with: var movieclipNameParts:Array = (""+clipreference._name).split("_"); var x:Number = Number ( movieclipNameParts[ 1 ] ); var y:Number = Number ( movieclipNameParts[ 2 ] ); greetz JC On 5/19/07, Johnny Zen <[EMAIL PROTECTED]> wrote:
Can anyone help me with this one. i have movie clips named location_0_0_mc location_0_1_mc location_1_0_mc location_1_1_mc set up in a grid style, so the number represent x and y or columns and rows // location_x_y_mc I need to a formula to work out if for example var current_location = location_0_1_mc var possible_location = location_1_1_mc if (current_location X >= possible_location X) { //do this } if (current_location Y >= possible_location Y) { //do this } etc etc Can anyone help? Thanks _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
_______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com