View Full Version : HELP !!! in this elastic button
cool blue
June 25th, 2003, 05:57 AM
HI!
i made an elsatic button
but instead on on move over its animation when we press and comes back to the same when we release
and i just want the about us part to be see first and the after click the rest.....
iam attaching u the file PLZ help me out in this
THANKX
eron19
June 25th, 2003, 06:02 AM
WHAT!?
blah-de-blah
June 25th, 2003, 06:04 AM
yess....what?!
cool blue
June 25th, 2003, 06:08 AM
just have a look at my fla.......
and in that , when i press my mouse button then the animation takes place, which is moving elasticly downwards and after releaseing itmoves back to the same position.
but i dont want in that manner, i want it when i put my mouse over then the animation should happen... and on out back to the same position.
plz have a look at my fla...
and iam sorry for my english.
thankx
blah-de-blah
June 25th, 2003, 06:12 AM
o so you just change on press or whatever to on rollover....
and on release to on rollout
i think that hsould do it, i will have a look at the fla in a sec
cool blue
June 25th, 2003, 06:15 AM
WEll iam weak in SCRIPTING
and in this i have use.....clipevent....
from that to MOUSE event...iam not getting it right....
PLZ help me out
eron19
June 25th, 2003, 06:25 AM
well its ok. if you're not american. but um.... if you're american....aint no excuses to be typing like that. ill look at your fla......give me a sec
blah-de-blah
June 25th, 2003, 06:26 AM
Here...that should be it :)
eron19
June 25th, 2003, 06:27 AM
yeah, do what blah said. i 2nd his solution ;)
cool blue
June 25th, 2003, 06:36 AM
but in this wat about the other links, if i try to take my mouse on those links...it animates back and forth.
how can i do that ....
blah-de-blah
June 25th, 2003, 06:38 AM
what you mean when you rollover the box moves away so you can't click on the button!?
well thats what happens if you make the box move when the mouse moves over it :-\ Theres not really a solution apart from changing the idea :-\
cool blue
June 25th, 2003, 06:46 AM
OK!!! thankx......
a lot for ur help.
but wat i want is
OnMouseOver
the button moves down
( now in that there r few links like history, planning...etc)
but as soon as i try to click on any of the links the buttons moves up....)
now i have tried using on release but since u have use and invisible button. it stays on that same position when taking ur mouse over it.
how can i move that invisible button with the mAIN functioning button........
blah-de-blah
June 25th, 2003, 06:50 AM
sorry i'm not too sure what you're trying to say?!
Are you saying the links dont work or something!?
cool blue
June 25th, 2003, 06:51 AM
I HAVE GOT IT ...not so perfect but this is wat i want.
If u can enhance it a bit then i would be glad.
NOW one more problem......
how to i hid the upper part ( ie., the history and planning part)
and when the mouse is click then show the rest.
STILL thankx a lot:flower:
iam attaching the file have look what i wanted
blah-de-blah
June 25th, 2003, 06:56 AM
you mean the buttons history and plannign?! how do you hide those!?!
give htem instance name and do:
_root.whatever._visible = false
cool blue
June 25th, 2003, 07:02 AM
see the attachment what i mean???
but i have a problem with the masking .....
how do i do IT
cool blue
June 25th, 2003, 07:03 AM
see the attachment what i mean???
but i have a problem with the masking .....
how do i do IT
THANKX
blah-de-blah
June 25th, 2003, 07:07 AM
i'm not too sure what the problem is?! why exactly do you want to mask it?!
cool blue
June 25th, 2003, 07:11 AM
YES!!
Sorry i was wrong !!! SOrry sorry...
I dont need to mask it....i will just add a layer over it and hide with the white patch....
YES!! i have got it!!!
thankx for ur time and help
thankx a million...
and again plz forgive for my english.
thankx
cool blue
June 25th, 2003, 07:14 AM
FINAL FILE IS IN ATTACHEMENT
IF U CAN IMPROVE IT....OR IF U FIND A BUG DO TELL ME PLZ...I WILL BE REALLY GREAT FULL
THANKX
blah-de-blah
June 25th, 2003, 07:15 AM
hehe no problem :)
cool blue
June 25th, 2003, 07:30 AM
DID U GET ANY PROBLEMS OR BUG IN IT .......
I THINK THERE IS A BUG....BUT DONT KNOW HOW TO SOLVE IT....
blah-de-blah
June 25th, 2003, 07:31 AM
i dind't try it :-\ Whats the problem!?
cool blue
June 25th, 2003, 07:38 AM
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
blah-de-blah
June 25th, 2003, 08:01 AM
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...
cool blue
June 25th, 2003, 08:12 AM
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
blah-de-blah
June 25th, 2003, 08:16 AM
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...
cool blue
June 25th, 2003, 08:21 AM
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....
blah-de-blah
June 25th, 2003, 08:22 AM
I will try in a few minutes, but i'm not too sure of your code so it mite not work :-\
cool blue
June 25th, 2003, 08:31 AM
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
blah-de-blah
June 25th, 2003, 08:33 AM
ok i see now....i think i will be able to do that....let me try..
cool blue
June 25th, 2003, 08:36 AM
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
blah-de-blah
June 25th, 2003, 09:52 AM
ah yes...finally...that should do it :)
cool blue
June 25th, 2003, 11:31 PM
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
blah-de-blah
June 25th, 2003, 11:51 PM
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?!
cool blue
June 26th, 2003, 12:11 AM
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
blah-de-blah
June 26th, 2003, 12:18 AM
yeea if you don't understand anything i will tell you, but check through flash help first :)
cool blue
June 26th, 2003, 12:51 AM
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
(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 - moving the box in y direction which is asigned to a function) the current object, on enter frame is asigned to a function) ( variable movement assigned to a formula) Question : what does this formula does??? (current object from y corrodinate + movement = movement...this must be to move the menu) (MovieClip.prototype - moving the box in backward direction which is asigned to a function) ( the current object, on enter frame is asigned to a function) Question : y 48.4? ( can we deburg and see which function or line is running while running tehj program) :toad: :link:
blah-de-blah
June 26th, 2003, 01:14 AM
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?! :)
cool blue
June 26th, 2003, 01:51 AM
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
cool blue
June 26th, 2003, 07:36 AM
check this OUT a new menu with elastic effect.!!!
http://www.newarchitectmag.com/archives/2001/08/hall/
this is the link for the tutorials
and the file is an attachement
thankx \\
enjoy
blah-de-blah
June 26th, 2003, 12:34 PM
hehe no problem, msg me if you have any more problems i'm usually bored now in the summer :)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.