I'm trying to find a way of keeping a mc button on the last
frame of it's timeline i.e. down the problem being the buttons
function is to load an external swf into a container on the _root
timeline. I cannot work out how to do this without messing the code
for the button up. Here is the code for one button. Any help
appreciated!
stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
this.onPress = function() {
if (_root.currMovie == undefined) {
_root.currMovie = ''weather'';
_root.container.loadMovie(''weather.swf'');
} else if (_root.currMovie != ''weather'') {
if
(_root.container._currentframe%26gt;=_root.container.midframe) {
_root.currMovie = ''weather'';
_root.container.play();
}
}
};
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment