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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sliding effect 1

Status
Not open for further replies.

bubu

Programmer
Mar 3, 2002
463
RO
Hello guys!
I want to make an effect similar as this one:

...the difference is that i want to have 5 buttons and the movie to be 2850 pixels width.

Can smb please explain this one to me step by step?...it doesn't work for me and i think i'm missing something...some actionscript.

Any help would be appreciated.
Regards,
dragos.jpg

 
Thx Big this is what i wanted but i have to make some changes:

There will be no problem if i will make other movies for every area?...i will name them area1,2,... and the code will remain the same.

Thanks a lot!

dragos.jpg

 
I want some explaining pls:

I have understood what the code from the first keyframe does but what is the Symbol5 movieclip does?...pls explain a little the code.

Regards,
dragos.jpg

 
Thank you very much!!! it works like a charm.

But i still want you to explain me the code in the Symbol5 movieclip....especially the final part.
dragos.jpg

 
It's just the control clip that moves the holder area to the correct _x pos:

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;
}
Regards

David Byng

spider.gif


davidbyng@hotmail.com

while (Me < Drunk) {
Beer++
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top