You have to close your connection when you remove your swf or ( once
your purpose is solved from the connection).
// objLC is an object of your local connection
public function removeLC ( ) : void
{
// close the connection
objLC.close();
// remove all event listeners - explicitly
objLC.removeEventListener(StatusEvent.STATUS,onStatusShell);
// remove it explicitly so it doesn't remain in cashe
of Browser / FlashPlayer
objLC = null;
}
You can call this funtion on " removedFromStage " of your
application / movieclip / sprite / DisplayObjet
removedFromStage="removeLC ( )"
This will solve your problem.
~ Mayur Rami
Enjoy Flexing with Flex
On Mar 24, 10:19 am, GAGAN anand <[email protected]> wrote:
> flush() method writes the things to shared objects but not remove from the
> system.
>
> On 24 March 2010 00:14, veeru rahul <[email protected]> wrote:
>
> > so.flush(); will do I guess.
>
> > Jus give a try.
>
> > Thanks,
> > Veeru
>
> > On Tue, Mar 23, 2010 at 3:25 PM, GAGAN anand <[email protected]>wrote:
>
> >> Hi Baskaran,
>
> >> To clear Shared Object, you need to explicitly call clear() method on
> >> closing the browser. You can capture the closing from Javascript and then
> >> call flex function from JS.
>
> >> Hope this helps.
>
> >> Regards
> >> Gagan Deep
>
> >> On 23 March 2010 10:10, baskaran rajendran <[email protected]>wrote:
>
> >>> Hi
> >>> Shared Object value is not cleared while i closing the
> >>> browser.it is continued to nest time.
>
> >>> How can i clear shared object while i closing the browser?
>
> >>> --
> >>> Best Regards
> >>> Baskaran.R
>
> >>> --
> >>> 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]<flex_india%[email protected]>
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/flex_india?hl=en.
>
> >> --
> >> 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]<flex_india%[email protected]>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/flex_india?hl=en.
>
> > --
> > 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]<flex_india%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/flex_india?hl=en.
--
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.