# HELP ! in this elastic button

**URL:** <https://forum.kirupa.com/t/help-in-this-elastic-button/24013>\
**Category:** Uncategorized\
**Created:** [June 25, 2003, 9:57am UTC](https://forum.kirupa.com/t/help-in-this-elastic-button/24013 "2003-06-25T09:57:36Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 25, 2003, 11:15am UTC](https://forum.kirupa.com/t/help-in-this-elastic-button/24013/21 "2003-06-25T11:15:06Z")

</div>

hehe no problem 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 25, 2003, 11:30am UTC](https://forum.kirupa.com/t/help-in-this-elastic-button/24013/22 "2003-06-25T11:30:52Z")

</div>

DID U GET ANY PROBLEMS OR BUG IN IT …

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 25, 2003, 11:31am UTC](https://forum.kirupa.com/t/help-in-this-elastic-button/24013/23 "2003-06-25T11:31:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 25, 2003, 11:38am UTC](https://forum.kirupa.com/t/help-in-this-elastic-button/24013/24 "2003-06-25T11:38:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 25, 2003, 12:01pm UTC](https://forum.kirupa.com/t/help-in-this-elastic-button/24013/25 "2003-06-25T12:01:00Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 25, 2003, 12:12pm UTC](https://forum.kirupa.com/t/help-in-this-elastic-button/24013/26 "2003-06-25T12:12:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 25, 2003, 12:16pm UTC](https://forum.kirupa.com/t/help-in-this-elastic-button/24013/27 "2003-06-25T12:16:33Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 25, 2003, 12:21pm UTC](https://forum.kirupa.com/t/help-in-this-elastic-button/24013/28 "2003-06-25T12:21:18Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 25, 2003, 12:22pm UTC](https://forum.kirupa.com/t/help-in-this-elastic-button/24013/29 "2003-06-25T12:22:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 25, 2003, 12:31pm UTC](https://forum.kirupa.com/t/help-in-this-elastic-button/24013/30 "2003-06-25T12:31:00Z")

</div>

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/](http://www.lookandfeel.com/)  
this is exactly wat i want.

if that is gettable then will be greatfull

THANX

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 25, 2003, 12:33pm UTC](https://forum.kirupa.com/t/help-in-this-elastic-button/24013/31 "2003-06-25T12:33:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 25, 2003, 12:36pm UTC](https://forum.kirupa.com/t/help-in-this-elastic-button/24013/32 "2003-06-25T12:36:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 25, 2003, 1:52pm UTC](https://forum.kirupa.com/t/help-in-this-elastic-button/24013/33 "2003-06-25T13:52:36Z")

</div>

ah yes…finally…that should do it 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 26, 2003, 3:31am UTC](https://forum.kirupa.com/t/help-in-this-elastic-button/24013/34 "2003-06-26T03:31:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 26, 2003, 3:51am UTC](https://forum.kirupa.com/t/help-in-this-elastic-button/24013/35 "2003-06-26T03:51:57Z")

</div>

Which part don’t you understand i’ll help you 🙂 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?!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 26, 2003, 4:11am UTC](https://forum.kirupa.com/t/help-in-this-elastic-button/24013/36 "2003-06-26T04:11:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 26, 2003, 4:18am UTC](https://forum.kirupa.com/t/help-in-this-elastic-button/24013/37 "2003-06-26T04:18:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 26, 2003, 4:51am UTC](https://forum.kirupa.com/t/help-in-this-elastic-button/24013/38 "2003-06-26T04:51:47Z")

</div>

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: 🔗

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 26, 2003, 5:14am UTC](https://forum.kirupa.com/t/help-in-this-elastic-button/24013/39 "2003-06-26T05:14:08Z")

</div>

> 

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?! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 26, 2003, 5:51am UTC](https://forum.kirupa.com/t/help-in-this-elastic-button/24013/40 "2003-06-26T05:51:11Z")

</div>

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](mailto:shashankp@intellvisions.com)

[Previous page](https://forum.kirupa.com/t/help-in-this-elastic-button/24013.md?page=1)

[Next page](https://forum.kirupa.com/t/help-in-this-elastic-button/24013.md?page=3)
