0

In c# I can do this:

   public class Widget{
      public int value1;
      public int value2;
   }

and elsewhere define a list of Widgets:

   pulbic List<Widget> widgets = new List<Widget>();

Is it possible to make a list of Widgets in actionscript or am I stuck with jamming all the widgets into an array collection and casting each item when I use it?

4

2 に答える 2

-1

メタデータを使用してこれを行う別の方法があります。

http://livedocs.adobe.com/flex/3/html/help.html?content=metadata_3.html

于 2013-09-19T20:07:01.343 に答える