(MX)movieclip visibility when loading movieclip

Hello!

I’m having a little problem when I use this code:

mymovieclip1._visible=false
mymovieclip1.loadmovie(“xxx.swf”)

The problem is that he does load the movie, but that he doesn’t make it invisible. And I only want the movie to be visible a few seconds later…
What is wrong here?

THanks!

once the external swf is loaded into the MovieClip its properties are reset (i think _xscale and _yscale are the only exceptions, not sure).

you’ll need to preload it and then set its _visible property to false, or you can just set it to false in the first frame of the swf being loaded into the MovieClip.

=)

I managed to find a solution in the meanwhile: I put mymovieclip1 in another mymovieclip2 and I made the second one invisible. And i works!! yaaay!! :slight_smile:

But thanks for the tips, Kax, they’ll prove to be usefull!

yup… as usual, there’s a bunch of ways to solve the same problem. :wink: