【发布时间】:2011-07-13 08:08:59
【问题描述】:
Class ShootGame implements IGame
{
}
//ShootGame Vector
var shootGames:Vector.<ShootGame> = new Vector.<ShootGame>();
for(i=0;i<20;i++)
{
shootGames.push(new ShootGame());
}
var igames:Vector.<IGame> = //What is the Simplest method to convert ShootGame to IGame Vector
//I am doing like
igames = new Vector.<IGame>();
for(i=0;i < shootGames.length;i++)
{
igames.push(shootGames[i]);
}
【问题讨论】:
-
一些文本不可见,变量 igames:Vector 。
= 新向量。 ();
标签: actionscript-3 flex3 flex4 flash-cs4 flash-cs5