Flasher Archive

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


Subject: FLASH: Duplicating Movie Clips
From: David Brozicevich
Date: Mon, 19 Jul 1999 13:52:28 +0100


I'm wondering if anybody can enlighten me with the Duplicating Movie clip
statement in reguards to the Depth attribute. I have a simple looping
action that creates eight instances of a target. Here is the script:

Set Variable: "i" = 1
Loop While (i<=8)
Comment: Init TARGET POSITION
Trace ("i="&i)
Duplicate Movie Clip ("tgt", "tgt"&i, i)
Set Property ("/tgt"&i, X Position) = GetProperty ( "/inv"&i, _x )
Set Property ("/tgt"&i, Y Position) = GetProperty ( "/inv"&i, _y )
Comment: Init Invisible OBJECT
Set Property ("/inv"&i, Visibility) = 0
Set Variable: "i" = i+1
End Loop

What happens is the depth of each new instance is also incremented. The
script seems to work fine but the depth level is actually global to the
whole Flash movie. These newly created instances sit on top of every other
object on the stage reguardless of the layer position of the targeted movie
clip used for duplication, or for that matter any other object in any other
layer. I even changed the layer of where the action was called, no avail.
Have I done something wrong? Is this a bug? Is there a work around?

Dave
www.eleven1.com

------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  Re: FLASH: Duplicating Movie Clips, Jason

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