Exemple of Agileload C# Externalizable class: ClockExt.cs

package sample
{
    import flash.utils.IExternalizable;
    import flash.utils.IDataInput;
    import flash.utils.IDataOutput;

    [Bindable]
    [RemoteClass(alias="sample.ClockExt")]
    public class ClockExt implements IExternalizable
    {
        public var annee:int;
        public var mois:int;
        public var jour:int;
        public var heure:int;
        public var minute:int;
        public var second:int;

        public function readExternal(input:IDataInput):void {
            annee = input.readInt();
            mois = input.readInt();
            jour = input.readInt();
            heure = input.readInt();
            minute = input.readInt();
            second = input.readInt();
        }

        public function writeExternal(output:IDataOutput):void {
            output.writeInt(annee);
            output.writeInt(mois);
            output.writeInt(jour);
            output.writeInt(heure);
            output.writeInt(minute);
            output.writeInt(second);
        }
    }
}




Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap