Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Elastic Effect


Hi all,

Does someone know how to make an effect with website http://neave.com/ - elastic frame?

Thank you very much.




FlashKit > Flash Help > Flash ActionScript
Posted on: 05-03-2004, 04:17 PM


View Complete Forum Thread with Replies

Sponsored Links:

Elastic Effect
How do you create an elastic line. so that when u like on a certain point on it it stretches like elastic?

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
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 Effect
does anyone know how to do the elastic window effect please direct me into a tutorial thanx

View Replies !    View Related
Looking For An Elastic Effect
Can anyone point me to a tutorial on how to give an object an elastic effect when it moves onto the screen? Kind of like when you have a row of objects like a slide show and when you hit the next button the next slide scrolls in but it has a bounce to it? Is there an action script for that? or do you have to make that using tweens?

Thanks
MC

View Replies !    View Related
Elastic Effect
Hello can anyone help me. Basically for part of my project I need create a kind of minigame in which when two corret electric wires are touched, then it jumps to the next frame. Im not sure if this is even possible, my plan was to make the wires have an elastic type effect where they spring back but they also need to go to the next frame when in contact. Any ideas??

View Replies !    View Related
Elastic Effect
Hai everybody,

I want to create one flash presentation,which is like opening a envelope and the card should come with some elastic,bouncing effect from that envelope.
That card should have one form with hyperlinks also.

I just create upto opening the envelope & releasing the card,but i dont know to make them bouncing,elastic effect.

Everyone says,it can be done using flash actionscript only.I m not well versed in actionscript.

Please help me to make that effect.

Subathra.R

View Replies !    View Related
Chain + Elastic Effect Please Help
Hy guys, I was trying to do something like the menu you'll find on:

http://www.metroid.com/prime/

I've downloaded a couple of movie from the site, and I came up with something (the file in attachment), now there're just a couple of thinks I don't understand. If I rollover on the bigger squares the lines will appear, if I start dragging any of three boxes they all move, but if I drag the boxes fast enough the lines won't match the center of the object.
Besides I'll like that the lines will appear one at the time, for istance if I roll on the red box it will linked but if I roll on the green one the lines must appear only on that and disapper from the other.

Hope I'm not asking too omuch
T.i.a
Giano

View Replies !    View Related
Anyway I Could Give This An Elastic Effect
Hi! I have this idea drawn up (see attachment) that I wanna use a navigation menu. I want to give it some sort of an elastic/ bounce back effect. I was going to have the circles and text be individual buttons but I kinda want it to move as a whole. So that when part of it is rolled over it will move but when its rolled off it will bounce back. Does anyone have any ideas that could point me in the right direction?
Thanks in advance!!

View Replies !    View Related
Elastic Effect And Tween
Hello,

I attached the .fla to make it easier to understand what I'm trying to do.

I have a movie clip that has script on it to give it the elastic effect. But I also want to put a motion tween on it. The tween works when I play it on the stage, but when i test the movie it stays still but the elastic effect still works. Is there a way to make this happen?

Thank for your help!

View Replies !    View Related
Has The Elastic Effect Stopped?
Hi,

I was curious to know if there is any way of knowing when an elastic effect has finally stopped? If this is possible can someone point me to a resource that explains this please.

Thank you.

View Replies !    View Related
Elastic Effect?-- Mc's, Targets...
I have a main swf with 4 empty mc’s.
The 4 mc’s- top_mc, menu_mc, content_mc, bottom_mc.
The content_mc loads different swfs depending on what button(the swf in the menu_mc) the user presses

What I am trying to do is keep the content._mc and the bottom._mc in sync.
So say if a swf loads into content_mc that has a height of 200px the bottom will move accordingly with a nice elastic effect.

Help.

View Replies !    View Related
Elastic Effect On A Rectangle
i am trying to get an elastic effect on a triangle. i am not sure how to go about this. whether it is to use actionscript or to use tweening or morphing or masking. please can i get some helpful hints or even a start on how to code it to get a really go elastic effeect. i then can taylor it for my pruposes.

thanks in advance

View Replies !    View Related
Anyone Know An AS For Elastic Rollover Effect?
I have been literally banging my head over this!
I want to have an effect close to/like this: http://www.neave.com

Rollover the edges-- so nicely done!

I have turned codes inside-out and upsidedown in the last 3 days and am not even showing anything for it. If one of you can help, I will be forever grateful.

View Replies !    View Related
Elastic Effect On A Rectangle
i am trying to get an elastic effect on a triangle. i am not sure how to go about this. whether it is to use actionscript or to use tweening or morphing or masking. please can i get some helpful hints or even a start on how to code it to get a really go elastic effeect. i then can taylor it for my pruposes.

thanks in advance

View Replies !    View Related
Elastic Button Effect
Hello all,
I have been trying to come up with a way to create an elastic button that only expands and retracts with a bouncy effect in place. I don't want to create the actionscript on the button as I have seen several examples provided via Flash Kit. How do I apply the elastic.as that is provided by Flash MX 2004 or even create a unique class all its own to import into my flash document? I am relatively new to the OOP concepts and classes. Thanks for your input!

View Replies !    View Related
Elastic Button Effect
hi,
I wanna have the same elastic effect as the buttons of blink182.com. It seems like animated buttons, but there definitely seems to be some actionscript involved, since the button still moves when you rollover a different button. I need help with this.
thanks kirupaville

View Replies !    View Related
Elastic Effect On Movie
hey hey.

i was wondering if someone here could help show me how to do an elastic-like bounce and position for the text that springs up in the attached .SWF

i wanna make it look a lil more realistic. Or, have it come in fast then slow down. I would probably work with the EASE for that, but would I have to put the objects on a path for the EASE to work?

i'm still learning, so i appreciate any kind of help.

thanks, guys.

View Replies !    View Related
How To Make This Elastic Effect?
Hi everyone,

I was surfing on dsign charts and i saw this site, and i wonder how to make this cool effect (the one with the christmas trees)

http://www.fingal.co.uk/site/

View Replies !    View Related
How To Smooth An Elastic Effect
I have a serie of movie clip parts from a menu. Each movie clip has an elastic effect on rollover with the following code.
it is ok but not smooth enough I wonder how I could smooth the effect. Is there a function for this ?

monClip.onRollOver = function() {
this.onEnterFrame = function() {
if (this._xscale >= 150) {
this._xscale = this._yscale = 150;
delete this.onEnterFrame;
};
this._xscale +=10;
this._yscale +=10;
};
};
monClip.onRollOut = function() {
this.onEnterFrame = function() {
if (this._xscale <= 150) {
this._xscale = this._yscale = 100;
delete this.onEnterFrame;
};
this._xscale -=10;
this._yscale -=10;
};
};

View Replies !    View Related
Elastic Button Effect
hi,
I wanna have the same elastic effect as the buttons of blink182.com. It seems like animated buttons, but there definitely seems to be some actionscript involved, since the button still moves when you rollover a different button. I need help with this.
thanks kirupaville

View Replies !    View Related
Inertia&Elastic Effect
hey... can somebody tell me how to make a nice movie with inertia and elastic effect in it using ActionScript.

View Replies !    View Related
Elastic Effect On A Rectangle
i know that this takes some actionscript in order to do. can someone give me a helpful hint on how to start or where there is a good tute on this? basically i would like the rectangle to animate by bending in and out before becoming straight. the sort of things you see in interfaces. its like a spring effect returning back to its original straightness.

any help will be appreciated.

thanks in advanced

View Replies !    View Related
Elastic Drag Image Effect
I want to know how to make this drag effect on a image. I haven't found this anywhere on the site.

View Replies !    View Related
Help With Simple Elastic Effect For Menu
Hello,
I've seen an effect on this site: http://www.5280mobile.com/ for a couple of days now, and I've been trying to find out how to do it, but couldn't. Is there any easy way to do this? Any tutorial someone can direct me to?

I really like their menu, and was wondering if the zoom/in zoom/out effect is easily done.

Peace

View Replies !    View Related
Elastic Effect Without Mouse Action
How can I make an elastic effect without any mouse action, only an on frame event ?

thnx

View Replies !    View Related
Elastic Effect With Mouse Control
okay here is my situation:
I have these two doors masking an image. There is a gap between the doors where the viewer can see part of the image, the doors cover the remainder of the image. The movement of the doors is triggered by the movement of the mouse. I have managed to accomplish the elastic effect however I need the doors to stop moving at given points ( the perimeter of the image being masked), regardless of how far the mouse has gone to either the right or the left. I am only working with the X plane, horizontally. So as of right now the script below doesn't stop the doors at the edge of the image. Instead they keep following the mouse past the stopping points. Can anyone help me out with this situation?
on Frame 1:
preloader.

on Frame 2:
xcenter = 400;
elasticDoor = function () {
if (old<=_root.xcenter) {
tester = true;
_root.door1._x = _root.door1._x+((_root._xmouse-80)-_root.door1._x)/10;
_root.door2._x = _root.door2._x+((_root._xmouse+80)-_root.door2._x)/20;
} else if (old>=_root.xcenter) {
tester = false;
_root.door1._x = _root.door1._x+((_root._xmouse-80)-_root.door1._x)/20;
_root.door2._x = _root.door2._x+((_root._xmouse+80)-_root.door2._x)/10;
}
};
parameter = function () {
if ((_root.door1._x<=110) && (_root.door2._x<=270)) {
_root.door1._x = 110;
_root.door2._x = 270;
}
if ((_root.door1._x>=535) && (_root.door2._x>=695)) {
_root.door1._x = 535;
_root.door2._x = 695;
}

};
elasticDoor();
parameter();
trace(tester);

on Frame 3:
_global.old = _root._xmouse;
gotoAndPlay(2);

If you want to view the SWF file visit the link below:
http://www.pharmacysupermall.com/problem

View Replies !    View Related
Elastic/Rubber Band Effect On Button
How do you create the elastic/rubber band effect on a button?

Example at http://www.creativeoxygen.com, then click "Who We Are" in the menu, then hover over "Our Bio."

Thanks.

View Replies !    View Related
Elastic/Rubber Band Effect On Button
How do you create the elastic/rubber band effect on a button?

Example at http://www.creativeoxygen.com, then click "Who We Are" in the menu, then hover over "Our Bio."

View Replies !    View Related
AttachMovie Clip To An Elastic Effect Button
I have an elastic button and I would like to have a box animate on to the screen when I roll over the button.
I've done the attachMovie to a normal button, but obvoiusly when I try to do this to the elastic button it bouncies along with it!
Does anyone know how to do this please.
Thank you
Linsey

View Replies !    View Related
Sliding Menu Tutorial - Elastic Effect
Hi !

I have downloaded your tutorial and it works fine. Thank you, very useful.

At this moment when you click on a destination it's start very fast and ends very slowly.

How can I make the destination start slowly, goes faster and faster then finish slowly ?

I have also a little problem to determine the value with 21 pages instead of 4. In my movie the navigation bar is not the same that the sliding content.

Than you for your answer.

View Replies !    View Related
Flash MX 2004...problem With An Elastic Effect Code
Hi I am trying to change the code to this effect , it's an elastic effect(photogallery) with masking and i have movie clips inside the library linked with the code and all i would like to do is to just do a vertical up and down effect (with 2 bottons) kind of like prev and next (left and right) that i alreadt have in this code but i am a beginner in AS and i can't figiure it out...here's the code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var w=800
var h=600
num = 5
function drawSquare(clip, depth, colour, x, y, w, h) {
var mc = clip.createEmptyMovieClip("clip"+depth, depth);
mc._x = x;
mc._y = y;
mc.lineStyle(0);
mc.beginFill(colour);
mc.lineTo(w, 0);
mc.lineTo(w, h);
mc.lineTo(0, h);
mc.endFill();
return mc;
}
function drawTriangle(clip, depth, colour, x, y, w, h) {
var mc = clip.createEmptyMovieClip("clip"+depth, depth);
mc._x = x;
mc._y = y;
mc.lineStyle(0);
mc.beginFill(colour);
mc.lineTo(w, 0);
mc.lineTo(w/2, h);
mc.endFill();
return mc;
}
cliparray = [];
current = 1;
currentv=0
this.createEmptyMovieClip("holder", 1);
holder._y =0
holder.startx = holder._x=-600
for (var i = 0; i<num; i++) {
var hh = holder.createEmptyMovieClip("h"+i, i);
hh.attachMovie("p"+i, "p", 1);
var t = hh.attachMovie("t"+i, "t", 2);
t._y = h;
//add more here but increae jvar by 1 for each + _y =2*h,_y =3*h increase each time
hh.jvar = 1
hh._x = i*w;
hh.starty = hh._y;
hh.ivar = i;
hh.up = false;
cliparray.push(hh);
hh.endy = h-hh._height;
}
holder.endx =w+600-holder._width;
function tweener(tx) {
var s = new Tween(holder, "_x", Elastic.easeOut, holder._x, tx, 2, true);
s.onMotionFinished = function() {
disableall(true);
};
}
function vertmove(ty,target,callback) {
onEnterFrame = function () {
target._y += (ty-target._y)/3;
if (Math.abs(ty-target._y)<2) {
target._y = ty;
delete this.onEnterFrame
callback()
}
};
}
function moveleft(){
if(w-current*w -600>holder.endx){
currentv = 0
current++;
tweener(w-current*w-600);
}
}
function moveright(){
if(w-current*w-600<holder.startx+600){
currentv = 0
current--;
tweener(w-current*w-600);
}
}
function leftF() {
vertmove(0,cliparray[current],moveleft)

}
function rightF() {
vertmove(0,cliparray[current],moveright)
}
function upF() {
if(currentv<cliparray[current].jvar){
currentv++
vertmove(-h*currentv,cliparray[current])
}

}
function downF() {
currentv=0
vertmove(-h*currentv,cliparray[current])
}

left.onPress = leftF;
right.onPress = rightF;
up.onPress = upF;
down.onPress = downF;
function disableall(t) {
left.enabled = t;
right.enabled = t;
up.enabled = t;
down.enabled = t;
}
up.swapDepths(10000)
down.swapDepths(10001)
left.swapDepths(10002)
right.swapDepths(10003)
/*to mask
var mask = this.createEmptyMovieClip("m",100)
drawSquare(mask, 1000, 0, 0, 100,w*3,h);
holder.setMask(mask)
*/

View Replies !    View Related
Click Drag - Elastic Return To Position Effect
How can I have someone click/grab/ an object > remember it's last position > drag the object > onrelease the object returns to it's last position before being dragged (and with an elastic/rubberband effect)?

Thanks!

View Replies !    View Related
Convert Elastic / Bounce Effect To MX 2004 (Flash Player 7)
I am using an elastic effect to ease a MC back to its original position after a drag release, but the code I'm using doesn't work with Flash Player 7. I can't publish to Flash Player 6, because I'm using components that require 7.

Can someone please take a look at the code, and let me know what changes need to be made to get it to work with Flash Player 7? Thanks!

Code on main timeline frame:

Code:
Movieclip.prototype.elasticPos = function(targetX, targetY, accel, convert) {
tellTarget (this) {
xPos = xPos * accel + (targetX - _x) * convert;
yPos = ypos * accel + (targetY - _y) * convert;
_x += xPos;
_y += yPos;
}
};
Code on MC:

Code:
onClipEvent (load) {
x = this._x;
y = this._y;
}
onClipEvent (enterFrame) {
if (!pressed) {
elasticPos(x, y, .9, .5);
// elasticPos( targetX, targetY, accel, convert);
}
}
Code on button inside MC:

Code:
on (press) {
startDrag("");
dragging = true;
}
on (release, releaseOutside) {
stopDrag();
dragging = false;
}

View Replies !    View Related
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
Add "elastic" Effect To Existing Code?
hi...
i have this function to position object on stage...
how can i add the "elastic" or "bounce" effect to this?

ActionScript Code:
function alignObjects() {
    destWidth = holder._width;
    destHeight = holder._height;
    holder._x = (stageW-holder._width)/2;
    holder._y = (stageH-holder._height)/2-infoSize/2;
    bg_mc.bg._width += (destWidth+border-bg_mc.bg._width)/5;
    bg_mc.bg._height += (destHeight+border-bg_mc.bg._height+infoSize)/5;
    bg_mc.bg._x = holder._x;
    bg_mc.bg._y = holder._y+infoSize/2;
    bg_mc._x = holder._width/2;
    bg_mc._y = holder._height/2;
    bttnNext._y = bg_mc._height+(stageH-bg_mc._height)/2 - infoSize - border/2 +(infoSize + border/2)/2 - bttnNext._height/2
    bttnNext._x = bg_mc._width+(stageW-bg_mc._width)/2-bttnNext._width-border/2;
    bttnPrev._y = bg_mc._height+(stageH-bg_mc._height)/2- infoSize - border/2 +(infoSize + border/2)/2 - bttnPrev._height/2
    bttnPrev._x = (stageW-bg_mc._width)/2+bttnPrev._width+border/2;
    caption._x = (bg_mc._width+(stageW-bg_mc._width+caption._width))/2-caption._width/2;
    caption._y = bg_mc._height+(stageH-bg_mc._height)/2- infoSize - border/2 +(infoSize + border/2)/2 - caption._height/2
    preloader._x = (bg_mc._width+(stageW-bg_mc._width+preloader._width))/2-preloader._width/2;
    preloader._y = bg_mc._height+(stageH-bg_mc._height)/2-bg_mc._height/2;
    picNum._x = bg_mc._width+stageW/2-bg_mc._width/2 - border/2 - picNum._width - 10
    picNum._y = stageH/2-bg_mc._height/2+ border/2 + 10
    bttn._x = holder._x;
    bttn._y = holder._y;
    bttn._width = holder._width;
    bttn._height = holder._height;
}

View Replies !    View Related
How Do I Recreate This "elastic" Effect?
Hey all,

Does anyone know of a tutorial or an open source for this effect? http://www.nasa20.com/ ... you will have to enter the "vivid" version of this site. I would like to recreate the "elastic" effect you get when you pull the NASA ...

Hope someone can help.

Thanks.

EG ;-0

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

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved