First post!
I’m trying to somehow target a MC being loaded into an empty container MC. I’ve tried everything I could think of.
Basically, I’m making a movie editor. Right now clips are added to the stage on initial load, then when they are clicked on they are added to the “reel” and they can be previewed in the order that they are added. Now, I’m trying to get it so that when they are on the “reel” they can be click and dragged and rearranged.
Here’s how the clips are added to the stage in a function called loadClips():
addChild(clip1);
clip1.name = "1";
Here’s how they are being added to the “reel” in addClips():
if (currentTarget.name == "1")
{
clipCopy = new Clip1();
moveClip(event);
}
And the subsequent moveClip():
if (currentReel == 1)
{
//add clip to reel 1
reelLoader1.addChild(clipCopy);
Tweener.addTween(clipCopy, {scaleX:.5,scaleY:.5,time:1});
currentReel++;
}
Now, I just want the clips that are on the reel to be click and drag-able (along the X axis but I’ll worry about that later). I realize now they’re all being added as clipCopy. That’s going to be an issue huh? Is there a way that I can target the container and make that mobile?
Thanks!