PDA

View Full Version : movie clip or button - what the hell???



noelle88
September 26th, 2002, 07:38 PM
I am creating a navigation that has buttons that move-- I created them as movie clips so I could do this

onClipEvent (load) {
goal = 277.2;
}
onClipEvent (enterFrame) {
_y += (goal-_y)/2;
}

to get the movement to appear to slow down as they reach their destination.

I need the button to click and jump to a frame of the scene.. The instance in the movie clip is a button, on which I put action

on (release) {
gotoAndPlay("nav_expand");
}

but it won't do anything!! I can't seem to get a button to act like a movie or to get a movie to act like a button - can anyone help??????????

Ryall
September 26th, 2002, 08:03 PM
have you tried:


on (release) {
_root.gotoAndPlay("nav_expand");
}

noelle88
September 26th, 2002, 08:09 PM
:( no it's not working...

noelle88
September 26th, 2002, 08:24 PM
hmm.. actually, you're right.. it's looking for 'nav_expand' on the same movie clip it resides in..

Ryall
September 26th, 2002, 08:44 PM
so is it working now?... it should...

you have a button... which is in a MC and the MC is on the main stage.... the button is telling the main timeline to jump to the named frame lable... if this is how you have it set up, I see no reason why it shouldnt work. Good Luck - any more questions post here.

Peace

noelle88
September 26th, 2002, 08:51 PM
Yeah - that was the problem -- I actually have a container movie pulling in another swf.. so I used:

on (release) {
_level0.nav_holder.gotoAndPlay("nav_expand");
}

duh! Thanks for your help!

Ryall
September 26th, 2002, 08:53 PM
no prob :cowboy:

Peace

eilsoe
September 26th, 2002, 08:57 PM
heh, i see my smilies are being used...

...eeexcellent..... :+)

Ryall
September 26th, 2002, 09:00 PM
heck yeah... I love 'em... it was such an awesome idea to make more of 'em.. ... I think I have a few ideas too heehee:crazy:

eilsoe
September 26th, 2002, 09:05 PM
well if ya don't have the time right now, I can make some more! :)

Just fire away...

(within reason that is... Don't ask for a smilie that resembles george bush for example.. i have 18x18 px's to mutter around in... *lol*)

Ryall
September 26th, 2002, 09:16 PM
I was going for the mona lisa....:goatee:

eilsoe
September 26th, 2002, 09:20 PM
You were NOT! :crazy: