Hello

re-assign source to SWFLoader ... 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, "[email protected]"
<[email protected]> 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" <[email protected]> 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, "[email protected]"
>
> > <[email protected]> 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 -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to