Please Fix My Button

Could someone please help me turn this button into a fluid morphing button? I want the animation to finish after the click step, at the end of which, I’d like it to go back to the last frame of the over step… until the mouse drags off with reverse animation on the over step.
Your template will help me sleep… I need to sleep… it’s almost 10am and I’ve been up nearly 24hrs… please, have a look.
thanks-
bnb

for a more detailed description of what I’m trying to do, see my previous post:
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=23883

http://www.kirupa.com/developer/flash5/advroll.htm
This is a tutorial designed for exactly what you want to do. (In flash 5, but it will work very similarly)

Enjoy!!

egeek told me that tellTarget is depreciated in FMX and to use dot syntax instead. I like it because it’s less typing, more organized and I’m real lazy…ie:

[AS]
on(rollOut){
_root.movieClip.gotoAndPlay(“Frame”);
}
[/AS]
instead of…
[AS]
on(rollOut){
tellTarget("\movieClip"){
gotoAndPlay(“frame”);
}
}
[/AS]
(-:

Exactly. Someone should rewrite that tutorial for MX if no one has already.

I am having problems entering in the script. Do I enter the script on the single outside button keyframe, or within the Up - Over - Down - Hit movies somewhere?

We’re on day two… but I am still determined.

on the button on the stage (not in the up down over frames)

okay-
here’s what I’m doing…
I right click the button, scroll down to actions, and enter the code as follows:

on (rollOver) {
tellTarget (“movieClip”) {
gotoAndPlay (“1text”);
}
}
on (rollOut) {
tellTarget (“movieClip”) {
gotoAndPlay (“1back”);
}
}

It then tells me this:
Target not found: Target=“movieClip” Base="_level0"

what do I do?

you should make sure that the movieclip named “movieClip” excists

How do I rename my movie clips, so they’re recognized in the script?

allright, if you did it all right, you should have an mc somewere wich should be called by the script with the name “movieClip”

select that movieclip, and look in ur properties window, there should be an input form with gray text in it “instance name”

change that to “movieClip”

and it should work

I figured this was the case, but still nothing…
I put movieClip in the little grey text area of the properties window, and kept the script the same. movieClip is the name corresponding to the movie in the “over” keyframe, and an instance of “Links”.
Here’s the message it gave me-

Target not found: Target=“movieClip” Base="_level0"

any thoughts?

now i gotta c the .fla
downloaded and looking now… plz hold

i took a look:

yo can NOT controll frames located inside an button, including the movieclips inside the button’s frames, thats why its cutting the animations, you cannot controll them, so you should find alternatives for this, you are very close tho…

im not goin to create it for you, like in the matrix,
i can only show you the door, you gotta walk tru it

try to animatie an MOVIECLIP with the button, instead of animating the button with the button :wink:

ahhh… I think I can see the light.
okay, I’ll give it a shot.

Okay here’s what I’m working on-
I turn each step of the button into a full movie and then use each point of the button to trigger a certain part of that movie.
In this case, where do I keep the movie?

you could try to make an invisible button, and an MC (with an instance name) with the animations inside… and put them on the stage

and then use the button to controll that MC so it displays the animation

it should be something like:


on(rollover){
mc.gotoAndPlay("rollover");
}
on(release){
mc.gotoAndPlay("release");
}

or something simular

note, do NOT put the mc INSIDE the button