Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: [flasher] duplicateMovieClip and depth setting
From: Muzak
Date: Thu, 01 Mar 2001 14:15:42 -0000

It's not a level (as with load movie) but a depth (more like with layers within one movie).
You can target the duplicated movieclips by their instance name given when created, and yes, they 'live' in the level where they
were created in.

_level0.MenuItem1, _level0.MenuItem2, etc...

or

_root.MenuItem1, _root.MenuItem2, etc...

(assuming they were created on the main timeline)

hth,
Muzak


----- Original Message -----
From: "AndyA" <meatandya [dot] demon [dot] nl>
Subject: [flasher] duplicateMovieClip and depth setting


> Hi All,
>
> I've been looking at this line of code for the last 30 minutes and cannot
> work out what is wrong with it. Help would be gratefully received.
>
> Code is:
>
> duplicateMovieClip (_root.MenuTemplate, "MenuItem"+MenuNameIndex,
> MenuNameIndex);
>
> the MenuNameIndex is an integer variable and is working fine, since
> "MenuItem"+MenuNameIndex is behaving as it should (MenuName1, MenuName2 etc
> as MenuNameIndex increments).
>
> The problem is that the MCs are all being created on _level0. My
> understanding is that the third parameter sets the level onto which the MC
> is loaded so the result should be an object MenuName1 on _level1, MenuName2
> on _level2 etc
>
> Am I just plain wrong? Or is something weird going on here?
>
> Regards
>
> Andy




[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]