[Flashcoders] Object move

2006-04-01 Thread Olasz RĂ³bert
Hi all! Since this time i was only a reader of your mailing list, but now I have a problem which needs help. I have 2 rectangles on the sceen. I can scale them with a slider, but i would like to move one of them left to right and back also a slider. Ive attached the code the last row should move

Re: [Flashcoders] Object move

2006-04-01 Thread stacey
Have you traced back the value you are trying to use to change the x pos? lap2_mc._x += int ((slidertav_mc.slider_mc._x + slidertav_mc.width/2)+100); Shouldn't it be _width? try going : var amount:Number=(slidertav_mc.slider_mc._x + (slidertav_mc._width/2)+100); Also, one thing you could do