A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: play backwards script good but on fast mouseover :O(

Hybrid View

  1. #1
    Senior Member
    Join Date
    Nov 2004
    Posts
    114

    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

  2. #2
    ___________________
    Join Date
    May 2004
    Posts
    3,174
    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;}

  3. #3
    Senior Member
    Join Date
    Nov 2004
    Posts
    114
    works perfectly after some adjustment

    thanx a lot!

    very very nice script, small and effective..... also with fast mouseovers!

  4. #4
    Registered User greenham's Avatar
    Join Date
    Mar 2005
    Location
    Australia
    Posts
    555
    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.

  5. #5
    ___________________
    Join Date
    May 2004
    Posts
    3,174
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center