|
-
play backwards script good but on fast mouseover :O(
hi there
i have a clip+invisable button, on which i have placed a script, so when there is a mouseover, the clip starts playing, on a mouse out, the clips start playing backwards.
on (release/mouseout/xx) {
_root.onEnterFrame = function() {
_root.prevFrame();
if (_root._currentframe == 1) {
delete _root.onEnterFrame;
}
};
}
this all works well, as long as you do it very very slowly. (the clip that is being played and reversed is about 100 frames.... (build up of a flower, shapes not motion tween)
but if you do a fast mouse over, the clip stops, goes back to frame one, without playing again...
(first and last frames have a stop)
does anybody have a good solution....?
regards
-
assuming you have a stop in Frame 1, a stop in the last frame, and the button in _root, this works consistently
Code:
on(rollOver){
delete onEnterFrame;
play();}
on(rollOut){
onEnterFrame=prevFrame;}
-
works perfectly after some adjustment
thanx a lot!
very very nice script, small and effective..... also with fast mouseovers!
-
Registered User
Hey guys,
I also found this thread incredibly helpful and also wish to commend moagrius on such a wonderful script. For many months I have had the problem of slow rollovers, and I have not, for the life of me, been able to come up with a sollution. Thank you so very much for this. This is why I love the community.
-
tyvm
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
|