Need/how To - Elastic Nav
I am designing my site using a vertical primary nav (see jpeg link below).
Straight forward it seems, but I want it to have an elastic element to it like the ones in the following link:
http://www.flashcomponents.com/deta...d=444&link=
Mine would probably be the 'Vertical Sample 1'
Can anyone provide me with an FLA or tell me exactly how I need to do it.
Thanks.
http://www.flashkit.com/board/attach...postid=2916542
Ultrashock Forums > Flash > ActionScript
Posted on: 2004-05-24
View Complete Forum Thread with Replies
Sponsored Links:
Draggable Elastic MC, Isnt That Elastic
i have an MC (hand) that ive made to be draggable. once the hand is released it should return to its original position....but of course, it doesnt.
the code is a slight variation of some i found a while back and have kept in a folder.
first frame on code layer in main timeline
ActionScript Code:
hand.elasticPos = function(targetX, targetY, accel, convert) { tellTarget (this) { xPos = xPos * accel + (targetX - _x) * convert; yPos = ypos * accel + (targetY - _y) * convert; _x += xPos; _y += yPos; }};
on the 'hand' MC
ActionScript Code:
onClipEvent (load) { x = _root.hand._x; y = _root.hand._y;}onClipEvent (enterFrame) { if (!pressed) { elasticPos(x, y, .9, .5); // elasticPos( targetX, targetY, accel, convert); }}
and finally inside the hand MC is a button for draggable reasons, on which is..
ActionScript Code:
on (press) { //ignore this stuff... _root.LEN.gotoAndStop("LEP"); _root.REN.gotoAndStop("REP"); _root.LEB.gotoAndStop("LEBP"); _root.MN.gotoAndStop("MP"); // end of ignore this.startDrag(); pressed = true;}on (release, releaseOutside) { this.stopDrag(); //ignore this stuff... _root.LEN.gotoAndStop("LEN"); _root.REN.gotoAndStop("REN"); _root.LEB.gotoAndPlay("LEBN"); _root.MN.gotoAndStop("MN"); //end pressed = false; }
yeh. it doesnt work.
any help would be fantastic
its probably something blindinly obvious but ive been messing with actionscript all day and its all starting to blur...
ive included the original file
View Replies !
View Related
Elastic...
how can i make a square works like the example in these page: http://www.in2media.com/enter.cfm
give elastic properties to a square when it grows up..
View Replies !
View Related
Elastic MC
Can someone tell me the script to make a MovieClip bounce "in and out" NOT "Side to side"? Also after about 2-5 bounces make it stop?
Thanks!
View Replies !
View Related
Elastic
Hi can anybody help with this AS. I'm trying to attach another MC to the top ball of this elastic. So that you can drag this other MC, and the top ball together. I can't seem to get it.
elastic.fla
View Replies !
View Related
Need/how To - Elastic Nav
I am designing my site using a vertical primary nav (see attached jpeg).
Straight forward it seems, but I want it to have an elastic element to it like the ones in the following link:
http://www.flashcomponents.com/detai...f&id=444&link=
Mine would probably be the 'Vertical Sample 1'
Can anyone provide me with an FLA or tell me exactly how I need to do it.
Thanks.
View Replies !
View Related
Elastic Nav
Hey actionscripters,
Any1 has a script example or example file to gimme a general idea how to create a nav effect similar to this:
http://www.rbk.com/DGK/
Jace
View Replies !
View Related
Elastic Box
Hi
I have seen this animation trick a couple of times now.. what it is, is a box - usually just an outline that expands form a small box to a large one. When it gets to its full size it retracts and then expands like its elasticated. Know what I mean? How is this done? There must be some script for it right?
Can you help?
Thanks
View Replies !
View Related
Elastic Box
I know this is probably easy but does anyone know how to do a elastic effect where a box enlarges to a certain height like 640 by 480 but instead of just enlarging to that size it bounces back a little before it gets there, like a rubber effect, or like a magnify effect, its hard to explain, I hope someone here understands me. Thanks!
View Replies !
View Related
Elastic Box
Hi
I have seen this animation trick a couple of times now.. what it is, is a box - usually just an outline that expands form a small box to a large one. When it gets to its full size it retracts and then expands like its elasticated. Know what I mean? How is this done? There must be some script for it right?
Can you help?
Thanks
View Replies !
View Related
Elastic MC
Can someone tell me the script to make a MovieClip bounce "in and out" NOT "Side to side"? Also after about 2-5 bounces make it stop?
Thanks!
View Replies !
View Related
Elastic 3D?
Hi all,
I'm looking to create a simple fun element in Flash that is similar to this, but is also elastic and you can drag each sphere and when you let it go, it elasticises back to into position.
I'm sure I've seen a tutorial for this around, but can anyone tell me where it is or how this can be done?
Thanks.
View Replies !
View Related
[AS] Elastic
Last edited by abgen : 2006-07-20 at 02:12.
As I build up to a general purpose 2D engine, I've decided to do elasticity. I might make collisions plastic at some point, and I will be doing some nifty collision detection as part of my PhD (probably)... till then, here's the code for some simple elasticity:
*EDIT*
Removed the code and placed it in downloadable form: http://www.anygivenfriday.com/downloads/elastic.zip
Again you can see the results at: http://www.anygivenfriday.com/elastic/
Cheers
Paul
View Replies !
View Related
Elastic Script Help
I'm hoping someone can point me in the right direction for some kind of tutorial for an elastic script menu.
The only site examples of what I want to do that I know of are http://www.tomato.co.uk & http://www.chdatlanta.com
I think an online magazine used the idea before, but I don't remember what the URL is.
Any help appreciated.
View Replies !
View Related
Elastic Menu
I have a menu which uses the math elasticity actionscript (for lack of a better description). The menu works fine except I cannot get the options to stay down to click on. My main timeline has a button with the following actionscript:
on (rollOver) {
_root.menu._visible = !_root.menu._visible;_root.menu._y += _root.dy;
}
on (rollOut) {
_root.menu._visible = 0;
}
This same frame has the following actionscript:
// Spring constant
spring = .80;
// Damping constant
damp = 0.9;
// Bump displacement
dx = 100;
dy = 100;
// velocity multiplyer
_root.menu._visible = 0;
stop ();
This goes to the mc called menu which bounces and springs on mouseover. If I take out the on rollOut in the button on the main timeline, the menu stays down of course, but won't go back up when you roll off the menu.
Does anyone have a solution? Thanks in advance for your help.
View Replies !
View Related
Elastic Scroll
Hi,
How do you create something similar to the navbar you see on this page? This is done in Shockwave but how would you do it in Flash?
http://www.nothingrecords.com/index2.html
We have seen many scrollers on FlashKit too, but how to get the elastic effect?
Your help and ideas will be greatly appreciated.
TIA.
View Replies !
View Related
Elastic Effect
trying to create an elastic effect when I use a motion tween. How do I make an object move across the stage and come to a subtle bounce when it stops rather than an abrupt stop? Can anyone help me out with the action script for this?
View Replies !
View Related
Elastic Effect
I have a mc and I need to know how to make it drop down with an elastic effect.
On mouse over I would like the mc to fall from the top of the movie and bounce at a certain distance from the top??
View Replies !
View Related
Elastic Effect
Hi guys,
I was just wondering how do I get the elastic effect.I have been trying it since the last 4 days and cant get that effect.Please help.
What I mean by elastic effect is:
see example:
http://www.nethead.com:Once you press any of the links the way the submenus come out and go in ..they give a feeling of a rubberband or what i call the elastic effect.Please help,
Thanking you in advance.
View Replies !
View Related
Spring/elastic
hi all
wondering if anyone knows of a tutorial that discusses spring and elasticity?
the look i am eventually going for is to have the user mouse over the object and it will bounce a little. Not a heavy bounce because it is a bubble, so it needs to be bubble like. I have been going through the fla files here but i am having trouble understanding them. Anyone know of a good tut?
much appreciated for any info thanks.
View Replies !
View Related
How Do I Get An Elastic Bounce?
This might be a silly question: but, how do I get an elastic bounce?
I've seen it on many sites: you click on something, say for example, the object will bounce to and forth and come to rest. This all happening in half a second.
I could attempt to achieve a bounce with some tweening.
But, all the examples I've seen, seem to have a 'natural' elastic bounce. It's something that I can't create with a simple teen.
Does ANYONE know what I'm taking about?
Any help/pointers would be really appreciated.
Thanks.
Jam
View Replies !
View Related
Elastic Trailer
elastic mouse trailer/follower:
how do i or wot is the actionscript to make a mouse trailer with 2 different movie clips following it. these mc's follow the mouse, but when it stops they fly past and return slowly swinging rond the mouse, i have seen it using javascript but want 2 do it in flash.
i have checked all the tutes and looked at all the uploaded mouse trailers, none of which do quite what i want.
any help at all would be great.
cheers
View Replies !
View Related
Elastic Scale?
can anyone provide a simple actionscript that scales an MC like an elastic. very simple, kind of a bounce effect. the ones that i have found are all tied into button behaviors// cant get them working on their own. thanks.
View Replies !
View Related
Elastic Effects
I know this type of effect was kinda' trendy over the last couple of years but I'm still trying to find good examples of how it's done-- especially using F5 or FMX code and functions (vs. F4).
Here's the type of effect I'm looking for:
http://emulsion.a-icard.com/main.html
See the bouncing, elastic nav section.
Any sample code like that would be greatly appreciated.
View Replies !
View Related
Elastic Balls
I need to make a _dropTarget snap back function. But I want it snap back like a ball on a elastic string and not just stiffly (like the_x & _y position does).
Visit the link below to see what I mean. I want to mimic the nav ball. http://www.ashantieaton.com
Thanks!
View Replies !
View Related
Elastic Formulae
I'm using flash 5.
I've been messing around with movings objects using:
_x-=100;
_x*=0.8;
_x+=100;
[this gives a deceleration kind of effect]
My question is does anyone knows the script/equations/calculation for an elastic kind of effect. I've been working for about 4 hours, and i can't figure it out. I've been using excel to try to work it out, but i still get nowhere.
Does anyone have any ideas?
View Replies !
View Related
Elastic Menu
Hi there.
I'd like to know how I can let this menu (http://www.flyersonline.nl/menu.swf) be elastic.
Now it's so static. I found some example here at the tutorial section, but I can't convert the code into the right code for my menu.
Can anyone help me with the code for my menu?
Thanx...
Leon
View Replies !
View Related
Elastic Menu
I have a menu similar to the news scroller on the official Macromedia website, but I have buttons underneath that tell the scroll where to go (you can actually see it scrolling in that direction to that point). I was wondering if anyone here knows how to have it wobble or move like (the word I'm thinking of is) elastic when it gets there.
If you have no idea what I just asked but would like to help please tell me
Thanks in advance!
View Replies !
View Related
Yet Another Elastic Question...sorry
I know you will say to search the boards and tutorials, but I did that to no avail. I can't seem to simplify any of the boards I found to fit my simple need. All I want to do is click a button which makes an image zoom in with an elstic "bouncy" effect on it. Any suggestions?
View Replies !
View Related
Help Me With This Elastic Scale..anyone : )))
Hi there, I know that this has been debate all over the board but I need a bit of help on.
basically I can move the mc on stage thanks to this code I've used few time but I'm trying to scale the object on X and Y once it reach
his position. Like >
button go> X (or Y) pos go> then scale in to XY dimension.
Hope it is quite clear. I remember there was a code for this but cannot find it anymore around the board.
Any help appreciate.
rolleyes:
View Replies !
View Related
Elastic Buttons Pls HELP
I am trying to make elastic buttons .. but can't figure out how to assign different names into the dynamic text using actionscript...
I only have same name buttons(four of them), and also want to link to the different pages....
pls take a look at my file attached..
Thanks a lot!!!
View Replies !
View Related
. . .add Elastic Bounce
Hello,
I'm trying to add an elastic feel to a MC that
grows when the Hit Test is activated, and shrinks back to it's original size when hit test is false. I'm using this code below which works perfectly, but I can't figure out how to add a bouncy elastic feel to it when it grows and shrinks back.
// control position of object
onClipEvent (load) {
ease = 5;
xmove = _x;
}
onClipEvent (enterFrame) {
_x += (xmove-_x)/ease;
}
// control scale of object
onClipEvent (load) {
scaleease = 5;
xscale = _xscale;
yscale = _yscale;
}
onClipEvent (enterFrame) {
_yscale += (yscale-_yscale)/scaleease;
_xscale += (xscale-_xscale)/scaleease;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.nav01.xscale = 1200;
_root.nav01.yscale = 7000;
} else {
_root.nav01.xscale = 100;
_root.nav01.yscale = 100;
}
}
View Replies !
View Related
Help With Elastic Button Please
Hi,
I have this elastic button that springs back to its spot on release. the problem is that i dont know how to make two buttons go to two different spots.
here is the swf
elastic button
could someone post the code or the fla for an example where i would have two buttons going to two different places.
thanx in advanced.
skyrace.....
View Replies !
View Related
How Do I Get An Elastic Bounce?
How do I get an elastic bounce at the end of an object coming onto screen?
I've learnt how to move an object using actionscript so that it eases in... but I've seen in many other websites where objects have a little bounce at the end before coming to a rest - HOW DO I DO THIS!?
Any help would be appreciated.
Thanks.
Jam
View Replies !
View Related
Using Elastic Function That I Need
i want to make some drop down image from top to bottom.
a simple describe that i want to make this part using "elastic" function.
attached file i posted, there is 1 image in fla file.
so just drop the image from top to bottom with bouncing effect little bit.
i will be appreciate it...
the reason why i want this... i already studied DB connection with php. so i am going to put my notification subject with dynamic moving action with flash file.
p.s.
i saw many elastic effect on this movie forum. but those of fla inside function was too much heavier difficult for me :-)
View Replies !
View Related
Elastic Effect
Hi,
Can anyone help me out with the elasticity effect as seen on http://www.gumblondes.com ? That is, when a new section opens up, it 'bounces' in, for lack of a better explanation.
Is this an actionscript thing?
Thanks
G
View Replies !
View Related
Elastic Drop
Hi there.
I have several buttons on the stage and I wish to make them drop from the top to their final position near the bottom. I can do this easily with a tween, but I want it to be more like the elastic ones you see on other sites - so it doesn't look like a powerpoint presentation!
Any ideas? This may just be an animation question - or does this effect need to be done with actionscript?
Thanks in advance.
View Replies !
View Related
Elastic Effects
Hi
I'm trying to recreate the effect found on this site where when clicking on the menu items, the main "window" expands and kind of bounces as if it's elastic. It's the bouncy elastic effect I'm after, is this hand drawn or using ActionScript. I've got MX Pro 2004? I've hunted high and low to find tutorials on this effect but can't find any so far. Any help would be much appreciated. Apologies if there is a post for this already, I've searched as best I can for similar posts but with no luck.
Thanks!
View Replies !
View Related
Elastic Menu
I want to create a menu where an object follows the mouse elastically, then on rollout, snaps back to a predefined position. this can be seen on a site like www.newezra.com/flash I have searched around and couldn't find anything. Any help, or former posts you guys have see on something like this would be greatly apprreciated!
View Replies !
View Related
Elastic Images....?
hello all
i was wondering how to get this great elastic effect that they have on this website...?
http://www.solidtorch.com/html/__v3.html
how hard is it..?
shrav
--------------------------------------------------------------
never hold your farts in. They will travel up your spine ,
into your brain, and thats where ****ty ideas come from!
View Replies !
View Related
Elastic Question Please Help:)
I have a real simple question:
I want to make text slide in horizontally, come to it’s location, but it goes past it a little bit bouncing back and forth a few times before it stops.
I would like to do this effect with a motion tween but I don’t want to key frame the effect, I want to do it with action script. Can this be done? I looked up and down this entire forum and could not find an example of this.
If anybody can do this can you Please, Please, Please post the .fla
Thanks
View Replies !
View Related
Elastic Navigation
I am trying to create navigation that is similar like that on yugop.com. navigation 01, 02, 03, 04 yugop uses object={}, and i am not enough familar with this. Is it out there any good tutorial or open source movie.
I get stuck in code. I create effect for one box useing color object and few function that control xspeed, xposition an interval, ....
But as i am not useing object programing i think at the end i will have to many lines of code, special part is that boxes strech left and right.
Advise me.
View Replies !
View Related
Elastic Buttons - How ? Any A.S. Example ?
Take a look in here:
::: ELASTIC BUTTONS :::
Check those TRY IT OUT and NEW FEATURES IN 6.0 buttons. Just roll over them...
Is there any simple tutorial on how to achieve this effect ? I guess it's just few A.S. lines attached to movie clip, but I'm not that proficient in Action Script to figure it out alone...
Thanks a lot in advance !
View Replies !
View Related
Help With Elastic Functions...
Hello,
I got this function off flashkit for version 5 of flash but its not working in mx04 .... can someone point in the right direction plz :
main timeline:
Code:
Movieclip.prototype.elasticScale = function(target, accel, convert) {
xScale = xScale * accel + (target - this._xscale) * convert
yScale = yScale * accel + (target - this._yscale) * convert
this._xscale += xScale
this._yscale += yScale
}
movie clip:
Code:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
elasticScale(130, 0.9, 0.1)
} else {
elasticScale(100, 0.8, 0.1)
}
}
I'm not up to par with new AS so please give me a hand! thx!
View Replies !
View Related
|