A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Help Needed Here Please

  1. #1
    Member
    Join Date
    Jul 2004
    Location
    jax, florida
    Posts
    80

    Help Needed Here Please

    Hi Guys, I found a tutorial on line and was trying to edit it. My problem is that the left button should stop on rollout, but it doesn't for some reason. Anyone knows why please?
    (If the user rolls over the right button, the movie plays and when rollout, the movie stops. If the user rolls over the left button, the movie rewinds, but when rollout, it doesn't stop where it is.)
    Attached Files Attached Files

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    60
    on(rollOut){
    stop();
    }

    That may work if I know what you're talking about... and I have flash 5, so that FLA won't work.

  3. #3
    Member
    Join Date
    Jul 2004
    Location
    jax, florida
    Posts
    80
    I have that code, but it isn't working.

  4. #4
    Member
    Join Date
    Jul 2004
    Location
    jax, florida
    Posts
    80
    1-On the first frame of the stage i have this:

    MovieClip.prototype.rewind = function () {
    if (goBack && (_currentframe>1)) {
    gotoAndStop (_currentframe-1);
    }
    }
    2-attached to the movie clip this code:

    onClipEvent (enterFrame) {
    this.rewind();
    }
    3-On the right button i have this:

    on (rollOver) {
    mc1.goBack = false;
    mc1.play();
    }
    on (rollOut) {
    mc1.stop();
    }
    4-On the left button i have this:

    on (rollOver) {
    mc1.goBack = true;
    mc1.play();
    }
    on (rollOut) {
    mc1.stop();
    }

    The first button is working and stopping on rollout, but the second button isn't(the rewind button).

  5. #5
    Oso polar Poco's Avatar
    Join Date
    Apr 2003
    Location
    Slovakia
    Posts
    218
    on (rollOut) {
    mc1.goBack = false;
    mc1.stop();
    }

    It should work like this.

  6. #6
    Oso polar Poco's Avatar
    Join Date
    Apr 2003
    Location
    Slovakia
    Posts
    218
    Well, that mc1.stop(); isn't neccessary, the mc1.goBack = false; will stop it.

  7. #7
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Try this.
    Attached Files Attached Files

  8. #8
    Member
    Join Date
    Jul 2004
    Location
    jax, florida
    Posts
    80
    Thank you guys, both examples are working fine and are useful.
    Again, thank you all.

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