[Laszlo-dev] adding printing to LZX -- need help
Sarah Allen
sallen at laszlosystems.com
Sun Jan 23 12:15:42 PST 2005
I've been delving into how to add printing to LZX. I tried out a number of
things in the Flash authoring tool and wanted to try them out in LZX before
adding to the LFC.
In Flash, I can call: print("target", "bframe"), so I tried this simple
test in LZX:
<canvas>
<simplelayout/>
<view id="p" bgcolor="yellow" width="200" height="40">
<text>hello</text>
<method name="doprint">
Debug.write('doprint', this.__LZmovieClipRef);
print(this.__LZmovieClipRef._target, "bframe");
</method>
</view>
<button onclick="p.doprint()">print</button>
</canvas>
I get the following Debugger output:
doprint «movieclip#0| _level0.$m1»
print-test.lzx:7: call to undefined function 'print'
Do I have to do something to the compiler to allow the print command to be
compiled? or is this a scoping problem? or am I missing something obvious?
Thanks in advance,
Sarah
More information about the Laszlo-dev
mailing list