Relplace your line with this code and it will work:
Am 27.07.2008 11:18 Uhr schrieb "Chen Ding" unter
<[EMAIL PROTECTED]>:
> <canvas debug="true">
> <debug y="600"/>
>
> <class name="myclass"/>
>
> <button x="100" y="100" text="Create">
> <handler name="onclick">
> var vv = new myclass(canvas, {width:200, height:300,
> bgcolor:0x999999}, []);
> </handler>
> </button>
>
> <myclass x="300" y="100" width="100" height="100" bgcolor="red"/>
> <view x="500" y="100" width="100" height="100" bgcolor="blue"/>
> </canvas>