# \[Q\] Asking for solutions

**URL:** <https://forum.kirupa.com/t/q-asking-for-solutions/316309>\
**Category:** flash\
**Created:** [November 18, 2010, 8:24am UTC](https://forum.kirupa.com/t/q-asking-for-solutions/316309 "2010-11-18T08:24:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DieByMacro](https://avatars.discourse-cdn.com/v4/letter/d/ebca7d/32.png) [@DieByMacro](https://forum.kirupa.com/u/DieByMacro)\
**Post date:** [November 18, 2010, 8:24am UTC](https://forum.kirupa.com/t/q-asking-for-solutions/316309/1 "2010-11-18T08:24:26Z")

</div>

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](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.  
 ![](http://forum.kirupa.com/uploads/kirupa/6392/84b5f323382809ac.jpg)  
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:

```php
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 ?
