Skip to main content
Known Participant
August 3, 2009
Question

load MC from library

  • August 3, 2009
  • 2 replies
  • 901 views

Hi all

I have a Movieclip with a base name called 'movie_main' and class  name as 'Main_mc'

I am trying to load the movie from the library into a  contanier that also loads in a tooltip. The container is called  'holder'

this is the script I am working with


var movie_main:Main_mc = Main_mc();
holder.addChild(movie_main);

problem is when it loads in other parts  of my menu are missed placed.

Question:
is this the correct script I  should use?? Is there issues with loading in more than 1 movieclip into one  contanier??

aaarrrggggghhhhh!!!!!!!

help please

This topic has been closed for replies.

2 replies

Inspiring
August 3, 2009

Looks like a correct script.

There is no limit on how many objects you can place into a single container.

What do you mean by "missed placed"?

Known Participant
August 3, 2009

hi there, thanks for your reply.

it's for a rotating menu, that loads in images and a tooltip but when I add the extra movieclip the menu gets put out of postions, does this explain better, sorry difficult to explain??????

webqaflash
Inspiring
August 3, 2009

you should add a new

var movie_main:Main_mc = new Main_mc();
holder.addChild(movie_main);
Known Participant
August 3, 2009

hi there thanks for your reply

sorry, that was a typo yes I have this already;

var movie_main:Main_mc = new Main_mc ( ) ;

holder.addChild (movie_main);

just seems to put other things out of position, thought it might be as I am loading 2 movieclips into one container??