AFQ (Another Flash Question)

Out of context: Reply #20

  • Started
  • Last post
  • 20 Responses
  • SteveJobs0

    the code i posted worked and i realize why now:

    dup = _root.attachMovie("mc", "mc"+1, depth);
    dup.mc._x=100;
    dup.mc._y=100;

    attachMovie is actually putting an instance of "mc" inside the new moveclip, "dup".

    that is why you can reference "mc" properties like _x and _y using dup.mc._x

    this may or may not have been the intent of macromedia, but i found the code, it worked and i'm just assuming as i found no documentation on this 'feature'.

    anyway, i finally solved the problem by creating a 3-level heirarchy and then creating a duplicate of the grandparent and using dup.parent.child._property notation to get the desired effect.

    lovely, eh?

    anyway, thanks for your help Solid. coding at 2:30am obviously isn't as easy w/out a few cans of RedBull. :D

    goodnight!

View thread