but when i put it on the server and it executes the loadMovie command. it shows the preloader for the loading movie and then the whole movie reloads … it’s weird
That sounds more like you forgetting a stop() action somehwere or something like that. It doesn’t sound like its anything wrong with the loadMovie code itself.
Then it sounds like a targetting issue. If you test the file itself locally and it works, but when you upload it and view it after it gets loaded in and it screws up, then it is a targetting issue.
But if you are viewing it the same exactly way both locally and on the server (viewing the main file and loading the new file into it) and it works locally and not on a server, then you just have a retarded file. Because the file works on the web the same way it works locally on your computer.
If the movie you are loading in contains _root anywhere (such as _root.gotoAndPlay() or something) then thats whats causing the problem. That is what I am assuming is happening because it sounds (if I understand correctly) like your preloader finishes loading, then it restarts your main movie, meaning that the if statement might say _root.gotoAndPlay(frame#) and therefore it is playing the main movies timeline.