Controlling an *attachedMovie*?

Is it possible to control a MC that is attached to another MC?

Example:

on (release) {

_root.loader.play();

}

loader is the blank MC… and I want to control the MC that is attached to it called movie1.

Is that possible? Why is it not working?

Thanks ahead of time.

of course, you can control the attached movie with its instance name that u give…
if your code is
[AS] loader.attachMovie(“mc1”,“movie1”,1); [/AS]
you can control it with;
[AS] _root.loader.movie1 [/AS]

e.s.x.s

you can also use this method, which is my personal favorite:

mc = attachMovie("clip", "clip", 0);

Now you can control “mc” as “clip”. e.g.:

mc._xscale = 50;

Thanks… e.s.x.s

The code worked just fine, and I got my MC controlled… The only problem is that the movie that is being attached will change a lot and I cant control straight to it.

Know what I mean?

Where you said: _root.loader.movie1

Depending on what button you push, it might be movie2, movie3, and so on.

So, I can exactly tell my button to control movie1 when some other movie was loaded into it.

Does that make sense?

Thanks!

i can’t understand well…but my answer is:
if you attached the “movie1” ,add your code:
[AS]
_root.myAttachedMovie = “movie1”;
[/AS]
and add below code to your buttons:
[AS]
on(release){
if(_root.myAttachedMovie == “movie1”){
//what you want to do
}
if(_root.myAttachedMovie == “movie2”){
//what you want to do
}
if(_root.myAttachedMovie == “movie3”){
//what you want to do
}
}
[/AS]

Thanks! I also found another way… see below.

BUTTON:

_root.loader.thePath.play()

FIRST FRAME OF MOVIE THAT WAS ATTACHED

_parent.thePath = this

Thanks for all the help… I appreciate it.

u r welcome skillet:) i couldn’t understand right, what u mean;) but now i understood:)

e.s.x.s