cmcginnis
08-12-2004, 02:05 PM
Tried to do this in one of the editor windows within the tutorial section of your site. After it loads the color appears correctly (red). After executing the method, the color is turned to black instead of blue.
Any ideas?
Here is the sample code:
<canvas width="500" height="150" >
<view name="square" bgcolor="#ff0000" width="30" height="30" clickable="true" onclick="this.changeColor()">
<method name="changeColor">
this.setBGColor("#0000ff");
</method>
</view>
</canvas>
Any ideas?
Here is the sample code:
<canvas width="500" height="150" >
<view name="square" bgcolor="#ff0000" width="30" height="30" clickable="true" onclick="this.changeColor()">
<method name="changeColor">
this.setBGColor("#0000ff");
</method>
</view>
</canvas>