[英]FluorineFx request as Externalized Object c#
currently I am developing C# application that sends amf packet to server using FluorineFx. 目前,我正在开发使用FluorineFx将amf数据包发送到服务器的C#应用程序。
It works fine, but I found out strange datatype called Externalized Object. 它工作正常,但是我发现了一个奇怪的数据类型,称为“外部化对象”。
I found out that FluorineFX Contains a class named ArrayCollection but i dont now how i need to use it and the bigger problem, how i can send it as externalized object 我发现FluorineFX包含一个名为ArrayCollection的类,但是我现在不知道如何使用它以及更大的问题,如何将其作为外部对象发送
This is the capture file from Charles and I have re-produce those Externalized Objects. 这是查尔斯(Charles)的捕获文件,我已经重现了那些“外部化对象”。
cheers, Niklas 干杯,尼古拉斯
I don't know about this but from this link you can learn that... 我对此一无所知,但是通过此链接,您可以了解到...
A single AMF 3 type handles ActionScript Objects and custom user classes.
单个AMF 3类型可处理ActionScript对象和自定义用户类。 The term 'traits' is used to describe the defining characteristics of a class.
术语“特征”用于描述类的定义特征。 In addition to
anonymous
objects andtyped
objects, ActionScript 3.0 introduces two further traits to describe how objects are serialized, namelydynamic
andexternalizable
.除了
anonymous
对象和typed
对象之外, ActionScript 3.0还引入了两个另外的特征来描述对象的序列化方式,即dynamic
和externalizable
。Anonymous : an instance of the actual ActionScript Object type or an instance of a Class without a registered alias (that will be treated like an Object on deserialization)
匿名:实际ActionScript对象类型的实例或没有注册别名的Class实例(在反序列化时将被视为Object)
Typed : an instance of a Class with a registered alias
Typed:具有注册别名的Class的实例
Dynamic : an instance of a Class definition with the dynamic trait declared;
Dynamic:声明了动态特征的Class定义的实例; public variable members can be added and removed from instances dynamically at runtime
可以在运行时动态地从实例中添加和删除公共变量成员
Externalizable : an instance of a Class that implements flash.utils.IExternalizable and completely controls the serialization of its members (no property names are included in the trait information).
Externalizable :实现Flash.utils.IExternalizable并完全控制其成员的序列化的类的实例(特征信息中不包含属性名)。
Between the above info, also this AS3 Docs entry and this Fluorine Documentation , maybe it helps you get a direction on how to "re-produce those Externalized Objects". 在上述信息之间,以及在此AS3 Docs条目和此Fluorine Documentation之间 ,也许它可以帮助您获得有关如何“重新生成那些外部化对象”的指导。
PS: What happens if you just go ahead and treat Externalized object as normal Object? PS:如果您继续将外部化对象视为普通对象,会发生什么? Your app/code may still work as expected.
您的应用/代码可能仍能按预期工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.