「Error #1068: int と * は共有できません。」というランタイムエラー再現
/**
* Copyright asahiufo ( http://wonderfl.net/user/asahiufo )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/m3i1
*/
package
{
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
public class LoopLabelTest extends Sprite
{
private var _tracer:TextField;
public function LoopLabelTest()
{
_tracer = new TextField();
_tracer.autoSize = TextFieldAutoSize.LEFT;
addChild(_tracer);
try
{
_tracer.appendText("開始\n");
test();
_tracer.appendText("正常終了\n");
}
catch (e:Error)
{
_tracer.appendText(e.message);
}
}
private function test():void
{
var list:Vector.<uint> = new Vector.<uint>();
for (var i:uint = 0; i < 100; i++)
{
list.push(i);
}
topLabel:
for (var j:uint = 0; j < 10; j++)
{
if (j == 3)
{
continue topLabel;
}
var value:uint;
for each (value in list)
{
if (value > 50)
{
continue topLabel;
}
}
for each (value in list)
{
if (value % 2 == 0)
{
continue topLabel;
}
}
for each (value in list)
{
if (value % 3 == 0)
{
continue topLabel;
}
}
}
}
}
}