[Laszlo-dev] adding printing to LZX -- need help

Oliver Steele steele at laszlosystems.com
Wed Jan 26 07:54:15 PST 2005


There are a few others, such as 'trace', 'fscommand', and 
'getVersion',, listed in Compiler.py.  (Search for 'trace', including 
the single quotes.) These are only turned on for LFC code, since they 
aren't in ECMAScript and don't obey the scope rules --- for instance, 
the Flash compiler would probably get something like this wrong:
   function doit(print) {print(1)}
   function logger(arg) {gLog.push(arg)}
   doit(logger)

We don't want to add any more of this to the compiler than necessary, 
though.  Remember, the aim is to be able to implement required 
functionality for the Flash runtime, not to expose the Flash APIs 
directly and make it easy to write non-portable code.

On Jan 26, 2005, at 10:07 AM, Henry Minsky wrote:

> Are there any other magic URL prefixes? We're using 'asfunction:' to
> create the active "inspect object" links in the debugger
>
> Debug.MakeObjectLink = function (obj, id) {
>   if (typeof(id) == 'undefined') {
>     id = this.IDForObject(obj);
>   }
>   if (id != null) {
>     return '<a href="asfunction:_root.Debug.displayObj,' + id +
> '"><font color="#0000FF">' + obj +"</font></a>";
>   }
>   return obj;
> }
>
>
>
> On Wed, 26 Jan 2005 06:43:10 -0800, Sarah Allen
> <sallen at laszlosystems.com> wrote:
>>
>> In case anyone was wondering.  Tucker took a look at one of my test 
>> SWFs
>> and discovered....
>>
>>> It's not a scoping issue.  Flash compiles:
>>>
>>>   print("printer", "bframe")
>>>
>>> into:
>>>
>>>   getURL("print:#bframe", "printer")
>>>
>>> getURL seems to be their magic catch-all loophole.
>>
>> I think its weird that printing is in the same place as the browser 
>> APIs in
>> Flash.  I've written up a proposed print API on the wiki -- I'll send 
>> it
>> out in a separate e-mail.
>>
>> Sarah
>>
>> _______________________________________________
>> Laszlo-dev mailing list
>> Laszlo-dev at openlaszlo.org
>> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>>
> _______________________________________________
> 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