-
How do they do that?
I am wondering how companies like macromedia and fantasy-interactive and others make those nifty little buttons that when i scroll off they go back to the waiting position but if i went right back on to it a split second later before it finishs it will go back to click position from that frame its on and not start from the beginning like i usually see. Its like there some kind of new thing in the membrane of the outer cropus of the galactic ooze of the century(sorry kinda bored and tired).???.?.?.?.?
-
Clarify your question just a bit and I'll be glad to help you out, or give me a specific example.
-
Senior Member
can u post url of that sites??
-
sure here is one from fantasy-interactive.comfantasy-interactive.com an then you can see that all of there buttons do that. It might be hard to notice but it happens and it looks nice and natural
-
it will go back to click position from that frame its on and not start from the beginning like i usually see.
Could you please rephrase or better define this part of your question. I'm still not able to tell exactly what you are asking about.
Also tell me an exact button. I think I'm looking at too many at once trying to figure out what is in common with all of them, and I am not looking for what you are referring to.
-
Senior Member
i was also trying to find the effect but couldn't
-
ok well say when i make a standard button in flash and i have an animation going from the rest state to the over state like i want it to look like its a light coming on slowly(warming up) and then the same just backwards so when i take the mouse off of it. See when I first put the mouse on it, it plays the animation but say if i took off the mouse half way through it wouldn't play from the same frame just going back to the rest state. It would just start as if i had waited till the over state had finished and then took it off. If you guys still dont get it I'll try and find a easier way to say this. Thanks for being patient though
-
Official FK nice guy and MOD
Hi,
its just a movie clip.
User mouses over, target name/timeline that has mouse over animation
user mouses off, taget name/timeline that has mouse off animation
on(rollOver)
{
mc1.gotoAndPlay('over');
}
on(rollOut)
{
mc1.gotoAndPlay('out');
}
on(releaseOutside)
{
mc1.gotoAndPlay('out');
}
-
See thats what im saying whats wrong. Say when its playing the over animation if i took the mouse off it would just jump to the going out animation an it looks glitchy. I want it to not do that and look smooth, clean and sharp. Any ideas?
-
·»¤«·
There are different ways to do it. Here's a simple forward/reverse method:
code:
stop();
this.onRollOver = function() {
this.onEnterFrame = function(){
nextFrame();
if(_currentframe==_totalframes){ delete this.onEnterFrame };
}
}
this.onRollOut = this.onReleaseOutside = function() {
this.onEnterFrame = function(){
prevFrame();
if(_currentframe==0){ delete this.onEnterFrame };
}
}
put that on the first frame of a movieclip
>flashl!ght<
All the normal names were taken.
Ron Paul was right.
-
thanks man that works great i am starting to use the code all over my site
oh how do you do the whole script fromating thing you guys do?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|