Thanks again Virat , I've tried this solution once if you're looking on your system memory it leaks everytimes when you reload swf , that's why I tried to avoid this solution . but if you have any prevent methodology please help me... Thanks Virat
On Apr 21, 4:13 pm, "v...@t" <vira...@gmail.com> wrote: > Hello > > re-assign source toSWFLoader... may help you... > > i have work with flash swf and it works fine > > private function onBtnClick(event:MouseEvent):void > { > SWFLoader.source = null; > SWFLoader.source = xyz.swf; > > } > > Thanks > Virat > > On Apr 20, 1:27 pm, "ukrit...@googlemail.com" > > > > <ukrit...@googlemail.com> wrote: > > What I've found's after I clicked on "reload" button there's nothing > > happend to my application :( > > so...any explanation or example? thx alot for your reply! > > > On Apr 20, 1:07 pm, "v...@t" <vira...@gmail.com> wrote: > > > > Hi > > > > You can try like that... may help you.. > > > > <?xml version="1.0" encoding="utf-8"?> > > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > > > layout="vertical"> > > > > <mx:Script> > > > <![CDATA[ > > > import mx.controls.SWFLoader; > > > import mx.events.FlexEvent; > > > private var mc:MovieClip = new MovieClip(); > > > > private function onSWFComplete(event:Event):void > > > { > > > mc = ( event.currentTarget > > > asSWFLoader).content as MovieClip; > > > } > > > private function onBtnClick(event:MouseEvent):void > > > { > > > mc.gotoAndPlay(1); > > > } > > > ]]> > > > </mx:Script> > > > <mx:SWFLoadersource="test.swf" complete="onSWFComplete(event)" /> > > > <mx:Button label="Reload" click="onBtnClick(event)" /> > > > > </mx:Application> > > > > Thanks > > > Virat > > > > On Apr 17, 9:03 am, "ukrit...@googlemail.com" > > > > <ukrit...@googlemail.com> wrote: > > > > Good day everyong I come up with the question which's aboutswfloader > > > > 1.suppose that I've loaded test.swf in toswfloader. > > > > 2.I interact with test.swf inswfloader. > > > > 3.I would like to reloadswfloaderwhich contains test.swf on it's > > > > initial state (first time visit) again. > > > > > Any idea? I triedswfloader.load but all of my memory's gone!! please > > > > give me some solution!- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_india@googlegroups.com To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---