Macromedia Flash Server - list comp problem

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > June 2005 > list comp problem





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author list comp problem
dan

2005-06-19, 2:45 am

Well I was wondering if you people had this problem and found a way to
work around it

When you use a list component for a people list in a chat room that
refreshes everytime an onsync happens it the people list shared object
the list refreshes
And when that happens thwe selection you seleced in the list is no more
because when you get an onsync event you repopulate the list component
Any ideas how to keep the selected label selected even after a refresh?
10x



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

daz lee

2005-06-19, 7:45 am

just don't refresh, use a SO.send controlled by the server to pass new =
users and lost users.

That's what I do.

Daz
----- Original Message -----=20
From: dan<mailto:dan-hoNGlbeT4xD6gbPvEgmw2w@public.gmane.org>=20
To: 'Julio Cesar Ody'<mailto:julioody-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> ; 'FlashComm Mailing =
List'<mailto:flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>=20
Sent: 19 June 2005 08:11
Subject: [FlashComm] list comp problem


Well I was wondering if you people had this problem and found a way to
work around it

When you use a list component for a people list in a chat room that
refreshes everytime an onsync happens it the people list shared object
the list refreshes
And when that happens thwe selection you seleced in the list is no =
more
because when you get an onsync event you repopulate the list component
Any ideas how to keep the selected label selected even after a =
refresh?
10x



=3D-----------------------------------------------------------
Supported by Fig Leaf Software - =
http://www.figleaf.com<http://www.figleaf.com/>
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
=
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm<http://chattyfig.=
figleaf.com/mailman/listinfo/flashcomm>

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Stefan Richter

2005-06-19, 7:45 am

I simply save the selected value in a variable, sync the list, then loop
over all items and if the selected value is still present I reselect it...

Stefan




-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of dan
Sent: Sunday, June 19, 2005 8:12 AM
To: 'Julio Cesar Ody'; 'FlashComm Mailing List'
Subject: [FlashComm] list comp problem

Well I was wondering if you people had this problem and found a way to work
around it

When you use a list component for a people list in a chat room that
refreshes everytime an onsync happens it the people list shared object the
list refreshes And when that happens thwe selection you seleced in the list
is no more because when you get an onsync event you repopulate the list
component Any ideas how to keep the selected label selected even after a
refresh?
10x



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

dan

2005-06-19, 5:45 pm

How do you reselect?
Whats the property?


-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Stefan
Richter
Sent: Sunday, June 19, 2005 3:12 PM
To: 'FlashComm Mailing List'
Subject: RE: [FlashComm] list comp problem

I simply save the selected value in a variable, sync the list, then loop
over all items and if the selected value is still present I reselect
it...

Stefan




-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of dan
Sent: Sunday, June 19, 2005 8:12 AM
To: 'Julio Cesar Ody'; 'FlashComm Mailing List'
Subject: [FlashComm] list comp problem

Well I was wondering if you people had this problem and found a way to
work
around it

When you use a list component for a people list in a chat room that
refreshes everytime an onsync happens it the people list shared object
the
list refreshes And when that happens thwe selection you seleced in the
list
is no more because when you get an onsync event you repopulate the list
component Any ideas how to keep the selected label selected even after a
refresh?
10x



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

daz lee

2005-06-19, 5:45 pm

just remember the label or data or a user ID or something unique and =
when uve rewritten the data you can loop through it and

if(list.getItemAt(I).uniqueVal =3D=3D whatIRememberd){
list.selectedIndex =3D I;
break;
}

but I still suggest just using so.sends but that's me :P
----- Original Message -----=20
From: dan<mailto:dan-hoNGlbeT4xD6gbPvEgmw2w@public.gmane.org>=20
To: 'FlashComm Mailing List'<mailto:flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>=20
Sent: 19 June 2005 15:28
Subject: RE: [FlashComm] list comp problem


How do you reselect?
Whats the property?


-----Original Message-----
From: =
flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org<mailto:flashcomm-bounces@chattyfi=
g.figleaf.com>
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Stefan
Richter
Sent: Sunday, June 19, 2005 3:12 PM
To: 'FlashComm Mailing List'
Subject: RE: [FlashComm] list comp problem

I simply save the selected value in a variable, sync the list, then =
loop
over all items and if the selected value is still present I reselect
it...

Stefan


=20

-----Original Message-----
From: =
flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org<mailto:flashcomm-bounces@chattyfi=
g.figleaf.com>
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of dan
Sent: Sunday, June 19, 2005 8:12 AM
To: 'Julio Cesar Ody'; 'FlashComm Mailing List'
Subject: [FlashComm] list comp problem

Well I was wondering if you people had this problem and found a way to
work
around it

When you use a list component for a people list in a chat room that
refreshes everytime an onsync happens it the people list shared object
the
list refreshes And when that happens thwe selection you seleced in the
list
is no more because when you get an onsync event you repopulate the =
list
component Any ideas how to keep the selected label selected even after =
a
refresh?
10x



=3D-----------------------------------------------------------
Supported by Fig Leaf Software - =
http://www.figleaf.com<http://www.figleaf.com/>
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
=
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm<http://chattyfig.=
figleaf.com/mailman/listinfo/flashcomm>


=3D-----------------------------------------------------------
Supported by Fig Leaf Software - =
http://www.figleaf.com<http://www.figleaf.com/>
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
=
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm<http://chattyfig.=
figleaf.com/mailman/listinfo/flashcomm>


=3D-----------------------------------------------------------
Supported by Fig Leaf Software - =
http://www.figleaf.com<http://www.figleaf.com/>
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
=
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm<http://chattyfig.=
figleaf.com/mailman/listinfo/flashcomm>

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

dan

2005-06-19, 5:45 pm

10x
Works like a charm
Need'd it for the lobby room of my multiplayer game
Works now


-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of daz lee
Sent: Sunday, June 19, 2005 3:30 PM
To: FlashComm Mailing List
Subject: Re: [FlashComm] list comp problem

just remember the label or data or a user ID or something unique and
when uve rewritten the data you can loop through it and

if(list.getItemAt(I).uniqueVal == whatIRememberd){
list.selectedIndex = I;
break;
}

but I still suggest just using so.sends but that's me :P
----- Original Message -----
From: dan<mailto:dan-hoNGlbeT4xD6gbPvEgmw2w@public.gmane.org>
To: 'FlashComm Mailing List'<mailto:flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Sent: 19 June 2005 15:28
Subject: RE: [FlashComm] list comp problem


How do you reselect?
Whats the property?


-----Original Message-----
From:
flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org<mailto:flashcomm-bounces@chattyf
ig.figleaf.com>
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Stefan
Richter
Sent: Sunday, June 19, 2005 3:12 PM
To: 'FlashComm Mailing List'
Subject: RE: [FlashComm] list comp problem

I simply save the selected value in a variable, sync the list, then
loop
over all items and if the selected value is still present I reselect
it...

Stefan




-----Original Message-----
From:
flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org<mailto:flashcomm-bounces@chattyf
ig.figleaf.com>
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of dan
Sent: Sunday, June 19, 2005 8:12 AM
To: 'Julio Cesar Ody'; 'FlashComm Mailing List'
Subject: [FlashComm] list comp problem

Well I was wondering if you people had this problem and found a way to
work
around it

When you use a list component for a people list in a chat room that
refreshes everytime an onsync happens it the people list shared object
the
list refreshes And when that happens thwe selection you seleced in the
list
is no more because when you get an onsync event you repopulate the
list
component Any ideas how to keep the selected label selected even after
a
refresh?
10x



=-----------------------------------------------------------
Supported by Fig Leaf Software -
http://www.figleaf.com<http://www.figleaf.com/>
=-----------------------------------------------------------

To change your subscription options or search the archive:

http://chattyfig.figleaf.com/mailman/listinfo/flashcomm<http://chattyfig
..figleaf.com/mailman/listinfo/flashcomm>


=-----------------------------------------------------------
Supported by Fig Leaf Software -
http://www.figleaf.com<http://www.figleaf.com/>
=-----------------------------------------------------------

To change your subscription options or search the archive:

http://chattyfig.figleaf.com/mailman/listinfo/flashcomm<http://chattyfig
..figleaf.com/mailman/listinfo/flashcomm>


=-----------------------------------------------------------
Supported by Fig Leaf Software -
http://www.figleaf.com<http://www.figleaf.com/>
=-----------------------------------------------------------

To change your subscription options or search the archive:

http://chattyfig.figleaf.com/mailman/listinfo/flashcomm<http://chattyfig
..figleaf.com/mailman/listinfo/flashcomm>

=---------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=---------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Thijs Triemstra|Collab

2005-06-19, 5:45 pm

Colin Moock created consolidateProviders() for this problem: http://
moock.org/asdg/technotes/consolidateProviders/

Thijs


Op 19-jun-2005, om 9:11 heeft dan het volgende geschreven:

> Well I was wondering if you people had this problem and found a way to
> work around it
>
> When you use a list component for a people list in a chat room that
> refreshes everytime an onsync happens it the people list shared object
> the list refreshes
> And when that happens thwe selection you seleced in the list is no
> more
> because when you get an onsync event you repopulate the list component
> Any ideas how to keep the selected label selected even after a
> refresh?
> 10x
>
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com