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

animating buttons 2

Status
Not open for further replies.

toughGirl

MIS
Mar 26, 2001
68
I want to create a button action that makes a tab slide down from the top of my screen. I understand the technique of creating an active button by switching to another scene. But I don't want to switch. I want to remain on my main scene.

The goToandPlay command sends the message to go to a certain frame on a named scene and play. I can easily issue a stop command before the tab sequence begins. However, I want multiple tabs, say 4, and can't figure out how I can incorporate these also.

If I indeed need to make seperate scenes, how do I successfully copy my end frame (main) sequence to the new tab scene?

Thank you.
 
make your tab a movie clip. On frame 1 put the tab off stage. when a certain button is pressed it tells the playhead to go to and play frame 2 which is the first frame of the animation. (frame 2 would be the tab off stage and say frame 20 would be the tab fully on stage. Simple motion tweening. I or one of the other guys can show you an example of this if you like.

If you need more help with this just post again. Ya' Gotta Love It!:)X-)
 
hi toughgirl

I'll rough up a quick example for you (or find a previous one to save me time).

Do you want the button to be the tab? Then the tab slides down? Just for clarification before i do anything.

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
No, I want a seperate button to activate the tabs motion of coming out. But now that you mention it, I will also need a method to recollapse the tab...
 
ok, then you follow what jeff said above, with each tab being a movie-clip. Your buttons shall tell the relevant tab mc to go-to-and-stop at the frame where the drop-down/across/whatever menu starts (have a stop action at the end of the drop-down tween). To make sure the rest of the tabs go back when you select a tab, use 'tell-target' to tell the other tab mc's to go-to-and-stop at frame 1.

I'll rough up an example for you now.

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 

If I indeed need to make seperate scenes, how do I successfully copy my end frame (main) sequence to the new tab scene?


don't see what you're saying here, can you elaborate? (4am here, my brain's a bit numb)

dave ;-) davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
don't worry about the 2nd part. But can you keep that page up for a couple days?? The internet is reeeeally bogged tonite.
 
where's the perspective you mentioned Jeff? Oh, right, I see what you were saying....;-)

TOUGHGIRL: any fla's I post on here stay on the net forever. If I 'ever' take something down it isn't without a good reason, and I'm always available via e-mail should you find any of my fla's unavailable.

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
Tulsa... I know the feeling!
Supposedly slow connected... But very fast flyer!

;-)
 
no supposedly about it, always at least a minute to look at a thread, on average about a minutes download time for every ten posts in a thread. I hate it but I've gotta live with it for another couple of months. davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
You guys rock. Now I understand from both angles so I can put it together.... You guys rock !!

XOXO
toughGirl
 
TulsaJeff,

I was able to model my tabs project after your .fla file. However I have a glitch at one point that I can't figure out.

In the open-close MC you have 2 instances of your button programmed with the following script, one is to open and the other to close:

on (release){
tellTarget ("_root/tabsMove"){
gotoAndPlay (2);
}
)
on (release) {
gotoAndStop (2);
}
___________________

on (release){
tellTarget ("_root/tabsMove"){
gotoAndPlay (21);
}
)
on (release) {
gotoAndStop (1);
}

Respectively. When I click on my button instance, I get an error box exclaiming 'target not found.' Im guessing this is originating from the tellTarget command. So how do I define my target? What should it be? I don't find any reference to 'tabsMove' in the scripts or the library of your .fla file.
 
try replacing the "/" with a "." jeff, might work, but I ain't promising.

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
try replacing the "/" with a "." Tough, might work, but I ain't promising.

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
"TabsMove" is the instance name of the "Tabs Motion" movie clipfound at windows/panels/instance.

when you target movie clips you need to name the instance of the movie clip this way and call the instance name instead of the movie clip name.

Does that make sense.

Ya' Gotta Love It!:)X-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top