[haXe] trace not scrollable?

Franco Ponticelli franco.ponticelli at gmail.com
Tue Apr 29 16:04:15 CEST 2008


The information on the book is not accurate on this matter. The text field
shows by default the last lines output by trace but no scrollbars will ever
appear. This is because the trace function uses a standard TextField object
that has not those facilities. You can alway provide your own replacement
for the trace function overriding the haxe.Log.trace method. If you are
developing for a Flash website and your preferred browser is Firefox; I
strongly suggest to redirect you trrace to Firebug using the following
simple statement at the beginnig of you application:

if(haxe.Firebug.detect()) haxe.Firebug.redirectTraces();

Franco.

On Tue, Apr 29, 2008 at 2:25 PM, Burobjorn <burobjorn at gmail.com> wrote:

> Hi,
>
> In chapter seven of the HaXe and Neko book the authors mention that the
> trace function when compiling to Flash provides a scrollable textfield
> on top of the compiled movie. Perhaps I'm missing something but the
> resulting textfield is not scrollable and thus I can't view all of my
> traces...
>
> My hxml file:
> -lib xspf
> -swf ../builds/player.swf
> -main Player
>
> My configuration:
> -Ubuntu Linux 7.10 (Gutsy Gibbon)
> -Haxe Compiler 1.18
> -Flash player 9,0,124,0
> -Firefox 2.0.0.14
>
> Thanks to all of you with helping me so patiently!
>
> All the best,
>
> grtz
> BjornW
> --
>
> met vriendelijke groet,
> Bjorn Wijers
>
> * b u r o b j o r n .nl *
> digitaal vakmanschap | digital craftsmanship
>
> Concordiastraat 68-126
> 3551 EM Utrecht
> The Netherlands
>
> phone: +31 30 2444 101
> http://www.burobjorn.nl
>
> --
> haXe - an open source web programming language
> http://haxe.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20080429/934c8e7c/attachment.htm


More information about the Haxe mailing list