Hello I am attempting to make my first flash movie and I seem to have run into a problem.
I have the main movie where my buttons are etc and I just recently made a new movie following the random movement tutorial here for flash mx.
My question is how do I get that random movement tutorial into my main movie?
My random movement tutorial has 3 layers with 3 diff shapes moving in it. I want that to move in a certain area in my main movie.
I cant seem how to figure out to make this part of it work even with the tutorial… I did that tutorial for my main movie loading external swf’s and it worked fine.
I am just unsure how to make a movie clip that has 3 layers in another swf appear where i want it to on my main movie. It seems like it should be easy since I did it before with other .swf’s// why is this giving me problems? Argghh!
well man, if you want to position your sub movie (the animation) in a spot you want it to be on your main movie then youre going to have to do it one of two ways…
load the movie into a target movieclip…something like this:
_root.targetMC.loadMovie(“nameofmovie.swf”)
and then on the main movie, place an empty movieclip (in my example named “targetMC”) anywhere on the movie you want the external movie to load…remember the registry point is the top left corner…
load the movie into a new level
heres a trick i sometimes use for various reasons…i make my external swf’s the same doc. size as my main movie…then i use the load movie into a level method, and just place all my content on the sub movie in a desired location relative to the main movie…
ie: loadMovieNum(“nameofmovie.swf”, 999) <— “999” is the level number desired…
Still having problems figuring this out.
So I open up my main movie and create a new symbol-movie clip and give it this to the actions? _root.targetMC.loadMovie(“nameofmovie.swf”)
Then after that create another layer with another movie clip and give it the name of my last movie clip?
Sorry…
Claudio I very much appreciate your offer of putting it in for me. Except I really really want to try to put the action script and movie clip on the page by myself so i can write it down as i go and learn it as I am putting it in.
Does that sound right in the past post what I wrote about the layers and clips? Still kind of confused on having something appear on a page without clicking a button to make it show…
Ok, do this:
Open your main fla.
Create a layer for your random movement animation you want to put on your main file. Label it for example, Animation.
Hit Ctrl+F8 to create a new movie clip. Name it animation. Now go to File | Import and select your animation swf file.
Once u have done dat, the animation will be now a movie clip of your main movie.
Hit Ctrl+L to open your library and drag and drop it to your animation layer.
Claudio,
I have followed those steps and when I add the .swf (which is random movement) onto my main movie and test movie the ranom movement isnt moving…
I can try to post the movie tomorrow… I have been trying to work on it but it still seems to not want to work… it is indeed showing the .swf like you said but it isnt doing the random movement thing… Hmmmmmmm …
Hmm I was able to get it to somewhat work by doing what you said… although the movie I imported seems to be playing a little odd… jumping and slowing up etc…
Opened my main movie
created a new layer called actions2
control + F8 movie clip… give it a name of actions2
File imported the .swf I wanted to load
clicked back to main timeline
drag the mc I just made onto the timeline
right click the first frame of actions 2 and paste in _root.actions2.loadMovie(“yourmovie.swf”);
Anything I did wrong that could make it to be playing choppy?
I put this in just attempting things to make it work
_root.actions2.loadMovie(“yourmovie.swf”);
and to my suprise it worked… but it came out a little choppy… When I didn’t have that in there the imported random movement movie stayed still and did not move at all.
Hey x.vector… you were correct on making the animation run correctly… Thanks to Claudio, Xvec and everyone else for their assistance on this!
I really appreciate it.