ArrayCollection problems, "legacy-collection"

View: New views
2 Messages — Rating Filter:   Alert me  

ArrayCollection problems, "legacy-collection"

by Per-Olov Jernberg :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Hi

I'm trying to transfer an array of VO's to flash using fluorinefx, it
works fine if we're using the old AMF0 format, but then the
ByteArray-class wont work for some reason, so we need to use AMF3, thus
making it serialize System.Collections.ArrayList as
mx.collection.ArrayCollection instead of the classic Array.

My question is, how do i enable legacy-collections? i have tried to
create a services-config.xml but that doesnt seem to change anything, is
it possible to change the UseLegacyCollections flag from the
web.config-section?

--

_________________________________________________

PER-OLOV JERNBERG
NORKAY

www.norkay.se



_______________________________________________
fluorine mailing list
fluorine@...
http://fluorine.thesilentgroup.com/mailman/listinfo/fluorine_fluorine.thesilentgroup.com

Re: ArrayCollection problems, "legacy-collection"

by Support-179 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Hi,

<legacy-collection>true</legacy-collection> in the channel properties should
force list serialization to array (this is not a webconfig setting)
Additionally array types are serialized as ActionScript arrays (does not
depend on the legacy-collection flag)

If you have a working sample that shows your legacy-collection problem
please send to support@...

Zoli

-----Original Message-----
From: fluorine-bounces@...
[mailto:fluorine-bounces@...] On Behalf Of Per-Olov
Jernberg
Sent: Tuesday, May 06, 2008 2:32 PM
To: Fluorine Mailing List
Subject: [Fluorine] ArrayCollection problems, "legacy-collection"

Hi

I'm trying to transfer an array of VO's to flash using fluorinefx, it works
fine if we're using the old AMF0 format, but then the ByteArray-class wont
work for some reason, so we need to use AMF3, thus making it serialize
System.Collections.ArrayList as mx.collection.ArrayCollection instead of the
classic Array.

My question is, how do i enable legacy-collections? i have tried to create a
services-config.xml but that doesnt seem to change anything, is it possible
to change the UseLegacyCollections flag from the web.config-section?

--

_________________________________________________

PER-OLOV JERNBERG
NORKAY

www.norkay.se



_______________________________________________
fluorine mailing list
fluorine@...
http://fluorine.thesilentgroup.com/mailman/listinfo/fluorine_fluorine.thesil
entgroup.com


--
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.23.9/1417 - Release Date: 5/6/2008
8:07 AM



_______________________________________________
fluorine mailing list
fluorine@...
http://fluorine.thesilentgroup.com/mailman/listinfo/fluorine_fluorine.thesilentgroup.com