PDA

View Full Version : while zooming; _x value dosen't change??


texbala
04-14-2003, 03:02 AM
when we zoom in and out of a mc using xscale, yscale... the _x, _y co-rodinates doesn't change??

pls. check the attached file for a simple demo??

I need to check the value how much the circle has moved from a static point. Say the left end point of the circle before zooming and after zooming, i need the difference of it...

say I zoom by the scale factor of 1.15
[AS[
on(press){
circle._xscale *= 1.15;
circle._yscale *= 1.15;
}
[/AS]

thnx!!

magicwand
04-14-2003, 03:38 PM
use _width and _height.
circle._width will give you width.
etcetc..
hope it help.

____
04-14-2003, 07:30 PM
I took quick look at the file
And it looks like you need to make a movie clip that loops btwn frame 1 and 2 that way its always updating what the values are