A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: actionscripting for a movie clip. NEED HELP PLEASE VERY URGENT

  1. #1
    Junior Member
    Join Date
    Mar 2002
    Posts
    11

    actionscripting for a movie clip. NEED HELP PLEASE VERY URGENT

    Hi,

    I want to play a mc when I roll over it. Inside the mc there are buttons that load after the roll over. Here is my AS:



    onClipEvent (enterFrame) {
    if (this.hitTest(_root._xmouse, _root._ymouse)) {
    tellTarget (guest) {
    nextFrame();
    } else {


    prevFrame();


    }
    }
    }

    I am trying to unload the mc when I roll Out by using the else, but I can't get it to work. Can someone help on the AS. Thanks!!!!

  2. #2
    FK's Giant Steve_w_V's Avatar
    Join Date
    Mar 2003
    Location
    San Jose, California
    Posts
    2,113
    You may have to do the tellTarget in the else statement as well:
    code:
    onClipEvent (enterFrame) {
    if (this.hitTest(_root._xmouse, _root._ymouse)) {
    tellTarget (guest) {
    nextFrame();
    } else {
    tellTarget(guest){
    prevFrame();
    }
    }
    }
    }

    The other day, I bought a box of animal crackers. On the side, it said "Do Not Eat if Seal is Broken". I opened the box and sure enough...

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