Macromedia Flash Server - Shared Object Data Object Oder (UNCLASSIFIED)

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > July 2006 > Shared Object Data Object Oder (UNCLASSIFIED)





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 Shared Object Data Object Oder (UNCLASSIFIED)
Shackelford, Billy R Mr (Contractor) Cubic App

2006-07-19, 1:12 pm

Classification: UNCLASSIFIED
Caveats: NONE

Greetings,
I am reading the data from a remote shared object. The RSO contains a list
of objects that I need to iterate through in the order that the RSO was
populated. When I loop through the RSO data object, the result is in
reverse.

How can I reverse that order like the reverse method of an array?

Appreciate it,
Shack
Classification: UNCLASSIFIED
Caveats: NONE

________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

JesterXL

2006-07-19, 1:12 pm

In Flash Player 8 and below, it's reversed. In Flash Player 9, it's in
normal order.

One way is to do 2 loops:

var a = [];
for ( var p in so.data )
{
a.push ( { label: p, data: so.data } );
}

var len = a.length;
for ( var i = 0; i < len; i++ )
{
var item = a[i];
var key = item.label;
var value = item.data;
}

Make sense?

----- Original Message -----
From: "Shackelford, Billy R Mr (Contractor) Cubic Applications"
<billy.shackelford-SrL5qGCgbQJGMJYXDe/CxA@public.gmane.org>
To: <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Sent: Wednesday, July 19, 2006 11:37 AM
Subject: [FlashComm] Shared Object Data Object Oder (UNCLASSIFIED)


Classification: UNCLASSIFIED
Caveats: NONE

Greetings,
I am reading the data from a remote shared object. The RSO contains a list
of objects that I need to iterate through in the order that the RSO was
populated. When I loop through the RSO data object, the result is in
reverse.

How can I reverse that order like the reverse method of an array?

Appreciate it,
Shack
Classification: UNCLASSIFIED
Caveats: NONE

________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Shackelford, Billy R Mr (Contractor) Cubic App

2006-07-19, 1:12 pm

Classification: UNCLASSIFIED
Caveats: NONE

Thanks Jester!!! All works well now!



Shack

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of JesterXL
Sent: Wednesday, July 19, 2006 10:50 AM
To: FlashComm Mailing List
Subject: Re: [FlashComm] Shared Object Data Object Oder (UNCLASSIFIED)

In Flash Player 8 and below, it's reversed. In Flash Player 9, it's in
normal order.

One way is to do 2 loops:

var a = [];
for ( var p in so.data )
{
a.push ( { label: p, data: so.data } ); }

var len = a.length;
for ( var i = 0; i < len; i++ )
{
var item = a[i];
var key = item.label;
var value = item.data;
}

Make sense?

----- Original Message -----
From: "Shackelford, Billy R Mr (Contractor) Cubic Applications"
<billy.shackelford-SrL5qGCgbQJGMJYXDe/CxA@public.gmane.org>
To: <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Sent: Wednesday, July 19, 2006 11:37 AM
Subject: [FlashComm] Shared Object Data Object Oder (UNCLASSIFIED)


Classification: UNCLASSIFIED
Caveats: NONE

Greetings,
I am reading the data from a remote shared object. The RSO contains a list
of objects that I need to iterate through in the order that the RSO was
populated. When I loop through the RSO data object, the result is in
reverse.

How can I reverse that order like the reverse method of an array?

Appreciate it,
Shack
Classification: UNCLASSIFIED
Caveats: NONE

________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
Classification: UNCLASSIFIED
Caveats: NONE

________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com