Razorberry’s Adobe Flash Blog

October 19th, 2005

Moving MovieClips in AS3

Posted by Ash in Discussion
Discussion

All this new functionality is a lot to take in at the moment, but I noticed something new about the DisplayObjectContainer class (which is inherited by MovieClip). In particular the addChild and removeChild methods which replace the traditional attachMovie.

Does this mean that you can remove a movie clip from one target and place it in another without losing the MovieClip’s state?

Theres lots of cool new stuff, and not enough time outside of work to look at it all!

7 Responses to ' Moving MovieClips in AS3 '

Subscribe to comments with RSS

  1. darron said,
    on October 19th, 2005 at 2:23 pm

    Yes, addChild and removeChild let you do reparenting of content without modifying the content.

  2. franto said,
    on October 19th, 2005 at 5:00 pm

    Does this means, that I load external swf with MCs library, and I can attach movie to different MC, to which is not external swf loaded? This I want for ages :) Am I right?

  3. Ash said,
    on October 20th, 2005 at 9:30 am

    Yep, I think so. I know its only a small thing but I’m finding out that all those little things I wished the flash player could do are being fulfilled. Pretty soon I won’t have anything to complain about :(

  4. Keith Peters said,
    on October 27th, 2005 at 7:13 pm

    Yeah, re-parenting is one of the most powerful changes in the new DOM.

  5. william said,
    on March 13th, 2006 at 1:57 pm

    Mmm re-parenting looks usefull

  6. steven said,
    on January 18th, 2007 at 3:37 am

    aha, re-parenting is must !

  7. timbo said,
    on February 27th, 2008 at 9:58 am

    I have been using re-parenting quite a bit for my projects and ever since it has been very useful

Leave a reply

:mrgreen: :neutral: :twisted: :shock: :smile: :???: :cool: :evil: :grin: :oops: :razz: :roll: :wink: :cry: :eek: :lol: :mad: :sad:

Macromedia XML News Aggregator