I want to load a new movie to replace the one playing. The new swf is in the same directory as the current movie. Lets say the new movie I want to load is called newmovie.swf. What should I put for the url, target, and method???:camera;
loadMovie("newmovie.swf")
But when I go to: Global functions > Browser/Network > LoadMovie, it says I need all three (url, target, and method)
'target' is used for loading into or replacing another movie clip already playing and method is used for sending variables which isnt needed to just load a movie. you could use loadMovie('newmovie.swf", oldMovie_mc); to replace the other movie clip but it will take on the size of the previous movie
Originally posted by: ryandrum 'target' is used for loading into or replacing another movie clip already playing and method is used for sending variables which isnt needed to just load a movie. you could use loadMovie('newmovie.swf", oldMovie_mc); to replace the other movie clip but it will take on the size of the previous movie OK, will this work: loadMovie('newmovie.swf", oldMovie.swf) ??? I want to replace a swf with a swf
Originally posted by: ryandrum 'target' is used for loading into or replacing another movie clip already playing and method is used for sending variables which isnt needed to just load a movie. you could use loadMovie('newmovie.swf", oldMovie_mc); to replace the other movie clip but it will take on the size of the previous movie This is the error I got: **Error** Scene=Scene 1, layer=Layer 5, frame=1375:Line 2: String literal was not properly terminated loadMovie('where5.swf", recruitcustomervideocropped.swf) **Error** Scene=Scene 1, layer=Layer 5, frame=1375:Line 5: ')' or ',' expected Total ActionScript Errors: 2 Reported Errors: 2
You have a single quote in front of where5.swf and a double qoute after and you should use the movie clip name you are loading to as the target, not the swf you are replacing. loadMovie("newmovie.swf") will work fine if you are loading to the root. if not use. yourTarget.loadMovie("newmovie.swf")
Its the same as before only last time your target was 'this' now you have a button that is in a clip and you want to load a movie to that clip. So let's say the movieClip that your button is in is called 'myClip' so the script for your button would be. on(release) { _root.myclip.loadmovie("newClipName"); }
Don't see what you're looking for? Try a search.
|