Hi
I am trying to create a component which can receive an additional value from mxml code:
public class Board extends Canvas
{
public var boardSize:Number;
private var cellWidth:Number;
public function Board()
{
super();
}
}
How can I pass boardSize value from the mxml code. e.g.
<MyComp:Board x="22" y="25" width="600" height="600" boardSize="19">
But it doesn't work. When I am trying to debug the code I see that boardSize variable is NaN inside the class