i have movies with this code on them:
onClipEvent(load)
{
totalframes=20;
this.onRollOver=function()
{ if(this._currentframe>totalframes/2)
{ this.gotoAndPlay(totalframes-this._currentframe);
}else{
this.play();
} }
this.onRollOut=function()
{ if(this._currentframe<totalframes/2)
{ this.gotoAndPlay(((totalframes/2)-this._currentframe)+(totalframes/2));
}else{
this.play();
} }
}
i cant figure out how to get them to load an external swf in to a blank mc
i have put clear buttons ontop of them which works but it stops the movie clip from playing.
any help woud be great. thanks
sry went wrong here
[FONT=Courier New][/FONT]
you have movieclips for buttons. Give the mc an instance name like “button1”, then put on the stage in frame 1 some actionsscript:
button1.onRelease = function() {
container.loadMovie("external swf name")
}
or
in the actionsscript on the movieclip itself like you have
onClipEvent(load)
{
totalframes=20;
this.onRollOver=function() {
if(this._currentframe>totalframes/2)
{ this.gotoAndPlay(totalframes-this._currentframe);
}else{
this.play();
} }
this.onRollOut=function()
{ if(this._currentframe<totalframes/2)
{ this.gotoAndPlay(((totalframes/2)-this._currentframe)+(totalframes/2));
}else{
this.play();
} }
this.onRelease = function() {
container.loadMovie("external swf name")
}
}