i4n0
08-18-2003, 10:47 AM
hi,
when creating a movie clip using actionscript in the root timeline, the clip x,y coordinates appear to be the top left of the stage. Within the movie clip I created this way, I wrote a function to draw a set of rectangles at very specific coordinates.
I then changed the way my file was structured and am trying to draw the same rectangles with the same locations inside another movie clip instead. The problem is that the origin in the movie clip is it's centre and no longer the top left of the stage. Can this be changed or do I need to go through my function adding offsets to every coordinate reference in my various lineTo() and moveTo() statements just to get back to the poisitions I want?
This is in MX, if the procedure should be any different to previous versions.
Thanks
ian
when creating a movie clip using actionscript in the root timeline, the clip x,y coordinates appear to be the top left of the stage. Within the movie clip I created this way, I wrote a function to draw a set of rectangles at very specific coordinates.
I then changed the way my file was structured and am trying to draw the same rectangles with the same locations inside another movie clip instead. The problem is that the origin in the movie clip is it's centre and no longer the top left of the stage. Can this be changed or do I need to go through my function adding offsets to every coordinate reference in my various lineTo() and moveTo() statements just to get back to the poisitions I want?
This is in MX, if the procedure should be any different to previous versions.
Thanks
ian