[Q] Asking for solutions

I’m working on a small project for simulating an algorithm called CKY. And of course I decided to do it with Flash.
You guys can check it out how that algorithm works by viewing this demo:
http://homepages.uni-tuebingen.de/student/martin.lazarov/demos/cky.html

Don’t worry. Just click Parse and see how it works, you guys don’t have to understand why and how it runs like that. I’m here just asking for the animation part. I also completed the algorithm coding, too. So the last part is building the UI.

  1. For the update status of each cell, how can I achieve the same like that ?
    I created an symbol with 4 frame, each frame has its own color. ( organe - grey - blue - red ). Here I’m thinking about solving the problem with gotoAndStop(#frame_number) but I’m not sure whether it works or not.Here’s the image.

    Any better solution is really appreciate.

  2. Okie I googled and find it’d be really easy if I use Tween class on each instance of the button symbol. But again, I run into some problem in making them work.: Here is my code of adding instance:

function generateTable(n:int):void{
			var a:Array = new Array(n);
			for(var i:uint=0; i < a.length;i++){
				var b:Array = new Array(n-i);
				for(var j:uint = 0;j < b.length;j++){
					var c:cell = new cell();
					c.name =  "cell"+(i + j).toString();
					stage.addChild(c);
					c.alpha = 0;
					c.txtValue.text = c.name;
					c.x = 150 + 100*j;
					c.y = 330 - 50*i;
[COLOR="Red"]myTween = new Tween(c.name,"alpha", Regular.easeIn, 0, 1, 1, true);[/COLOR]
				}
			}
		}

when I try to run, an error says " 1120: Access of undefined property Regular." . You guys knows how to fix this ?