Loadvars Fast parsing data

xiaoxiao2021-03-06  38

If you want to give a loadvars object multiple properties and attribute values, the most stupid approach is of course this:

Var lv = new loadingvars ();

lv.atta = "a";

lv.attb = "b";

...

In fact, there is a simple approach:

Var lv = new loadingvars ();

LV.

Decode ('atta = a & atttb = b');

or:

Var lv = new loadingvars ();

LV.

OnData ('atta = a & atttb = b');

Loadvars.Decode is the unapproved method of Flash, so I still tend to use OnData.

转载请注明原文地址:https://www.9cbs.com/read-66691.html

New Post(0)