HELP ! in this elastic button

hehe no problem :slight_smile:

DID U GET ANY PROBLEMS OR BUG IN IT …

I THINK THERE IS A BUG…BUT DONT KNOW HOW TO SOLVE IT…

i dind’t try it :-\ Whats the problem!?

CLICK ONCE
THE WHEN IT COMES DOWN, TRY CLICKING ON PLANNING LINK AND THEN SEE, IT REMAIN THERE IT SELF…

I MEAN…THERE U FIND THE BUG…PLZ CAN U HELP ME IN THAT

THANKX

thats because you don’t have any seperate code for the actual ā€˜links’. THey all are targetting the BIG BOX thing…you should make each link a new movieclip and give each their code…

i did not get wat ur tring to say…
different code for each link…
wat code?
r u saying that the code for the box should be applied to the button!!!

if yes!!! then when i will click the link it will move, regardless to the box…

if no!!! then plz specify…

THANKX

half yes half no…
yes in that a code should be applied to each link…and no in that not the SAME code should be applied as the one used in the box…A different one should be used…
This code should be the one which makes the box move back up. I dont really undertssand your code as it is really unorganized (for me), so i can’t rally help you there. BUT if you understand what i’m saying, it shouldn’t be hard for you…

I know its unorganized.
but when ever if u have time, for me …plz do me this favour.
i will be greatfull to u ??
cos now u know what i want, and been good in script i think u can help me out in a proper way!!!

I will aso definatly try. and post it as soon as i get it.

thankx…

I will try in a few minutes, but i’m not too sure of your code so it mite not work :-\

THANK a million

the effect wat i want … i just got it in a site…but dont know where am i going wrong
the site is http://www.lookandfeel.com/
this is exactly wat i want.

if that is gettable then will be greatfull

THANX

ok i see now…i think i will be able to do that…let me try…

now u see wat i want…i inner links stay even when the menu is down…thats wat i want,

I am a new in script…but through tutorial i have done what i wanted…iam wrong but u can refine me…in this…

THANKX u for ur time

ah yes…finally…that should do it :slight_smile:

wat r u A GENUIES

u made it so fast , this menu i was trying for hours…and still cou`nt get.

U MADE IT!!!
but i still cannot understand the script…
will try to underestand…

but a MILLION thanks to u

thankx

Which part don’t you understand i’ll help you :slight_smile: oh yea, you have to make sure the registration point is at the bottom, and you have to change the initialy value depending on your thing…

So if you click on the object, it will tell you the y value at the start. Just put this as your ā€˜initialy’ value get it?!

Iam so SORRY, the above text what u have explained me, beliveme its like chines for me.
plz dont mind, but with all repected u r tooo good in scripting.
and iam just a 5 day old in scripting.

hope u dont mind.
and the script what is in the menu i got some part of it, i am doing through the flash help and trying to understand it.

if i dont then will u help me out???

THANKX

yeea if you don’t understand anything i will tell you, but check through flash help first :slight_smile:

OK!!! here it goes…
I guess iam on the right track…else get me on right track

newy = _root.box._y*1.5;

(Asigning a vaiable nemy, in that the box`s y corrodinate is multipled with 1.5)

Question: Why do u multiply by 1.5

MovieClip.prototype.ymovement = function() {

(MovieClip.prototype - moving the box in y direction which is asigned to a function)

this.onEnterFrame = function() {

( the current object, on enter frame is asigned to a function)

	movement = movement*0.7+(newy-this._y)/7;

( variable movement assigned to a formula)

Question : what does this formula does???

	this._y += movement;

(current object from y corrodinate + movement = movement…this must be to move the menu)

};

};

MovieClip.prototype.rollback = function() {

(MovieClip.prototype - moving the box in backward direction which is asigned to a function)

this.onEnterFrame = function() {

( the current object, on enter frame is asigned to a function)

	var initialy = 48.4;

(variable has initialy value =48.4)
Question : y 48.4?

from here confused.
i mean how it works

( can we deburg and see which function or line is running while running tehj program)
var finaly = this._height + initialy
this._y -= 10;
if (this._y<=finaly) {
this._y = finaly;
}
};
};

thankx
[COLOR=blue](Asigning a vaiable nemy, in that the box`s y corrodinate is multipled with 1.5)[/COLOR] [COLOR=orangered]Question: Why do u multiply by 1.5[/COLOR] [COLOR=blue](MovieClip.prototype - moving the box in y direction which is asigned to a function)[/COLOR] [COLOR=blue] the current object, on enter frame is asigned to a function)[/COLOR] [COLOR=blue]( variable movement assigned to a formula)[/COLOR] [COLOR=orangered]Question : what does this formula does???[/COLOR] [COLOR=blue](current object from y corrodinate + movement = movement…this must be to move the menu)[/COLOR] [COLOR=blue](MovieClip.prototype - moving the box in backward direction which is asigned to a function)[/COLOR] [COLOR=blue]( the current object, on enter frame is asigned to a function)[/COLOR] [COLOR=orangered]Question : y 48.4?[/COLOR] [COLOR=crimson]( can we deburg and see which function or line is running while running tehj program)[/COLOR] :toad: :link:

Question: Why do u multiply by 1.5

because if we multiply by too much the rollout function will always take place, get it?! Because the box is only so big, so if it goes toooo low, then that means the mouse has ā€˜rolled out’, therefore the box will go back upwards.

Question : what does this formula does???

THis formula i got from the slide menu tutorial, it gives the box an easing movement, as well as the springy thing. Change the values 0.7 and 7 to see…

Question : y 48.4?

I said this in the post before, but i will say it again since you din’dt understand. We need the initial ā€˜y’ value of the box to see how far it rolls back. Therefore, if you click on the box before anything happens, you will see the ā€˜y’ value is 48.4. So in your initial value, the value = 48.4.

And basically you will see i have 2 functions. When the mouse rolls over the box, function ymovement takes place. When it rolls out, function rollback takes place. Get it?! :slight_smile:

thankx u ??

now i have got IT…a bit blue in my mind, but definatly understanding.

I thankx u for a PERCIOUS time

I am glad that in the whole forum since the beginning , its only u who have explained me in a laymans term and helped me out.

i am REALLy thankx FULL to u .
so what d u want a mercedies car or a sports cars…heheheheheh
or a cake…

any way
thankx for ur help…iam putting u on my buddy list
can i have ur email address
mine is shashankp@intellvisions.com