When I create a SWFLoader class in actionscript (see below) the content property is null. If I use <mx:SWFLoader> tag it is set with the SystemManager object of the loaded swf. Is there something I need to be doing in actionscript to have content populated?

Thanks
Steve


    <mx:Script>
        <![CDATA[
            import mx.controls.SWFLoader;
            import mx.controls.Button;

            public function buildASLoader():void {
                var app1loader:SWFLoader = new SWFLoader();
                var url:String = "samples/Application1.swf";
                app1loader.id = "app1loader";
                app1loader.load(url);
                mainBucket.addChild(app1loader);
                }

        ]]>
    </mx:Script>
__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to