This week we’re covering adding and removing children to the display list, which we’ve already used the basics of with addChild and removeChild. We’ll also be going through alot of the other methods available for parenting objects and get into some drag and drop and hit test functionality. Hopefully if there’s time we’ll cover loading and unloading external swfs as well. ~ The example we’re going to make is this one below which builds on some of the previous topics we’ve learned about event propogation, mouseEvents and enter frame events.
~
-Click on the “new star” button to add a star to the white container.
-rollover the stars to make them spin -click and drag the stars around the stage
-drag the star over the skull and cross bone to explode it and remove it.
-turn the boundaries of the draggable area on or off with the “toggle Boundary” button
~Download week Click Drag Explode starter files
Number of Downloads: 50
Download Size: 732.7 kB Download Updated: April 3, 2009