Daily Archives: December 13, 2005

Flex Example: createChild and destroyChild

Create three files called CreateDestroyChild.mxml, VBoxPage.mxml and PanelPage.mxml.
CreateDestroyChild.mxml:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*"
    width="100%" height="100%" initialize="createUI( 'pageVBox' )">
   
    <mx:Script>
        <![CDATA[
            import mx.core.UIObject;
            public var pageItem : Object;
           
            function [...]