PDA

View Full Version : Smooth repositioning using MOVEY:)



gotemgreat
May 10th, 2005, 05:09 AM
Hiya,

I was able to put the script together for this menubar in the attached file... It floats on a seperate level just fine, but what I want is for it to smoothly move to the top of the page when a button is clicked, and stay within a two inch range. As you can see, it moves to the top of the page... but surely does not do it gracefully... it just jumps up there.

Not really sure how to put the rest of the script together for this... not really sure if it's even possible. Any insight would be greatly appreciated...

Peaceout!

matthewjumps
May 11th, 2005, 12:03 AM
have you tried using a position+= equation?

gotemgreat
May 11th, 2005, 12:37 AM
Nope, haven't tried that yet... not really sure how I would go about it. It would be great if you could guide me towards an example or tutorial. Maybe you could explain it a bit more in depth... any insight would be great! Thanks.

theflash
May 11th, 2005, 05:48 AM
Can you please provide more detail... I can help but I did not get your problem clearly.... which swf are you talking about ?

If u want to move the object gracefully tou should use either mx.transition class (not sure.. I think it's in there...) or you can write a script that will move the object with some acceleration/deacceleration... (like ease in/out and user maths :)

gotemgreat
May 11th, 2005, 07:35 AM
Hi and thanks for your response,

I am talking about the file name menubar.swf... I guess you can kind of disregard the other two files because they don't really pertain to what I want done with the menubar (whoops). I want that menubar to move smoothly and reposition itself within a small area (1 to 2 inches perhaps) towards the top of the screen. I found it quite challenging putting together the script that's on there now (cuz I am a newbie) and don't really know how to go about learning the transition class... I googled it but wasn't able to come up with much. I desperately want this thing to work properly... but I am learning and need help.

Thanks again!