Here's the example that does not work. v81.swf and v82.swf are Flash 8 swfs while v91.swf and v92.swf are Flash 9 ones (can't attach the swfs - can mail them to you if you like). If you comment out the lines that load the v8 files and uncomment the lines that load the v9 version, it works fine. Also note that the v8 swf files are generated using JSwiff - not sure if that has anything to do with the problem. I haven't tried it with swf files generated through the Flash 8 Authoring env.
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()"> <mx:Script> <![CDATA[ import mx.controls.Button; import mx.controls.SWFLoader; import mx.containers.Panel; private var ldr:SWFLoader; private var loaded:Boolean=true; private function init():void { var pnl:Panel = new Panel(); pnl.title = "Hello"; ldr = new SWFLoader(); ldr.showBusyCursor = true; ldr.load("v81.swf"); //ldr.load("v91.swf"); pnl.addChild(ldr); var bt:Button = new Button(); bt.label = "Load"; bt.addEventListener(MouseEvent.CLICK, onClick); pnl.addChild(bt); this.addChild(pnl); } private function onClick(event:Event):void { loaded = !loaded; if (!loaded) { ldr.load("v82.swf"); //ldr.load("v92.swf"); } else { ldr.load("v81.swf"); //ldr.load("v91.swf"); } } ]]> </mx:Script> </mx:Application> --- In [EMAIL PROTECTED], "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Can you post a test case? > > ________________________________ > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of moonusamy > Sent: Wednesday, April 11, 2007 1:20 PM > To: [EMAIL PROTECTED] > Subject: [flexcoders] Flex 2 SwfLoader unload/reload issue with V8 Swf > > > > > In a Flex 2 App, I'm using SwfLoader to load a Flash 8 Swf file. The > load works fine but when I call load() again to load another file > using the same SwfLoader instance, the new swf does not render. It > works fine if the swf being loaded is Flash 9 version. > I tried doing an "unload" before calling load such as: > swfContent.loaderInfo.loader.unload(); where swfContent is the content > property of the SwfLoader (previously loaded content) > This does not seem to work either. > > Oddly even if I create a new instance of SwfLoader each time I want to > load a swf, it does not work. > > Any help is appreciated. > > Vijay >

