Smooth Movie Clip Playing
I did a couple of searches and I couldn't quite find what I was looking for....
It's probably pretty simple.. I just what to a have a movie clip (for a button) play forward on a mouseover and play backward on a mouseout.. I don't want there to be any jump in frames. Basically the movieclip will play smoothly even if the mouseout occurs in the middleframes of the movie clip..
Sorry for the longwinded explanation.
Thanks.
This is probably what you're looking for...
http://odin.prohosting.com/~oldnew/buttontest.swf
Was written in Flash 4 syntax...
Start with this, and if I can find it, will post a newer MX version tomorrow...
Attached Files
Beautiful! Thanks for the help.
Last edited by Loomer1000; 02-15-2003 at 02:29 PM .
If you could post an updated version for MX that would be great too.. I'm just trying to figure out the older actionscript.
Thanks.
Attached Files
Terrific! I really appreicate the help. I think I can do what I want now.
Senior Member
Hey folks, I'm pretty horrible with actionscript,
I'm trying to do this right now, and I can get this to work fine if I set it up exactly like this movie and only have 1 movieclip on the page that I need to reverse, but in my case I have 6 buttons I need to reverse.
here's the code I tried, (just for 2)
Code:
function doReverse() {
_root.mybut1mc.onEnterFrame = function() {
if (_root.mybut1mc._currentframe>2) {
_root.mybut1mc.gotoAndStop(_root.mybut1mc._currentframe-1);
} else {
_root.mybut1mc.onEnterFrame = null;
}
};
}
mybut1.onRollOver = function() {
_root.mybut1mc.onEnterFrame = null;
_root.mybut1mc.play();
};
mybut1.onRollOut = mybut1.onDragOut=function () { _root.doReverse();};
mybut1.onPress = function() {
trace("Yo!");
};
function doReverse() {
_root.mybut2mc.onEnterFrame = function() {
if (_root.mybut2mc._currentframe>2) {
_root.mybut2mc.gotoAndStop(_root.mybut2mc._currentframe-1);
} else {
_root.mybut2mc.onEnterFrame = null;
}
};
}
mybut2.onRollOver = function() {
_root.mybut2mc.onEnterFrame = null;
_root.mybut2mc.play();
};
mybut2.onRollOut = mybut2.onDragOut=function () { _root.doReverse();};
mybut2.onPress = function() {
trace("Yo!");
};
stop();
when I did this I got the mybut2 to work but the first one stopped.. I'm sure there is some basic coding problems.
thanks
Senior Member
Ok, never mind, I played with it and just made 6 different functions..
I think it works great now.
here's a link if anyone is interested.
http://www.glamourdog.com
(this is a holiday thing so it wont be up after the first of the year)
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