[Laszlo-dev] adding printing to LZX -- need help
Oliver Steele
steele at laszlosystems.com
Sun Jan 23 15:57:24 PST 2005
If it's a scope problem, _root.print might fix it.
This could also be a problem if 'print' is an opcode, not a function
call. (The Flash compiler knows about some magic opcodes such as
'trace' and 'fscommand', and the LZX compiler has to be told about each
one, and only uses them in core runtime code in the LFC.) I don't
think it's an opcode, though.
On Jan 23, 2005, at 3:15 PM, Sarah Allen wrote:
>
> 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
>
>
> _______________________________________________
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
More information about the Laszlo-dev
mailing list