Groups | Blog | Home
all groups > macromedia flash sitedesign > october 2006 >

macromedia flash sitedesign : Movie and Button Linking


dbondmelo08
10/10/2006 2:29:27 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
10/10/2006 2:52:50 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
10/10/2006 3:21:03 PM
droopy.ro
10/10/2006 3:37:40 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
10/10/2006 3:55:41 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
10/10/2006 9:02:31 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
10/10/2006 9:52:47 PM
droopy.ro
10/10/2006 9:56:21 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
10/10/2006 10:46:10 PM
still not working. I jsut sent you an email with the .fla file

droopy.ro
10/11/2006 12:00:00 AM
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
10/11/2006 2:12:28 PM
hey, So i just sent the email again. If you don't get it try to email me at
dereckflash@mac.com

AddThis Social Bookmark Button