View Full Version : loading movie...
sudarshan
02-02-2002, 02:57 PM
hello!
how to load a movie within a movie? is it the same method as loading external movie?
Sud.
iceman4
02-02-2002, 09:19 PM
Well it depends on what you mean? If you want to load a whole movie then yes its the same as loading an external movie and you use the loadMovie();. But if you want to load a movie clip into your movie without having it on the stage then you can use the attachMovie method which by using linkage allows you to place any movieclip where you want it on the stage.
Kyle
sudarshan
02-03-2002, 03:50 PM
hello iceman,
I want to load internal movies. Do I used the attachmovie or the loadmovie? what do i have to write for the newname and depth in attachMovie command? Thanks.
Sud.
iceman4
02-03-2002, 06:30 PM
I'm still not sure what you mean by internal movies? Do you mean movie clips that are inside your movie or to you mean scenes in your movie or external movies(ie swf's)? if you want to load internal movie CLIPS then you use the attachMovie action. If its more conveniant and you need more help on the subject feel free to email me at iceman4@sympatico.ca
Hope this helps
Kyle
Jesse
02-04-2002, 05:15 AM
I think what you're after is attach movie; that's used to attach a movie clip from the current movie's library. See our attachMovie tutorial.
sudarshan
02-04-2002, 02:31 PM
hello iceman,
i want to load a movieclip inside a movie and now I know the use of attachMovie. I know how to load external movies and was stuck at loading the movie clips inside a movie. I got one more problem. what do i have to write for the idName, newName and depth for the attachMovie? It was very kind of you for helping me and I'll mail ya if I have a prob.? Thanks a pile.
Sud.
iceman4
02-04-2002, 09:44 PM
Well for the idName, you have to right click on the movie clip in the library and the click on linkage and then select the "export this symbol" and type the name in the indentifier window the the name that you type in the indentifier box is the idName that you put with the attachMovie method. The newname is the name that the movie clip will be called once it is attached to the main movie. The depth is usually 1 but you can change it to a higher # if you want it to appear behind other movie clips or in front of other clips. If you still need help email me. iceman4@sympatico.ca
Kyle
sudarshan
02-06-2002, 04:18 PM
hey iceman,
cheers! it's working. But how to uload the main movieclip while the new movie replaces it? it get's loaded on top of the main MC. Do I have to use the removeMC command?
For the attachMC:
When I give the idName and the newName without quotes it doesn't work and it works when I give the quotes. Why is that?
Thanks.
Sud.
iceman4
02-06-2002, 07:11 PM
Hey sudarshan,
I'm glad its working. If your loading a movie clip into your movie and you want to replace the movie type the name of the movieclip that is there originally. Like for example say your movie clip that is on the stage at the begining is called "firstclip" and you want to replace it buy the clip named "replaceclip" you would have your code looking something like this. firstclip.attachMovie("replaceclip", "newclip", 1)
and the reason you have to put everything in quotes is because it has to take the movie clip as string not as a literal. For example
variable 1= clip._x
this is a taken as a literal
Literals are usually like internal functions or numbers
variable 2 = "new"
this is taken as a string because its in quotes.
most of the time when you put something in quotes its usually an name or an instance name in this case.
Literals are usually like internal functions or numbers, thats why in the code firstclip.attachMovie("replaceclip", "newclip", 1) the firstclip isn't in quotes because its part of an internal function.
Hope this helps!
Kyle
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.