Loadmvienum

jsut wanted to know how i load a movie into a certain spot (_x,_y)…
please post syntax

You just load the new movie into a movieclip and then move the movieclip you loeaded the movie into!

syko is right the script would look something like.

oHolderClip.loadMovie(“mySwfToBeLoaded.swf”);
oHolderClip._x=50;
oHolderClip._y=150;

if the instance name of the movie clip which you will be loading the external swf into is “oHolderClip”, and the name of the file to be loaded is “mySwfToBeLoaded.swf”.

note: anything contained inside oHolderClip will be overwriten by the loaded swf. That includes any previously loaded movies or any frames that it naturaly contains.

Here is one possible way of using loadMovieNum

in the main movie create an empty movieclip and place it where you want your movie to load. Name it (I call it MCload)

in the movie you want to load put the script (I call this movie loading.swf)

_x = _level0.MCload._x;
_y = _level0.MCload._y;

the script for loading (this you put in the main movie)

loadMovieNum(“loading.swf”,1);

this will load the movie into level 1 at the same coordinates as MCload.

yer dats wat i thought…
but i cant seem to get this working…

test.loadMovie(“simple.swf”);
test._x=10;
test._y=10;

the movie to be loaded in simple.swf and the movie it will be loaded into instance name is test…

A) double check the variable name of the movie clip called “test”.
B) make sure that “test” is located in the main timeline
C) make sure that “simple.swf” is located in the same file folder as the FLA that is loading it. Yes that means that you must save your FLA before testing. Without it being saved, the computer places the test swf in a temp folder, which will throw off the path to the movie to be loaded.

With those things in consideration… the code should work fine.

nope no go…
heres the setup…
i have a button…
which throws u to “simple” framelabel…
now from there i need to load the external swf “simple.swf”…
maybe im missunderstanding wat ppl have written but no matter wat i try’di couldnt even getit to load the movie…

off topic*
the onli tym i could load the movie was when i created a new MC and inside that in an “on load” handler toldit to load :simple.swf: which it did then on teh main tym line i moved that MC…wat i found was that the MC moved, but the loaded movie didnt, regaurdless of where the MC was originaly or where i was moved to…*

if you’re going to a particular frame, are you sure that the movie clip called “test” exists on the timeline at that frame? If it isn’t there, it can’t be loaded into.

Other than that, all I can think of to do is provide an example of a working external loaded movie.

yer ive don all that…
i think its best u gimme a working version if u can…

I’ll see what I can do. Might not be till morning though. I don’t think I have any examples uploaded at the moment.

hey took a look at ur site…
u want ne help wif it…
like serverside or graphics…?

thanks for the offer… but it’s really just a place for me to play around with stuff and post a few links to beta tutorials.

I am working on a full Flash site… but every time I get around to working on it, I find that I’ve learned so much that everything has to be redone from scratch. So… in the end, it never gets completed. :slight_smile:

If I do need some help though I’ll try to keep you in mind. That’s a nice offer.