[Laszlo-dev] Import tag documentation / example?
P T Withington
ptw at pobox.com
Fri Jun 17 09:22:28 PDT 2005
If debugging is not enabled, global.Debug will not be defined. So
you can say:
if (Debug) {
Debug.write( <complex computation> );
}
to avoid computing debug-only values.
On 17 Jun 2005, at 11:40, Vikas Bhatia wrote:
> So the debug window is like log4j, the data you log will not be
> shown in the
> debug window, but will be generated anyways!
> Is there a
> if (log4j.isDebugEnabled()){
> log4j.debug(complexComputation);
> }
> kinda contruct that narrows it down to a single computation.
> If not, is it feasable as a feature. Maybe in the config files??
>
> Vik.
> On 6/17/05, Derek Adams <derek_a_adams at yahoo.com> wrote:
>
>>
>> We have an app of similar size and were running into the problem
>> where a
>> dialog pops up saying something like "your script has been running
>> too long,
>> do you want to terminate it?". It turned out that the problem was
>> the debug
>> window. We had tons of debug going to the window and the app
>> slowed down
>> geometrically as the debug output increased. We created a logger
>> class that
>> wraps the debugger so you can set a logging level to filter what
>> gets sent
>> to the debugger.
>> As for splitting out the views into separate libraries, create a
>> separate
>> file (i.e 'MyCustomView.lzx'):
>> <library>
>> <class name="MyCustomView">
>> </class>
>> </library>
>> The default base class is "LzView", so you can treat everything
>> in the
>> <class> declaration like it is in a <view>. You can use the custom
>> view like
>> this:
>> <canvas>
>> <include href="MyCustomView.lzx" />
>> <MyCustomView>
>> </canvas>
>> Hope that helps,
>> Derek Adams
>>
>> *dhay at lexmark.com* wrote:
>>
>>
>> Hi,
>>
>> Our app is getting rather large (1500 lines and growing) and we are
>> beginning to hit the flash error where it is taking too long to load.
>>
>> We would like to split up the views into files that get loaded when
>> needed.
>>
>> I believe that the tag is used for this, but can't find any
>> documentation on it.
>>
>> Can anyone direct me to the correct place? Even better, does
>> anyone have a
>> handy example of this that they wouldn't mind sharing?
>>
>> Many thanks,
>>
>> David
>>
>>
>>
>>
>> _______________________________________________
>> Laszlo-dev mailing list
>> Laszlo-dev at openlaszlo.org
>> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>>
>> ------------------------------
>> Yahoo! Sports
>> Rekindle the Rivalries. Sign up for Fantasy Football<http://
>> pa.yahoo.com/*http://us.rd.yahoo.com/evt=33539/*http://
>> football.fantasysports.yahoo.com?
>> ovchn=YAH&ovcpn=Integration&ovcrn=Mail+footer&ovrfd=YAH&ovtac=AD+>
>>
>>
>> _______________________________________________
>> 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