PDA

View Full Version : making a navigational scrollbar


kcbobacey
01-14-2002, 11:42 PM
I created a horizontal scrollbar using one of your tutorials. i think it was called "Continuous scrolling with graphic objects" or something like that. And i got mine to work but now i'm tryign to make each object into a button so when clicked it will take you somewhere else. this is where i get confused. i read your paths tutorials but i still can't pertain it to my problem. i tried making one object, which is within a movie clip which is within a mask and put on the main stage. I tried to make that button go to and play frame 1 of scene 2 and it didn't work. i just kinda want to know some general rule or idea for getting from one place to another in my kinda of situation. I'm sorry i'm not very good at describing what i mean. you can look at that tutorial that i referred to, to see what i mean- just picture button objects scrolling instead of text scrolling.

thanks a lot-

kc

Billy T
01-14-2002, 11:54 PM
you can target the main timeline from anywhere - it doesnt matter how many layers deep your button is embedded into various mc's or whatever

just give your button this action

on (release) {
tellTarget ("_root") {
gotoAndPlay ("Scene 2", 1);
}
}


or

on (release) {
_root.gotoAndPlay ("Scene 2", 1);
}

I highly recommend you dont use scenes. Instead, use frame labels in the one scene and make the timeline jump between those

cheers

Ricod
01-15-2002, 08:32 AM
Follow Billy's recommendation. If u really want to use scenes, label the 1st frame anyway. Flash 5 seems to have problems with scenes when u call them from anywhere else but the _root. Then u just jump to that frame when u use the appr. label :
_root.gotoAndPlay("1stFrame2ndScene");
or sumthing more suitable.