Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Menu Transition (sideways scroll)

Awesome Actions!

Menu Transition (sideways scroll)

by  BigBadDave  Posted    (Edited  )
www.byngdesigns.co.uk/tek-tips/menuTransition2.swf

How to do this effect gets asked alot in this forum so heres a quick FAQ.

[color green]
Code:
onClipEvent (load) {
    var clip = _parent.holder;
	var targetX = clip._x;
	var goPage = 0;
	var pageWidth = clip.area1._width;
	var speed = 6;
}
onClipEvent (enterFrame) {
    newPosition = targetX + -1*(goPage)*pageWidth;
	clip._x += (newPosition-clip._x)/speed;
}
[/color]

www.byngdesigns.co.uk/tek-tips/menuTransition2.fla
www.byngdesigns.co.uk/tek-tips/menuTransition2.swf

Regards

Big Bad Dave
[img http://www.byngdesigns.co.uk/tek-tips/spider.gif]
www.byngdesigns.co.uk
davidbyng@hotmail.com
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top