Hey all -
Anybody out there who can lend a hand on this one would be a LIFESAVER.
My issue is best described by a working example. Check it out:
go to http://www.ronniewood.com
and click on Music --> History
I’m looking to create something similar, in which a MC will move around (slide left-right) based on how the user manipulates a scroll bar, much like in the ronniewood.com site. But I’ve got no idea where to start. If anyone’s got any hints, or if the concept looks familiar - I’d be most grateful for some feedback.
Thanks folks,
Tim
tlyons@berklee.edu
You could make something like that with a movieclip which contains all of the content, then mask it so you wouldn’t see the entire mc but only a rectangle in the middle of the screen.
I"m not sure whether you use Flash MX or not, but since this thread was posted in the Flash MX forum …
Place the mc on the postion you want it to start. Remember this x position or write it down somewhere. Now move it to the position you want it to be if the button is pressed. Also, remember this x position.
Now make a new movieclip and call it slidercontrol or somethin’ like that. Apply this code to it:
[AS]onClipEvent(load){
_root.slider = startxposition
}
onClipEvent(enterFrame){
_root.movieclipyouwanttomove._x = _root.slider-(_root.slider-_root.movieclipyouwanttomove._x)/1.2
}[/AS]
Now for the button when clicked you want the mc to move, apply this as :
[AS]on (release){
if (_root.slider = startxposition){
_root.slider = endxpostion
} else {
if (_root.slider = endxposition){
_root.slider = startxposition
}
}
}[/AS]
If you have any questions left, pm me and I will help you out 