Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using loadMovie with attachMovie 1

Status
Not open for further replies.

thebeige

Programmer
Oct 1, 2003
5
US
Is there any possible way to load a movie and then use attachMovie to grab linked mc's from that movie?

I've got a bunch of mc's that I want to load into my project dynamically, and I need to have all the flexibility of using them as Movie Clips (using attachMovie, scaling them, referencing sub-clips, etc.). Is this possible???

My code is simple.
loadMovieNum("Source.swf", 5);
attachMovie("mc1_link", "attachedMovie", 10);

The first frame of the loaded movie shows up just fine at runtime, but attachMovie doesn't do anything.

I've set up all the linkage stuff in "Source.swf".
I have a movie clip in my library that's linked as "mc1_link".

This is leading me to believe that it's not possible to do what I want.
If so, could anyone offer any workarounds?
Thanks.
 
My initial intent was to share the libraries. I just wasn't sure that it was possible, because I wasn't able to get it to work.
I followed the directions in the link, and I was able to attach my movie. The key, I think was to ensure that the loaded file was completely loaded first and then that the proper _levels were referenced.

Thanks so much.
It was extremely helpful.
You have no idea how much frustration you just ended.

Well... you are a programmer, so I suppose you might have an idea...

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top