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!

attachMovie with Shared Libraries

Status
Not open for further replies.

thebeige

Programmer
Oct 1, 2003
5
US
Hey,

I can successfully attachMovies from a loaded external .swf, but I can't see and attach those movies outside of the loaded .swf.

Allow me to illustrate...

I've loaded the external file...
loadMovieNum("DesignToolUniform.swf", 1);

... and I'm dynamically attaching movies.

for (i = 0; i < movieClipArray.length; i++)
{
linkName = movieClipArray[ i ];
newName = linkName;
_root._level1.attachMovie(linkName, newName, i + 10);

newMovie = eval(&quot;_root._level1.&quot; + newName);
newMovie._x = xPos;
newMovie._y = 155;

xPos += newMovie._width + 15;
}

The problem is that I want to attach movies to another timeline.
Say, instead of using _root._level1.attachMovie(), I'd like to be able to do _root.differentMC.attachMovie().
I've tried a few variations of this, but I'm unable to attach.
My attached clips are only seen if they're referenced from the same level.

Any help would be greatly appreciated.
 
_root._level1... Again?

Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top