This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > November 2006 > Movie and Button Linking





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Movie and Button Linking
dbondmelo08

2006-11-05, 10:33 pm

Hey Everyone,
So I"m trying to make a site that has some of the functions of the
www.niketown.com site. There is the animated drop down menu (which I can do)
but I'm not sure how to make the buttons have that highlight in them and also
when you click on an option I want my "movie" clip to play in a specific area
of my stage. How can I accomplish that?

Thanks in advance.

droopy.ro

2006-11-05, 10:33 pm

hello,
about the highlight in the buttons.. well in the web site it's made using
action script.. but you cad do that by changing the state of the buton when the
mouse is over.. so all you have to do is when you create the button, on the
Over state change the background so it will look like highlited(i hope this was
your first question). about the secodn one.. you can do this using the
[b]movieClip.attachMovie()[/b] function. you can see the answer in a different
post here on the forum(
[b]http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid
=196&threadid=1202939&enterthread=y[/b]), except .. that was made for the
rollover state of a button.. you have to change it for onRelease.. i hope you
get it.. if you are having any problems with the code..or didn't understand..
just contact me. i will try to

dbondmelo08

2006-11-05, 10:33 pm

what if you want the button within the menu to be animated as well? Highlight fades in and out?
droopy.ro

2006-11-05, 10:33 pm

you have to make the buttons movie clips actually so you can add other symbols
in it. so altough you will be using it like a button it will be a movie clip
actually. inside it will be another movie clip that animates(the fade in and
out you want). and also you have to use actions to detect when the mouse rolls
over this button to start the fade in and when the button rolls out to start
the fade out. ok.. this is just in theory.. in practice.. it's a little bit
tricky.. but this is the way to do it.

dbondmelo08

2006-11-05, 10:33 pm

Were you put the action for it. So in Scene1 I have an actions layer that has

this.basic_bt_mc.onRollOver = function() {
basic_bt_mc.gotoAndPlay("_over");
}
this.basic_bt_mc.onRollOut = function() {
basic_bt_mc.gotoAndPlay("_out");

so if I were to make a movie clip with one of those movie clips would I just
add the same type of actions to the "scene 1" actions area?



droopy.ro

2006-11-05, 10:33 pm

yes, only you have to name each instance of every movie you are going to use..
for example. if you have a parent movie clip named [i]parent_mc[/i] and in it
you have another movie called [i]child_mc[/i] , to call child_mc you will have
to use something like this:
[b]parent_mc.child_mc.onRollOver[/b]...
and yes you can add al the action in the actions layer..
hope this helps.. let me know

dbondmelo08

2006-11-05, 10:33 pm

okay so I tried that. I put that script in "scene 1" frame 1 along with the others and it didn't work. The "button_mc" has no function
droopy.ro

2006-11-05, 10:33 pm

what do you mean.. it has no function???
well when i said.. [i][b]parent_mc.child_mc.onRollOver...[/b][/i] .. i
sugested you will continue the example that you jsut asked about it.. that is..
[i]parent_mc.child_mc.onRollOver = function() {
basic_bt_mc.gotoAndPlay("_over");
}
parent_mc.child_mc.onRollOut = function() {
basic_bt_mc.gotoAndPlay("_out");
}[/i]

somthing like that.. please try again.. and.. if it doesn't work.. just
contact me.. over my email.

dbondmelo08

2006-11-05, 10:33 pm

still not working. I jsut sent you an email with the .fla file

thanks for all of you help by the way :)
droopy.ro

2006-11-05, 10:33 pm

i haven't received you email.. try again.. and btw.. the code is wrong..
[i]..gotoAndPlay([b]"_over"[/b])[/i] .. it was supose to be a number there ..
and it's the same problem with the other one.. but.. anyway send the fla..
please copy-paste the address correctly.

dbondmelo08

2006-11-05, 10:33 pm

hey, So i just sent the email again. If you don't get it try to email me at
dereckflash@mac.com

I copy and pasted it from the site so I'm not sure what is happening
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews