all groups > macromedia flash sitedesign > may 2005 >
You're in the

macromedia flash sitedesign

group:

Movie Clip Button


Movie Clip Button ultra canadian
5/25/2005 12:00:00 AM
macromedia flash sitedesign:
I am volunteering my time and what little skills I have to make this web site
for a friend of mine. I decided it wanted to be fancy and use movie clips
instead of buttons for the sites navigation so I could perfrom rollover/rollout
effects. Unfortuanatly however in converting them from buttons too movie clips
I have lost the ability to link them to another frame. If anyone has any ideas
for me that would be great the code I have been trying to get to work is
attached and I have tried a few other things. I made up a sample but have
knowhere to upload it to, however if you have some time I would be more than
willing to email it to you :D. Thanks a lot,
Jeff

this.onPress = function(){
gotoAndPlay("1",3);
}
Re: Movie Clip Button tralfaz
5/25/2005 6:31:11 PM
[quoted text, click to view]

You can't reliably use scene names in gotoAndPlay, especially if it's
from a movieclip. Use frame labels instead.
tralfaz

Re: Movie Clip Button tralfaz
5/25/2005 8:06:16 PM
[quoted text, click to view]

You're welcome.. yeah, it's almost the same, just put the frame label
there in quotes with no frame number. Jeckyl recommends using the dot
syntax also to make it even more reliable. Read posts by Jeckly in a
recent previous thread called "Scene Bliss"

this.gotoAndPlay("pic");
or
_root.gotoAndPlay("pic");
or
_parent.gotoAndPlay("pic");

tralfaz



Re: Movie Clip Button tralfaz
5/25/2005 8:07:13 PM
[quoted text, click to view]

Sorry..that thread is in the general flash forum, not this one.
tralfaz

Re: Movie Clip Button ultra canadian
5/26/2005 12:00:00 AM
Hey, I got it to work, thanks a lot, for some reason only
_root.gotoAndPlay("pic"); would work. That other post was really helpful, I
guess I should have browsed more.
Jeff

PS: Maybe someday I link to the final prduct so you can check it out
Re: Movie Clip Button ultra canadian
5/26/2005 2:16:51 AM
Ok so I labeled the frame as "pic", and on the timeline there is a little red flag. I don't know the code required though to link to a labeled frame though.
Thanks for your help,
AddThis Social Bookmark Button