
April 20th, 2005
05:33 AM
Neverside Newbie
Status: Offline!
bouncy bouncy
sup ppl??
ive just been wondering if anybody knows how to make a button that wen u are on top of it, it makes a bouncy effect...
i know it uses action script.. but has some1 seen a tut about it??? ive searched through kirupa and actionscript.org, but they dont go way too deep on special effects unless is for bg.. anywayas...
id apreaciate the help...
and if any body knows any good sites for flash would be great too ...
cheers!..

April 20th, 2005
06:41 AM
Neverside Newbie
Status: Offline!
can you link to an example of what you're talking about, or describe it better? There are many ways something can bounce.. Are you talking about the button itself or something else? Scale or position? And what version of Flash? the more details you can give when asking a question, the easier it is to figure something out..
___________________
obod | weapons of mass dysfunction

April 20th, 2005
01:35 PM
Neverside Newbie
Status: Offline!
well.. for an example i havent found anything.. but what im looking for is for it to scale bigger with a bouncy effect and ease...
im using MX..

April 20th, 2005
07:22 PM
Neverside Newbie
Status: Offline!
I made something maybe similar to what your talking about awhile back when i was learning actionscript, might help, might not.....
Attach this code to frame in timeline:
mcMenu.onRollOver = function () {
this.stretch = true;
this.bunjy = false;
_root.setPoint = this.setPoint;
};
mcMenu.onRollOut =function () {
this.bunjy = true;
this.stretchLevel = this._xscale;
this.stretch = false;
this.justReleased = true;
this.away = true;
};
mcMenu.onEnterFrame =function () {
if (this.stretch) {
if (this._xscale<=150) {
this._xscale = this._yscale += ((150-this._xscale)*.1);
}
} else if (this.bunjy) {
if (this.justReleased) {
this.bounceTo = (100-((this.stretchLevel-100)*.75));
this.justReleased = false;
} else if (this._xscale>=bounceTo && this.away) {
this._xscale = this._yscale -= ((this._xscale-this.bounceTo)*.65);
if (this._xscale<=(this.bounceTo+.5)) {
this.away = false;
this.toward = true;
this.bounceTo = (100+((100-this.bounceTo)*.75));
}
} else if (this._xscale<=this.bounceTo && this.toward) {
this._xscale = this._yscale += ((this.bounceTo-this._xscale)*.65);
if (this._xscale>=(this.bounceTo-.5)) {
this.away = true;
this.toward = false;
this.bounceTo = (100-((this.bounceTo-100)*.75));
}
}
}
};
then just name the instance of the movie to 'mcMenu' or change it in the code to suit your needs. When you roll over the movie it will stretch towards you slowly and move off and it bunjy's
Apologies for the coding, sure it can be done better

April 22nd, 2005
01:25 PM
i do my crosswords in pen
Status: Offline!
I hate to do it, but: http://www.google.com/search?q=flash+tutorials+bounce+e ... zilla:en-US:official
There's a loooot of good **** in there man. And if looking through that is too hard, then just go here: http://www.entheosweb.com/Flash/bouncing_effect.asp =P
Last edited by bleedwithme, April 22nd, 2005 01:26 PM (Edited 1 times)

April 22nd, 2005
06:34 PM
Neverside Newbie
Status: Offline!
well dudes.. thanks for all the help!!
btw.. Dyonisis.. were are u learning actionscript??
also, the code has some errors. it says that "}" is missing :S

April 23rd, 2005
03:29 AM
Neverside Newbie
Status: Offline!
I just copied the code from the posting back into flash and didnt get any error, are you sure you didnt miss one of the bottome '}' when you copied it?
As for where I learned actionscripting, I just taught myself, with help from some books. If you still have trouble with the code then give me your email and I will send you the .fla as im not sure how/if you can attach files here.