sWo0p
November 7, 2002, 12:26pm
1
Hi im working on en site that needs a bouncie image, but all the tuts and movie clip i can find only work with onmouseover effect… i dont want onmouseover but bounce when the clip loads…
maybe someone can rearange this script so it bouces on clipload…
this in the 1st frame:
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
}
and this in the movie clip:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
elasticScale(150, 0.9, 0.1)
} else {
elasticScale(100, 0.9, 0.1)
}
}
please can someone help?
system
November 7, 2002, 6:12pm
2
Can’t you just do…
onClipEvent (enterFrame) {
elasticScale(150, 0.9, 0.1);
}
???
system
November 7, 2002, 7:19pm
3
okay i tryed your idea and must laugh
i always seem to have the bigest codes…
dhamm you juist made my code 2 times smaller
butt okay back to the code… you solution does work but did’nt give me the effect that i was going for…
i need to give in a minimu point of start and a maximun point of end…
of he jumps up from say 1 to 100% and stops
thats may goal…!!
system
November 7, 2002, 8:27pm
4
yesssss… i did it
dhuuu i was so simple
i juist made my movie clip very small
thanks for help…~!
system
November 7, 2002, 10:11pm
5
Awesome
I am glad I could help. And don’t worry about using too much code… I have the same problem. I can’t optimize my code for anything.
I can optimize it a bit, but I always seem to miss something that I can optimize
system
November 7, 2002, 10:13pm
6
well, i got a good resources on optimizing ur Actionscript, if it is needed, i would post it as a thread
system
November 7, 2002, 10:15pm
7
If it is the one that was posted on bits forum, I already have it
A lot of it I know how to do, I just overlook it :-\
system
November 8, 2002, 1:20pm
10
i think its i need to show you the result for al you hard work
[swf=“http://213.46.31.46/other.designs/sneaknet//flash/cyric_new.swf height=279 width=230”][/swf]
It’s a work in progress… (use your mouse over the image)
check rest of the site here tell me what you think of it (oh yeh and dont minde the button menu
Added a little extra stuff to it, if you wanne see the code ask and i’ll post it
system
November 8, 2002, 5:08pm
11
Thats pretty good. Good job
One question about the site though… why do you have the name of the link come up next to the name of the link when you roll over it on the main menu?
system
November 8, 2002, 6:09pm
12
Like i say, dont minde the buttons… its a little error in the script
did’nt get to it yet bin buzy FLASHING
system
November 8, 2002, 7:29pm
13
Oh ok
Good Luck with everything!