Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

70 users online



bouncy bouncy

bouncy bouncy

Currently viewing this thread: 1 (0 members and 1 guests)


pupu

pupu

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

devonair

devonair

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

pupu

pupu

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

dionysis

dionysis

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

bleedwithme

bleedwithme

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)

pupu

pupu

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

dionysis

dionysis

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.

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0074 seconds.