AlB
12-26-2005, 11:58 AM
I was delving into adding components dynamically -- (I understand that this might be quite slow.) Nevertheless, I started out by simply trying to create a windowpanel using script in the following code:
<canvas width="100%"
height="450"
debug="true">
<debug x="36%" y="0" width="64%" height="100%"/>
<button text="show"
y="400"
width="50"
onclick="var w = new windowpanel(canvas,{width: 150, height: 150, x: 5});" />
</canvas>
In the Debug window, I get the following warning:
WARNING: Dynamic_Components.lzx:20: call to undefined function 'windowpanel'
Can anyone tell me why this doesn't work?
By the way, if I change the component to a 'button', it works fine. Does this mean I'm stuck with only creating buttons using script?
<canvas width="100%"
height="450"
debug="true">
<debug x="36%" y="0" width="64%" height="100%"/>
<button text="show"
y="400"
width="50"
onclick="var w = new windowpanel(canvas,{width: 150, height: 150, x: 5});" />
</canvas>
In the Debug window, I get the following warning:
WARNING: Dynamic_Components.lzx:20: call to undefined function 'windowpanel'
Can anyone tell me why this doesn't work?
By the way, if I change the component to a 'button', it works fine. Does this mean I'm stuck with only creating buttons using script?