im trying to load in a different swf file depending on which key the users pressed, but i can only ever load one in before having to quit.
heres my code:
onClipEvent(enterFrame) {
if( Key.isDown(49) ) {
this.unloadMovie()
this.loadMovie( "Sanyo-3DmapSim scene01.swf" )
}
if( Key.isDown(50) ) {
this.unloadMovie()
this.loadMovie( "Sanyo-3DmapSim scene02.swf" )
}
if( Key.isDown(51) ) {
this.unloadMovie()
this.loadMovie( "Sanyo-3DmapSim scene03.swf" )
}
if( Key.isDown(52) ) {
this.unloadMovie()
this.loadMovie( "Sanyo-3DmapSim scene04.swf" )
}
if( Key.isDown(53) ) {
this.unloadMovie()
this.loadMovie( "Sanyo-3DmapSim scene05.swf" )
}
}
this is on a movieclip on my main timeline. is that the problem, should i be creating an empty MC everytime i load a swf then destroy it before loading the next one??
Any help would be great