dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Movie Clip as a button???

  1. #1
    Junior Member
    Join Date
    Dec 2002
    Posts
    2

    Movie Clip as a button???

    Help! I am getting really stressed over this problem i have created a mc button which shimmys on rollover but as soon as you roll off the button the mc jumps to the beginning and will not play through?? how can i get it to play to the end when the mouse rolls off??

  2. #2
    Hi, you say you have a mc with a button in it? or is it the other way around?

    well if it's a button inside of a movie clip this is the coding, I'll even send the fla if you need be.

    Code:
    onClipEvent (enterFrame) {
    	if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
    		if (this._currentframe<this._totalframes) {
    			nextFrame();
    		}
    	} else {
    		if (this._currentframe>1) {
    			prevFrame();
    		}
    	}
    }
    There we have it and here's the fla if you need it.
    Attached Files Attached Files

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